physics/Light.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015-2016 Open Source Robotics Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16 */
17 
18 #ifndef _GAZEBO_PHYSICS_LIGHT_HH_
19 #define _GAZEBO_PHYSICS_LIGHT_HH_
20 
21 #include "gazebo/physics/Entity.hh"
22 
23 namespace gazebo
24 {
25  namespace physics
26  {
27  class LightState;
28 
31 
33  class GZ_PHYSICS_VISIBLE Light : public Entity
34  {
37  public: Light(BasePtr _parent);
38 
40  public: void Init();
41 
44  public: void ProcessMsg(const msgs::Light &_msg);
45 
48  public: void FillMsg(msgs::Light &_msg);
49 
52  public: void SetState(const LightState &_state);
53 
54  // Documentation inherited
55  public: void OnPoseChange();
56 
58  private: void PublishPose();
59 
61  private: msgs::Light msg;
62  };
64  }
65 }
66 #endif
67 
A light entity.
Definition: physics/Light.hh:33
Store state information of a Light object.
Definition: LightState.hh:37
Base class for all physics objects in Gazebo.
Definition: Entity.hh:58
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
boost::shared_ptr< Base > BasePtr
Definition: PhysicsTypes.hh:77