All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Classes | Macros | Functions
Messages

All messages and helper functions. More...

Namespaces

namespace  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

msgs::Vector3d gazebo::msgs::Convert (const math::Vector3 &_v)
 Convert a math::Vector3 to a msgs::Vector3d. More...
 
msgs::Quaternion gazebo::msgs::Convert (const math::Quaternion &_q)
 Convert a math::Quaternion to a msgs::Quaternion. More...
 
msgs::Pose gazebo::msgs::Convert (const math::Pose &_p)
 Convert a math::Pose to a msgs::Pose. More...
 
msgs::Color gazebo::msgs::Convert (const common::Color &_c)
 Convert a common::Color to a msgs::Color. More...
 
msgs::Time gazebo::msgs::Convert (const common::Time &_t)
 Convert a common::Time to a msgs::Time. More...
 
msgs::PlaneGeom gazebo::msgs::Convert (const math::Plane &_p)
 Convert a math::Plane to a msgs::PlaneGeom. More...
 
math::Vector3 gazebo::msgs::Convert (const msgs::Vector3d &_v)
 Convert a msgs::Vector3d to a math::Vector. More...
 
math::Quaternion gazebo::msgs::Convert (const msgs::Quaternion &_q)
 Convert a msgs::Quaternion to a math::Quaternion. More...
 
math::Pose gazebo::msgs::Convert (const msgs::Pose &_p)
 Convert a msgs::Pose to a math::Pose. More...
 
common::Color gazebo::msgs::Convert (const msgs::Color &_c)
 Convert a msgs::Color to a common::Color. More...
 
common::Time gazebo::msgs::Convert (const msgs::Time &_t)
 Convert a msgs::Time to a common::Time. More...
 
math::Plane gazebo::msgs::Convert (const msgs::PlaneGeom &_p)
 Convert a msgs::PlaneGeom to a common::Plane. More...
 
msgs::Request * gazebo::msgs::CreateRequest (const std::string &_request, const std::string &_data="")
 Create a request message. More...
 
msgs::Fog gazebo::msgs::FogFromSDF (sdf::ElementPtr _sdf)
 Create a msgs::Fog from a fog SDF element. More...
 
msgs::Geometry gazebo::msgs::GeometryFromSDF (sdf::ElementPtr _sdf)
 Create a msgs::Geometry from a geometry SDF element. More...
 
msgs::Header * gazebo::msgs::GetHeader (google::protobuf::Message &_message)
 Get the header from a protobuf message. More...
 
msgs::GUI gazebo::msgs::GUIFromSDF (sdf::ElementPtr _sdf)
 Create a msgs::GUI from a GUI SDF element. More...
 
void gazebo::msgs::Init (google::protobuf::Message &_message, const std::string &_id="")
 Initialize a message. More...
 
msgs::Light gazebo::msgs::LightFromSDF (sdf::ElementPtr _sdf)
 Create a msgs::Light from a light SDF element. More...
 
msgs::MeshGeom gazebo::msgs::MeshFromSDF (sdf::ElementPtr _sdf)
 Create a msgs::MeshGeom from a mesh SDF element. More...
 
msgs::Scene gazebo::msgs::SceneFromSDF (sdf::ElementPtr _sdf)
 Create a msgs::Scene from a scene SDF element. More...
 
void gazebo::msgs::Set (common::Image &_img, const msgs::Image &_msg)
 Convert a msgs::Image to a common::Image. More...
 
void gazebo::msgs::Set (msgs::Image *_msg, const common::Image &_i)
 Set a msgs::Image from a common::Image. More...
 
void gazebo::msgs::Set (msgs::Vector3d *_pt, const math::Vector3 &_v)
 Set a msgs::Vector3d from a math::Vector3. More...
 
void gazebo::msgs::Set (msgs::Vector2d *_pt, const math::Vector2d &_v)
 Set a msgs::Vector2d from a math::Vector3. More...
 
void gazebo::msgs::Set (msgs::Quaternion *_q, const math::Quaternion &_v)
 Set a msgs::Quaternion from a math::Quaternion. More...
 
void gazebo::msgs::Set (msgs::Pose *_p, const math::Pose &_v)
 Set a msgs::Pose from a math::Pose. More...
 
void gazebo::msgs::Set (msgs::Color *_c, const common::Color &_v)
 Set a msgs::Color from a common::Color. More...
 
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::PlaneGeom *_p, const math::Plane &_v)
 Set a msgs::Plane from a math::Plane. More...
 
void gazebo::msgs::Stamp (msgs::Header *_header)
 Time stamp a header. More...
 
