Go to the documentation of this file.
17 #ifndef IGNITION_MSGS_UTILITY_HH_
18 #define IGNITION_MSGS_UTILITY_HH_
24 #include <ignition/math/AxisAlignedBox.hh>
25 #include <ignition/math/Color.hh>
26 #include <ignition/math/Inertial.hh>
27 #include <ignition/math/Pose3.hh>
28 #include <ignition/math/Plane.hh>
29 #include <ignition/math/Vector3.hh>
74 math::Color
Convert(
const msgs::Color &_c);
93 math::AxisAlignedBox
Convert(
const msgs::AxisAlignedBox &_b);
100 msgs::AxisAlignedBox
Convert(
const math::AxisAlignedBox &_b);
105 IGNITION_MSGS_VISIBLE
111 IGNITION_MSGS_VISIBLE
112 bool Convert(
const msgs::Boolean &_m);
117 IGNITION_MSGS_VISIBLE
118 int32_t
Convert(
const msgs::Int32 &_m);
123 IGNITION_MSGS_VISIBLE
124 uint32_t
Convert(
const msgs::UInt32 &_m);
129 IGNITION_MSGS_VISIBLE
130 int64_t
Convert(
const msgs::Int64 &_m);
135 IGNITION_MSGS_VISIBLE
136 uint64_t
Convert(
const msgs::UInt64 &_m);
141 IGNITION_MSGS_VISIBLE
142 double Convert(
const msgs::Double &_m);
147 IGNITION_MSGS_VISIBLE
148 float Convert(
const msgs::Float &_m);
153 IGNITION_MSGS_VISIBLE
159 IGNITION_MSGS_VISIBLE
165 IGNITION_MSGS_VISIBLE
171 IGNITION_MSGS_VISIBLE
177 IGNITION_MSGS_VISIBLE
178 msgs::Color
Convert(
const math::Color &_c);
183 IGNITION_MSGS_VISIBLE
189 IGNITION_MSGS_VISIBLE
195 IGNITION_MSGS_VISIBLE
201 IGNITION_MSGS_VISIBLE
207 IGNITION_MSGS_VISIBLE
208 msgs::Boolean
Convert(
const bool &_b);
213 IGNITION_MSGS_VISIBLE
214 msgs::Int32
Convert(
const int32_t &_i);
219 IGNITION_MSGS_VISIBLE
220 msgs::UInt32
Convert(
const uint32_t &_u);
225 IGNITION_MSGS_VISIBLE
226 msgs::Int64
Convert(
const int64_t &_i);
231 IGNITION_MSGS_VISIBLE
232 msgs::UInt64
Convert(
const uint64_t &_u);
237 IGNITION_MSGS_VISIBLE
238 msgs::Double
Convert(
const double &_d);
243 IGNITION_MSGS_VISIBLE
244 msgs::Float
Convert(
const float &_f);
250 IGNITION_MSGS_VISIBLE
257 IGNITION_MSGS_VISIBLE
263 IGNITION_MSGS_VISIBLE
269 IGNITION_MSGS_VISIBLE
275 IGNITION_MSGS_VISIBLE
282 IGNITION_MSGS_VISIBLE
289 IGNITION_MSGS_VISIBLE
296 IGNITION_MSGS_VISIBLE
302 IGNITION_MSGS_VISIBLE
308 IGNITION_MSGS_VISIBLE
314 IGNITION_MSGS_VISIBLE
320 IGNITION_MSGS_VISIBLE
326 IGNITION_MSGS_VISIBLE
327 void Set(msgs::Color *_c,
const math::Color &_v);
332 IGNITION_MSGS_VISIBLE
338 IGNITION_MSGS_VISIBLE
344 IGNITION_MSGS_VISIBLE
350 IGNITION_MSGS_VISIBLE
356 IGNITION_MSGS_VISIBLE
357 void Set(msgs::Boolean *_p,
const bool &_v);
362 IGNITION_MSGS_VISIBLE
363 void Set(msgs::Int32 *_p,
const int32_t &_v);
368 IGNITION_MSGS_VISIBLE
369 void Set(msgs::UInt32 *_p,
const uint32_t &_v);
374 IGNITION_MSGS_VISIBLE
375 void Set(msgs::Int64 *_p,
const int64_t &_v);
380 IGNITION_MSGS_VISIBLE
381 void Set(msgs::UInt64 *_p,
const uint64_t &_v);
386 IGNITION_MSGS_VISIBLE
387 void Set(msgs::Double *_p,
const double &_v);
392 IGNITION_MSGS_VISIBLE
393 void Set(msgs::Float *_p,
const float &_v);
398 IGNITION_MSGS_VISIBLE
399 void Set(msgs::AxisAlignedBox *_b,
const math::AxisAlignedBox &_v);
416 IGNITION_MSGS_VISIBLE
426 IGNITION_MSGS_VISIBLE
440 IGNITION_MSGS_VISIBLE
442 msgs::FuelMetadata &_meta);
455 IGNITION_MSGS_VISIBLE
Geometry_Type Type
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:202
#define IGNITION_MSGS_VERSION_NAMESPACE
Definition: build/ignition-msgs5/include/ignition/msgs/config.hh:11
std::string ToString(const msgs::Discovery::Type &_t)
Convert a Discovery::Type to a string. This can be used for debugging purposes.
MassMatrix3< double > MassMatrix3d
msgs::PixelFormatType ConvertPixelFormatType(const std::string &_str)
Convert a string to a msgs::PixelFormatType enum.
void Set(msgs::Vector3d *_pt, const ignition::math::Vector3d &_v)
Set a msgs::Vector3d from an ignition::math::Vector3d.
msgs::Geometry::Type ConvertGeometryType(const std::string &_str)
Convert a string to a msgs::Geometry::Type enum.
msgs::Material::ShaderType ConvertShaderType(const std::string &_str)
Convert a string to a msgs::Material::ShaderType enum.
PointCloudPacked_Field_DataType DataType
Definition: build/ignition-msgs5/include/ignition/msgs/pointcloud_packed.pb.h:194
msgs::Joint::Type ConvertJointType(const std::string &_str)
Convert a string to a msgs::Joint::Type enum.
PixelFormatType
Definition: build/ignition-msgs5/include/ignition/msgs/image.pb.h:76
Inertial< double > Inertiald
Discovery_Type Type
Definition: build/ignition-msgs5/include/ignition/msgs/discovery.pb.h:982
ignition::math::Vector3d Convert(const msgs::Vector3d &_v)
Convert a msgs::Vector3d to an ignition::math::Vector.
bool ConvertFuelMetadata(const std::string &_modelConfigStr, msgs::FuelMetadata &_meta)
Convert the contents of a model.config file, in the form of an XML string, to a FuelMetadata message.
void InitPointCloudPacked(msgs::PointCloudPacked &_msg, const std::string &_frameId, bool _memoryAligned, const std::vector< std::pair< std::string, msgs::PointCloudPacked::Field::DataType >> &_fields)
This function will set the header and field members of a PointCloudPacked message....
Joint_Type Type
Definition: build/ignition-msgs5/include/ignition/msgs/joint.pb.h:425
Material_ShaderType ShaderType
Definition: build/ignition-msgs5/include/ignition/msgs/material.pb.h:641