All messages and helper functions. More...
Namespaces | |
gazebo::msgs | |
Messages namespace. | |
Classes | |
class | google::protobuf::compiler::cpp::GazeboGenerator |
Google protobuf message generator for gazebo::msgs. More... | |
class | gazebo::msgs::MsgFactory |
A factory that generates protobuf message based on a string type. More... | |
Macros | |
#define | GZ_REGISTER_STATIC_MSG(_msgtype, _classname) |
Static message registration macro. More... | |
Functions | |
GAZEBO_VISIBLE msgs::Vector3d | gazebo::msgs::Convert (const math::Vector3 &_v) |
Convert a math::Vector3 to a msgs::Vector3d. More... | |
GAZEBO_VISIBLE msgs::Quaternion | gazebo::msgs::Convert (const math::Quaternion &_q) |
Convert a math::Quaternion to a msgs::Quaternion. More... | |
GAZEBO_VISIBLE msgs::Pose | gazebo::msgs::Convert (const math::Pose &_p) |
Convert a math::Pose to a msgs::Pose. More... | |
GAZEBO_VISIBLE msgs::Color | gazebo::msgs::Convert (const common::Color &_c) |
Convert a common::Color to a msgs::Color. More... | |
GAZEBO_VISIBLE msgs::Time | gazebo::msgs::Convert (const common::Time &_t) |
Convert a common::Time to a msgs::Time. More... | |
GAZEBO_VISIBLE msgs::PlaneGeom | gazebo::msgs::Convert (const math::Plane &_p) |
Convert a math::Plane to a msgs::PlaneGeom. More... | |
GAZEBO_VISIBLE math::Vector3 | gazebo::msgs::Convert (const msgs::Vector3d &_v) |
Convert a msgs::Vector3d to a math::Vector. More... | |
GAZEBO_VISIBLE math::Vector2d | gazebo::msgs::Convert (const msgs::Vector2d &_v) |
Convert a msgs::Vector2d to a math::Vector2d. More... | |
GAZEBO_VISIBLE math::Quaternion | gazebo::msgs::Convert (const msgs::Quaternion &_q) |
Convert a msgs::Quaternion to a math::Quaternion. More... | |
GAZEBO_VISIBLE math::Pose | gazebo::msgs::Convert (const msgs::Pose &_p) |
Convert a msgs::Pose to a math::Pose. More... | |
GAZEBO_VISIBLE common::Color | gazebo::msgs::Convert (const msgs::Color &_c) |
Convert a msgs::Color to a common::Color. More... | |
GAZEBO_VISIBLE common::Time | gazebo::msgs::Convert (const msgs::Time &_t) |
Convert a msgs::Time to a common::Time. More... | |
GAZEBO_VISIBLE math::Plane | gazebo::msgs::Convert (const msgs::PlaneGeom &_p) |
Convert a msgs::PlaneGeom to a common::Plane. More... | |
GAZEBO_VISIBLE msgs::Request * | gazebo::msgs::CreateRequest (const std::string &_request, const std::string &_data="") |
Create a request message. More... | |
GAZEBO_VISIBLE msgs::Fog | gazebo::msgs::FogFromSDF (sdf::ElementPtr _sdf) |
Create a msgs::Fog from a fog SDF element. More... | |
GAZEBO_VISIBLE msgs::Geometry | gazebo::msgs::GeometryFromSDF (sdf::ElementPtr _sdf) |
Create a msgs::Geometry from a geometry SDF element. More... | |
GAZEBO_VISIBLE msgs::Header * | gazebo::msgs::GetHeader (google::protobuf::Message &_message) |
Get the header from a protobuf message. More... | |
GAZEBO_VISIBLE msgs::GUI | gazebo::msgs::GUIFromSDF (sdf::ElementPtr _sdf) |
Create a msgs::GUI from a GUI SDF element. More... | |
GAZEBO_VISIBLE void | gazebo::msgs::Init (google::protobuf::Message &_message, const std::string &_id="") |
Initialize a message. More... | |
GAZEBO_VISIBLE msgs::Light | gazebo::msgs::LightFromSDF (sdf::ElementPtr _sdf) |
Create a msgs::Light from a light SDF element. More... | |
GAZEBO_VISIBLE sdf::ElementPtr | gazebo::msgs::LightToSDF (const msgs::Light &_msg, sdf::ElementPtr _sdf=sdf::ElementPtr()) |
Create an SDF element from a msgs::Scene. More... | |
GAZEBO_VISIBLE msgs::MeshGeom | gazebo::msgs::MeshFromSDF (sdf::ElementPtr _sdf) |
Create a msgs::MeshGeom from a mesh SDF element. More... | |
GAZEBO_VISIBLE msgs::Scene | gazebo::msgs::SceneFromSDF (sdf::ElementPtr _sdf) |
Create a msgs::Scene from a scene SDF element. More... | |
GAZEBO_VISIBLE void | gazebo::msgs::Set (common::Image &_img, const msgs::Image &_msg) |
Convert a msgs::Image to a common::Image. More... | |
GAZEBO_VISIBLE void | gazebo::msgs::Set (msgs::Image *_msg, const common::Image &_i) |
Set a msgs::Image from a common::Image. More... | |
GAZEBO_VISIBLE void | gazebo::msgs::Set (msgs::Vector3d *_pt, const math::Vector3 &_v) |
Set a msgs::Vector3d from a math::Vector3. More... | |
GAZEBO_VISIBLE void | gazebo::msgs::Set (msgs::Vector2d *_pt, const math::Vector2d &_v) |
Set a msgs::Vector2d from a math::Vector3. More... | |
GAZEBO_VISIBLE void | gazebo::msgs::Set (msgs::Quaternion *_q, const math::Quaternion &_v) |
Set a msgs::Quaternion from a math::Quaternion. More... | |
GAZEBO_VISIBLE void | gazebo::msgs::Set (msgs::Pose *_p, const math::Pose &_v) |
Set a msgs::Pose from a math::Pose. More... | |
GAZEBO_VISIBLE void | gazebo::msgs::Set (msgs::Color *_c, const common::Color &_v) |
Set a msgs::Color from a common::Color. More... | |
GAZEBO_VISIBLE void | gazebo::msgs::Set (msgs::Time *_t, const common::Time &_v) |
Set a msgs::Time from a common::Time. More... | |
void | gazebo::msgs::Set (msgs::SphericalCoordinates *_s, const common::SphericalCoordinates &_v) |
Set a msgs::SphericalCoordinates from a common::SphericalCoordinates object. More... | |
GAZEBO_VISIBLE void | gazebo::msgs::Set (msgs::PlaneGeom *_p, const math::Plane &_v) |
Set a msgs::Plane from a math::Plane. More... | |
GAZEBO_VISIBLE void | gazebo::msgs::Stamp (msgs::Header *_header) |
Time stamp a header. More... | |
GAZEBO_VISIBLE void | gazebo::msgs::Stamp (msgs::Time *_time) |
Set the time in a time message. More... | |
GAZEBO_VISIBLE msgs::TrackVisual | gazebo::msgs::TrackVisualFromSDF (sdf::ElementPtr _sdf) |
Create a msgs::TrackVisual from a track visual SDF element. More... | |
GAZEBO_VISIBLE msgs::Visual | gazebo::msgs::VisualFromSDF (sdf::ElementPtr _sdf) |
Create a msgs::Visual from a visual SDF element. More... | |
All messages and helper functions.
#define GZ_REGISTER_STATIC_MSG | ( | _msgtype, | |
_classname | |||
) |
Static message registration macro.
Use this macro to register messages.
[in] | _msgtype | Message type name. |
[in] | _classname | Class name for message. |
GAZEBO_VISIBLE msgs::Vector3d gazebo::msgs::Convert | ( | const math::Vector3 & | _v | ) |
Convert a math::Vector3 to a msgs::Vector3d.
[in] | _v | The vector to convert |
GAZEBO_VISIBLE msgs::Quaternion gazebo::msgs::Convert | ( | const math::Quaternion & | _q | ) |
Convert a math::Quaternion to a msgs::Quaternion.
[in] | _q | The quaternion to convert |
GAZEBO_VISIBLE msgs::Pose gazebo::msgs::Convert | ( | const math::Pose & | _p | ) |
Convert a math::Pose to a msgs::Pose.
[in] | _p | The pose to convert |
GAZEBO_VISIBLE msgs::Color gazebo::msgs::Convert | ( | const common::Color & | _c | ) |
Convert a common::Color to a msgs::Color.
[in] | _c | The color to convert |
GAZEBO_VISIBLE msgs::Time gazebo::msgs::Convert | ( | const common::Time & | _t | ) |
Convert a common::Time to a msgs::Time.
[in] | _t | The time to convert |
GAZEBO_VISIBLE msgs::PlaneGeom gazebo::msgs::Convert | ( | const math::Plane & | _p | ) |
Convert a math::Plane to a msgs::PlaneGeom.
[in] | _p | The plane to convert |
GAZEBO_VISIBLE math::Vector3 gazebo::msgs::Convert | ( | const msgs::Vector3d & | _v | ) |
Convert a msgs::Vector3d to a math::Vector.
[in] | _v | The plane to convert |
GAZEBO_VISIBLE math::Vector2d gazebo::msgs::Convert | ( | const msgs::Vector2d & | _v | ) |
Convert a msgs::Vector2d to a math::Vector2d.
[in] | _v | The vector2 to convert |
GAZEBO_VISIBLE math::Quaternion gazebo::msgs::Convert | ( | const msgs::Quaternion & | _q | ) |
Convert a msgs::Quaternion to a math::Quaternion.
[in] | _q | The quaternion to convert |
GAZEBO_VISIBLE math::Pose gazebo::msgs::Convert | ( | const msgs::Pose & | _p | ) |
Convert a msgs::Pose to a math::Pose.
[in] | _q | The pose to convert |
GAZEBO_VISIBLE common::Color gazebo::msgs::Convert | ( | const msgs::Color & | _c | ) |
Convert a msgs::Color to a common::Color.
[in] | _c | The color to convert |
GAZEBO_VISIBLE common::Time gazebo::msgs::Convert | ( | const msgs::Time & | _t | ) |
Convert a msgs::Time to a common::Time.
[in] | _t | The time to convert |
GAZEBO_VISIBLE math::Plane gazebo::msgs::Convert | ( | const msgs::PlaneGeom & | _p | ) |
Convert a msgs::PlaneGeom to a common::Plane.
[in] | _p | The plane to convert |
GAZEBO_VISIBLE msgs::Request* gazebo::msgs::CreateRequest | ( | const std::string & | _request, |
const std::string & | _data = "" |
||
) |
Create a request message.
[in] | _request | Request string |
[in] | _data | Optional data string |
GAZEBO_VISIBLE msgs::Fog gazebo::msgs::FogFromSDF | ( | sdf::ElementPtr | _sdf | ) |
Create a msgs::Fog from a fog SDF element.
[in] | _sdf | The sdf element |
GAZEBO_VISIBLE msgs::Geometry gazebo::msgs::GeometryFromSDF | ( | sdf::ElementPtr | _sdf | ) |
Create a msgs::Geometry from a geometry SDF element.
[in] | _sdf | The sdf element |
GAZEBO_VISIBLE msgs::Header* gazebo::msgs::GetHeader | ( | google::protobuf::Message & | _message | ) |
Get the header from a protobuf message.
[in] | _message | A google protobuf message |
GAZEBO_VISIBLE msgs::GUI gazebo::msgs::GUIFromSDF | ( | sdf::ElementPtr | _sdf | ) |
Create a msgs::GUI from a GUI SDF element.
[in] | _sdf | The sdf element |
GAZEBO_VISIBLE void gazebo::msgs::Init | ( | google::protobuf::Message & | _message, |
const std::string & | _id = "" |
||
) |
Initialize a message.
[in] | _message | Message to initialize |
[in] | _id | Optional string id |
Referenced by gazebo::physics::HingeJoint< BulletJoint >::Init(), gazebo::physics::BallJoint< BulletJoint >::Init(), gazebo::physics::UniversalJoint< BulletJoint >::Init(), gazebo::physics::ScrewJoint< BulletJoint >::Init(), and gazebo::physics::GearboxJoint< ODEJoint >::Init().
GAZEBO_VISIBLE msgs::Light gazebo::msgs::LightFromSDF | ( | sdf::ElementPtr | _sdf | ) |
Create a msgs::Light from a light SDF element.
[in] | _sdf | The sdf element |
GAZEBO_VISIBLE sdf::ElementPtr gazebo::msgs::LightToSDF | ( | const msgs::Light & | _msg, |
sdf::ElementPtr | _sdf = sdf::ElementPtr() |
||
) |
Create an SDF element from a msgs::Scene.
[in] | _msg | Light messsage |
[in] | _sdf | if supplied, performs an update from _msg intead of creating a new sdf element. |
GAZEBO_VISIBLE msgs::MeshGeom gazebo::msgs::MeshFromSDF | ( | sdf::ElementPtr | _sdf | ) |
Create a msgs::MeshGeom from a mesh SDF element.
[in] | _sdf | The sdf element |
GAZEBO_VISIBLE msgs::Scene gazebo::msgs::SceneFromSDF | ( | sdf::ElementPtr | _sdf | ) |
Create a msgs::Scene from a scene SDF element.
[in] | _sdf | The sdf element |
GAZEBO_VISIBLE void gazebo::msgs::Set | ( | common::Image & | _img, |
const msgs::Image & | _msg | ||
) |
Convert a msgs::Image to a common::Image.
[out] | _img | The common::Image container |
[in] | _msg | The Image message to convert |
Referenced by gazebo::gui::DirectionalLightMaker::DirectionalLightMaker(), and gazebo::gui::SpotLightMaker::SpotLightMaker().
GAZEBO_VISIBLE void gazebo::msgs::Set | ( | msgs::Image * | _msg, |
const common::Image & | _i | ||
) |
Set a msgs::Image from a common::Image.
[out] | _msg | A msgs::Image pointer |
[in] | _i | A common::Image reference |
GAZEBO_VISIBLE void gazebo::msgs::Set | ( | msgs::Vector3d * | _pt, |
const math::Vector3 & | _v | ||
) |
Set a msgs::Vector3d from a math::Vector3.
[out] | _pt | A msgs::Vector3d pointer |
[in] | _v | A math::Vector3 reference |
GAZEBO_VISIBLE void gazebo::msgs::Set | ( | msgs::Vector2d * | _pt, |
const math::Vector2d & | _v | ||
) |
Set a msgs::Vector2d from a math::Vector3.
[out] | _pt | A msgs::Vector2d pointer |
[in] | _v | A math::Vector2d reference |
GAZEBO_VISIBLE void gazebo::msgs::Set | ( | msgs::Quaternion * | _q, |
const math::Quaternion & | _v | ||
) |
Set a msgs::Quaternion from a math::Quaternion.
[out] | _q | A msgs::Quaternion pointer |
[in] | _v | A math::Quaternion reference |
GAZEBO_VISIBLE void gazebo::msgs::Set | ( | msgs::Pose * | _p, |
const math::Pose & | _v | ||
) |
Set a msgs::Pose from a math::Pose.
[out] | _p | A msgs::Pose pointer |
[in] | _v | A math::Pose reference |
GAZEBO_VISIBLE void gazebo::msgs::Set | ( | msgs::Color * | _c, |
const common::Color & | _v | ||
) |
Set a msgs::Color from a common::Color.
[out] | _p | A msgs::Color pointer |
[in] | _v | A common::Color reference |
GAZEBO_VISIBLE void gazebo::msgs::Set | ( | msgs::Time * | _t, |
const common::Time & | _v | ||
) |
Set a msgs::Time from a common::Time.
[out] | _p | A msgs::Time pointer |
[in] | _v | A common::Time reference |
void gazebo::msgs::Set | ( | msgs::SphericalCoordinates * | _s, |
const common::SphericalCoordinates & | _v | ||
) |
Set a msgs::SphericalCoordinates from a common::SphericalCoordinates object.
[out] | _p | A msgs::SphericalCoordinates pointer. |
[in] | _v | A common::SphericalCoordinates reference |
GAZEBO_VISIBLE void gazebo::msgs::Set | ( | msgs::PlaneGeom * | _p, |
const math::Plane & | _v | ||
) |
Set a msgs::Plane from a math::Plane.
[out] | _p | A msgs::Plane pointer |
[in] | _v | A math::Plane reference |
GAZEBO_VISIBLE void gazebo::msgs::Stamp | ( | msgs::Header * | _header | ) |
Time stamp a header.
[in] | _header | Header to stamp |
GAZEBO_VISIBLE void gazebo::msgs::Stamp | ( | msgs::Time * | _time | ) |
Set the time in a time message.
[in] | _time | A Time message |
GAZEBO_VISIBLE msgs::TrackVisual gazebo::msgs::TrackVisualFromSDF | ( | sdf::ElementPtr | _sdf | ) |
Create a msgs::TrackVisual from a track visual SDF element.
[in] | _sdf | The sdf element |
GAZEBO_VISIBLE msgs::Visual gazebo::msgs::VisualFromSDF | ( | sdf::ElementPtr | _sdf | ) |
Create a msgs::Visual from a visual SDF element.
[in] | _sdf | The sdf element |