void gazebo::msgs::Stamp (msgs::Time *_time)
 Set the time in a time message. More...
 
msgs::TrackVisual gazebo::msgs::TrackVisualFromSDF (sdf::ElementPtr _sdf)
 Create a msgs::TrackVisual from a track visual SDF element. More...
 
msgs::Visual gazebo::msgs::VisualFromSDF (sdf::ElementPtr _sdf)
 Create a msgs::Visual from a visual SDF element. More...
 

Detailed Description

All messages and helper functions.

Macro Definition Documentation

#define GZ_REGISTER_STATIC_MSG (   _msgtype,
  _classname 
)
Value:
boost::shared_ptr<google::protobuf::Message> New##_classname() \
{ \
return boost::shared_ptr<gazebo::msgs::_classname>(\
new gazebo::msgs::_classname); \
} \
class Msg##_classname \
{ \
public: Msg##_classname() \
{ \
gazebo::msgs::MsgFactory::RegisterMsg(_msgtype, New##_classname);\
} \
}; \
static Msg##_classname GzMsgInitializer;

Static message registration macro.

Use this macro to register messages.

Parameters
[in]_msgtypeMessage type name.
[in]_classnameClass name for message.

Function Documentation

msgs::Vector3d gazebo::msgs::Convert ( const math::Vector3 &  _v)

Convert a math::Vector3 to a msgs::Vector3d.

Parameters
[in]_vThe vector to convert
Returns
A msgs::Vector3d object
msgs::Quaternion gazebo::msgs::Convert ( const math::Quaternion &  _q)

Convert a math::Quaternion to a msgs::Quaternion.

Parameters
[in]_qThe quaternion to convert
Returns
A msgs::Quaternion object
msgs::Pose gazebo::msgs::Convert ( const math::Pose &  _p)

Convert a math::Pose to a msgs::Pose.

Parameters
[in]_pThe pose to convert
Returns
A msgs::Pose object
msgs::Color gazebo::msgs::Convert ( const common::Color &  _c)

Convert a common::Color to a msgs::Color.

Parameters
[in]_cThe color to convert
Returns
A msgs::Color object
msgs::Time gazebo::msgs::Convert ( const common::Time &  _t)

Convert a common::Time to a msgs::Time.

Parameters
[in]_tThe time to convert
Returns
A msgs::Time object
msgs::PlaneGeom gazebo::msgs::Convert ( const math::Plane &  _p)

Convert a math::Plane to a msgs::PlaneGeom.

Parameters
[in]_pThe plane to convert
Returns
A msgs::PlaneGeom object
math::Vector3 gazebo::msgs::Convert ( const msgs::Vector3d &  _v)

Convert a msgs::Vector3d to a math::Vector.

Parameters
[in]_vThe plane to convert
Returns
A math::Vector3 object
math::Quaternion gazebo::msgs::Convert ( const msgs::Quaternion &  _q)

Convert a msgs::Quaternion to a math::Quaternion.

Parameters
[in]_qThe quaternion to convert
Returns
A math::Quaternion object
math::Pose gazebo::msgs::Convert ( const msgs::Pose &  _p)

Convert a msgs::Pose to a math::Pose.

Parameters
[in]_qThe pose to convert
Returns
A math::Pose object
common::Color gazebo::msgs::Convert ( const msgs::Color &  _c)

Convert a msgs::Color to a common::Color.

Parameters
[in]_cThe color to convert
Returns
A common::Color object
common::Time gazebo::msgs::Convert ( const msgs::Time &  _t)

Convert a msgs::Time to a common::Time.

Parameters
[in]_tThe time to convert
Returns
A common::Time object
math::Plane gazebo::msgs::Convert ( const msgs::PlaneGeom &  _p)

Convert a msgs::PlaneGeom to a common::Plane.

Parameters
[in]_pThe plane to convert
Returns
A common::Plane object
msgs::Request* gazebo::msgs::CreateRequest ( const std::string &  _request,
const std::string &  _data = "" 
)

Create a request message.

Parameters
[in]_requestRequest string
[in]_dataOptional data string
Returns
A Request message
msgs::Fog gazebo::msgs::FogFromSDF ( sdf::ElementPtr  _sdf)

Create a msgs::Fog from a fog SDF element.

Parameters
[in]_sdfThe sdf element
Returns
The new msgs::Fog object
msgs::Geometry gazebo::msgs::GeometryFromSDF ( sdf::ElementPtr  _sdf)

Create a msgs::Geometry from a geometry SDF element.

Parameters
[in]_sdfThe sdf element
Returns
The new msgs::Geometry object
msgs::Header* gazebo::msgs::GetHeader ( google::protobuf::Message &  _message)

Get the header from a protobuf message.

Parameters
[in]_messageA google protobuf message
Returns
A pointer to the message's header
msgs::GUI gazebo::msgs::GUIFromSDF ( sdf::ElementPtr  _sdf)

Create a msgs::GUI from a GUI SDF element.

Parameters
[in]_sdfThe sdf element
Returns
The new msgs::GUI object
void gazebo::msgs::Init ( google::protobuf::Message &  _message,
const std::string &  _id = "" 
)

Initialize a message.

Parameters
[in]_messageMessage to initialize
[in]_idOptional string id

Referenced by gazebo::physics::HingeJoint< SimbodyJoint >::Init().

msgs::Light gazebo::msgs::LightFromSDF ( sdf::ElementPtr  _sdf)

Create a msgs::Light from a light SDF element.

Parameters
[in]_sdfThe sdf element
Returns
The new msgs::Light object
msgs::MeshGeom gazebo::msgs::MeshFromSDF ( sdf::ElementPtr  _sdf)

Create a msgs::MeshGeom from a mesh SDF element.

Parameters
[in]_sdfThe sdf element
Returns
The new msgs::MeshGeom object
msgs::Scene gazebo::msgs::SceneFromSDF ( sdf::ElementPtr  _sdf)

Create a msgs::Scene from a scene SDF element.

Parameters
[in]_sdfThe sdf element
Returns
The new msgs::Scene object
void gazebo::msgs::Set ( common::Image &  _img,
const msgs::Image &  _msg 
)

Convert a msgs::Image to a common::Image.

Parameters
[out]_imgThe common::Image container
[in]_msgThe Image message to convert
void gazebo::msgs::Set ( msgs::Image *  _msg,
const common::Image &  _i 
)

Set a msgs::Image from a common::Image.

Parameters
[out]_msgA msgs::Image pointer
[in]_iA common::Image reference
void gazebo::msgs::Set ( msgs::Vector3d *  _pt,
const math::Vector3 &  _v 
)

Set a msgs::Vector3d from a math::Vector3.

Parameters
[out]_ptA msgs::Vector3d pointer
[in]_vA math::Vector3 reference
void gazebo::msgs::Set ( msgs::Vector2d *  _pt,
const math::Vector2d &  _v 
)

Set a msgs::Vector2d from a math::Vector3.

Parameters
[out]_ptA msgs::Vector2d pointer
[in]_vA math::Vector2d reference
void gazebo::msgs::Set ( msgs::Quaternion *  _q,
const math::Quaternion &  _v 
)

Set a msgs::Quaternion from a math::Quaternion.

Parameters
[out]_qA msgs::Quaternion pointer
[in]_vA math::Quaternion reference
void gazebo::msgs::Set ( msgs::Pose *  _p,
const math::Pose &  _v 
)

Set a msgs::Pose from a math::Pose.

Parameters
[out]_pA msgs::Pose pointer
[in]_vA math::Pose reference
void gazebo::msgs::Set ( msgs::Color *  _c,
const common::Color &  _v 
)

Set a msgs::Color from a common::Color.

Parameters
[out]_pA msgs::Color pointer
[in]_vA common::Color reference
void gazebo::msgs::Set ( msgs::Time *  _t,
const common::Time &  _v 
)

Set a msgs::Time from a common::Time.

Parameters
[out]_pA msgs::Time pointer
[in]_vA common::Time reference
void gazebo::msgs::Set ( msgs::PlaneGeom *  _p,
const math::Plane &  _v 
)

Set a msgs::Plane from a math::Plane.

Parameters
[out]_pA msgs::Plane pointer
[in]_vA math::Plane reference
void gazebo::msgs::Stamp ( msgs::Header *  _header)

Time stamp a header.

Parameters
[in]_headerHeader to stamp
void gazebo::msgs::Stamp ( msgs::Time *  _time)

Set the time in a time message.

Parameters
[in]_timeA Time message
msgs::TrackVisual gazebo::msgs::TrackVisualFromSDF ( sdf::ElementPtr  _sdf)

Create a msgs::TrackVisual from a track visual SDF element.

Parameters
[in]_sdfThe sdf element
Returns
The new msgs::TrackVisual object
msgs::Visual gazebo::msgs::VisualFromSDF ( sdf::ElementPtr  _sdf)

Create a msgs::Visual from a visual SDF element.

Parameters
[in]_sdfThe sdf element
Returns
The new msgs::Visual object