17 #ifndef GAZEBO_PHYSICS_RAYSHAPE_HH_
18 #define GAZEBO_PHYSICS_RAYSHAPE_HH_
53 public:
virtual void SetPoints(
const math::Vector3 &_posStart,
60 public:
virtual void SetPoints(
const ignition::math::Vector3d &_posStart,
61 const ignition::math::Vector3d &_posEnd);
65 public: ignition::math::Vector3d Start()
const;
69 public: ignition::math::Vector3d End()
const;
81 public:
virtual void RelativePoints(ignition::math::Vector3d &_posA,
82 ignition::math::Vector3d &_posB);
94 public:
virtual void GlobalPoints(ignition::math::Vector3d &_posA,
95 ignition::math::Vector3d &_posB);
99 public:
virtual void SetLength(
double _len);
103 public:
double GetLength()
const;
106 public:
virtual void SetScale(
const ignition::math::Vector3d &_scale);
109 public:
virtual void Update() = 0;
114 public:
virtual void GetIntersection(
double &_dist,
115 std::string &_entity) = 0;
119 public:
void SetRetro(
float _retro);
123 public: std::string CollisionName()
const;
127 public:
float GetRetro()
const;
131 public:
void SetFiducial(
int _fid);
135 public:
int GetFiducial()
const;
138 public:
virtual void Init();
143 public:
void FillMsg(msgs::Geometry &_msg);
148 public:
virtual void ProcessMsg(
const msgs::Geometry &_msg);
151 public:
virtual double ComputeVolume()
const;
158 protected:
void SetCollisionName(
const std::string &_name);
184 private: std::string collisionName;
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:44
double contactRetro
Retro reflectance value.
Definition: RayShape.hh:166
Base class for all shapes.
Definition: Shape.hh:45
default namespace for gazebo
ignition::math::Vector3d relativeStartPos
Start position of the ray, relative to the body.
Definition: RayShape.hh:172
boost::shared_ptr< PhysicsEngine > PhysicsEnginePtr
Definition: PhysicsTypes.hh:125
ignition::math::Vector3d relativeEndPos
End position of the ray, relative to the body.
Definition: RayShape.hh:175
ignition::math::Vector3d globalStartPos
Start position of the ray in global cs.
Definition: RayShape.hh:178
int contactFiducial
Fiducial ID value.
Definition: RayShape.hh:169
Base class for Ray collision geometry.
Definition: RayShape.hh:35
#define GAZEBO_DEPRECATED(version)
Definition: system.hh:302
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
double contactLen
Length of the ray.
Definition: RayShape.hh:163
ignition::math::Vector3d globalEndPos
End position of the ray in global cs.
Definition: RayShape.hh:181
boost::shared_ptr< Collision > CollisionPtr
Definition: PhysicsTypes.hh:113
ODE specific version of MultiRayShape.
Definition: ODEMultiRayShape.hh:31