18#ifndef GAZEBO_PHYSICS_ROAD_HH_
19#define GAZEBO_PHYSICS_ROAD_HH_
24#include <ignition/math/Vector3.hh>
25#include <ignition/transport/Node.hh>
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;
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;
Forward declarations for transport.
Base class for most physics classes.
Definition Base.hh:72
for building a Road from SDF
Definition Road.hh:41
const std::vector< ignition::math::Vector3d > & Points() const
Get the points that define the road.
double GetWidth() const
Get the road width in meters.
Road(BasePtr _parent)
Constructor.
virtual void Fini()
Finalize the road.
virtual void Init()
Initialize the road.
virtual ~Road()
Destructor.
void Load(sdf::ElementPtr _sdf)
Load the road from SDF.
boost::shared_ptr< Base > BasePtr
Definition PhysicsTypes.hh:77
boost::shared_ptr< Publisher > PublisherPtr
Definition TransportTypes.hh:49
boost::shared_ptr< Node > NodePtr
Definition TransportTypes.hh:57
Forward declarations for the common classes.
Definition Animation.hh:27