17#ifndef GAZEBO_PHYSICS_RAYSHAPE_HH_
18#define GAZEBO_PHYSICS_RAYSHAPE_HH_
52 public:
virtual void SetPoints(
const ignition::math::Vector3d &_posStart,
53 const ignition::math::Vector3d &_posEnd);
57 public: ignition::math::Vector3d
Start()
const;
61 public: ignition::math::Vector3d
End()
const;
67 ignition::math::Vector3d &_posB);
73 ignition::math::Vector3d &_posB);
84 public:
virtual void SetScale(
const ignition::math::Vector3d &_scale);
93 std::string &_entity) = 0;
162 private: std::string collisionName;
default namespace for gazebo
ODE specific version of MultiRayShape.
Definition ODEMultiRayShape.hh:32
Base class for Ray collision geometry.
Definition RayShape.hh:36
void SetFiducial(int _fid)
Set the fiducial id detected by this ray.
ignition::math::Vector3d End() const
Get the end point.
ignition::math::Vector3d relativeStartPos
Start position of the ray, relative to the body.
Definition RayShape.hh:150
virtual void SetScale(const ignition::math::Vector3d &_scale)
Set the scale of the ray.
virtual void GetIntersection(double &_dist, std::string &_entity)=0
Get the nearest intersection.
ignition::math::Vector3d relativeEndPos
End position of the ray, relative to the body.
Definition RayShape.hh:153
float GetRetro() const
Get the retro-reflectivness detected by this ray.
virtual void Update()=0
Update the ray collision.
int contactFiducial
Fiducial ID value.
Definition RayShape.hh:147
virtual double ComputeVolume() const
Documentation inherited.
void SetCollisionName(const std::string &_name)
Set the name of the object this ray has collided with.
virtual void Init()
In the ray.
virtual void GlobalPoints(ignition::math::Vector3d &_posA, ignition::math::Vector3d &_posB)
Get the global starting and ending points.
ignition::math::Vector3d globalEndPos
End position of the ray in global cs.
Definition RayShape.hh:159
ignition::math::Vector3d Start() const
Get the start point.
RayShape(PhysicsEnginePtr _physicsEngine)
Constructor for a global ray.
std::string CollisionName() const
Get the name of the object this ray collided with.
double contactRetro
Retro reflectance value.
Definition RayShape.hh:144
virtual ~RayShape()
Destructor.
double contactLen
Length of the ray.
Definition RayShape.hh:141
RayShape(CollisionPtr _parent)
Constructor.
virtual void SetLength(double _len)
Set the length of the ray.
double GetLength() const
Get the length of the ray.
virtual void SetPoints(const ignition::math::Vector3d &_posStart, const ignition::math::Vector3d &_posEnd)
Set the ray based on starting and ending points relative to the body.
int GetFiducial() const
Get the fiducial id detected by this ray.
virtual void RelativePoints(ignition::math::Vector3d &_posA, ignition::math::Vector3d &_posB)
Get the relative starting and ending points.
void SetRetro(float _retro)
Set the retro-reflectivness detected by this ray.
virtual void ProcessMsg(const msgs::Geometry &_msg)
Update this shape from a message.
void FillMsg(msgs::Geometry &_msg)
Fill a message with data from this object.
ignition::math::Vector3d globalStartPos
Start position of the ray in global cs.
Definition RayShape.hh:156
Base class for all shapes.
Definition Shape.hh:40
boost::shared_ptr< PhysicsEngine > PhysicsEnginePtr
Definition PhysicsTypes.hh:125
boost::shared_ptr< Collision > CollisionPtr
Definition PhysicsTypes.hh:113
Forward declarations for the common classes.
Definition Animation.hh:27