Go to the documentation of this file.
18 #ifndef GAZEBO_PHYSICS_ROAD_HH_
19 #define GAZEBO_PHYSICS_ROAD_HH_
24 #include <ignition/math/Vector3.hh>
25 #include <ignition/transport/Node.hh>
47 public:
virtual ~
Road();
51 public:
void Load(sdf::ElementPtr _sdf);
54 public:
virtual void Init();
57 public:
virtual void Fini();
61 public:
const std::vector<ignition::math::Vector3d> &Points()
const;
65 public:
double GetWidth()
const;
68 private:
double width;
71 private: std::vector<ignition::math::Vector3d> points;
83 private: ignition::transport::Node nodeIgn;
86 private: ignition::transport::Node::Publisher roadPubIgn;
const std::vector< ignition::math::Vector3d > & Points() const
Get the points that define the road.
Forward declarations for the common classes.
Definition: Animation.hh:26
boost::shared_ptr< Publisher > PublisherPtr
Definition: TransportTypes.hh:49
Forward declarations for transport.
boost::shared_ptr< Node > NodePtr
Definition: TransportTypes.hh:57
Base class for most physics classes.
Definition: Base.hh:72
void Load(sdf::ElementPtr _sdf)
Load the road from SDF.
virtual void Init()
Initialize the road.
boost::shared_ptr< Base > BasePtr
Definition: PhysicsTypes.hh:78
virtual ~Road()
Destructor.
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
Road(BasePtr _parent)
Constructor.
virtual void Fini()
Finalize the road.
for building a Road from SDF
Definition: Road.hh:40
double GetWidth() const
Get the road width in meters.