17 #ifndef IGNITION_MSGS_UTILITY_HH_ 18 #define IGNITION_MSGS_UTILITY_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
154 std::chrono::steady_clock::duration
Convert(
const msgs::Time &_time);
159 IGNITION_MSGS_VISIBLE
165 IGNITION_MSGS_VISIBLE
171 IGNITION_MSGS_VISIBLE
177 IGNITION_MSGS_VISIBLE
183 IGNITION_MSGS_VISIBLE
184 msgs::Color
Convert(
const math::Color &_c);
189 IGNITION_MSGS_VISIBLE
195 IGNITION_MSGS_VISIBLE
201 IGNITION_MSGS_VISIBLE
207 IGNITION_MSGS_VISIBLE
213 IGNITION_MSGS_VISIBLE
214 msgs::Boolean
Convert(
const bool &_b);
219 IGNITION_MSGS_VISIBLE
220 msgs::Int32
Convert(
const int32_t &_i);
225 IGNITION_MSGS_VISIBLE
226 msgs::UInt32
Convert(
const uint32_t &_u);
231 IGNITION_MSGS_VISIBLE
232 msgs::Int64
Convert(
const int64_t &_i);
237 IGNITION_MSGS_VISIBLE
238 msgs::UInt64
Convert(
const uint64_t &_u);
243 IGNITION_MSGS_VISIBLE
244 msgs::Double
Convert(
const double &_d);
249 IGNITION_MSGS_VISIBLE
250 msgs::Float
Convert(
const float &_f);
256 IGNITION_MSGS_VISIBLE
258 const std::chrono::steady_clock::duration &_time_point);
264 IGNITION_MSGS_VISIBLE
271 IGNITION_MSGS_VISIBLE
277 IGNITION_MSGS_VISIBLE
283 IGNITION_MSGS_VISIBLE
289 IGNITION_MSGS_VISIBLE
296 IGNITION_MSGS_VISIBLE
303 IGNITION_MSGS_VISIBLE
310 IGNITION_MSGS_VISIBLE
316 IGNITION_MSGS_VISIBLE
322 IGNITION_MSGS_VISIBLE
328 IGNITION_MSGS_VISIBLE
334 IGNITION_MSGS_VISIBLE
340 IGNITION_MSGS_VISIBLE
341 void Set(msgs::Color *_c,
const math::Color &_v);
346 IGNITION_MSGS_VISIBLE
352 IGNITION_MSGS_VISIBLE
358 IGNITION_MSGS_VISIBLE
364 IGNITION_MSGS_VISIBLE
370 IGNITION_MSGS_VISIBLE
371 void Set(msgs::Boolean *_p,
const bool &_v);
376 IGNITION_MSGS_VISIBLE
377 void Set(msgs::Int32 *_p,
const int32_t &_v);
382 IGNITION_MSGS_VISIBLE
383 void Set(msgs::UInt32 *_p,
const uint32_t &_v);
388 IGNITION_MSGS_VISIBLE
389 void Set(msgs::Int64 *_p,
const int64_t &_v);
394 IGNITION_MSGS_VISIBLE
395 void Set(msgs::UInt64 *_p,
const uint64_t &_v);
400 IGNITION_MSGS_VISIBLE
401 void Set(msgs::Double *_p,
const double &_v);
406 IGNITION_MSGS_VISIBLE
407 void Set(msgs::Float *_p,
const float &_v);
412 IGNITION_MSGS_VISIBLE
413 void Set(msgs::AxisAlignedBox *_b,
const math::AxisAlignedBox &_v);
430 IGNITION_MSGS_VISIBLE
440 IGNITION_MSGS_VISIBLE
454 IGNITION_MSGS_VISIBLE
456 msgs::FuelMetadata &_meta);
469 IGNITION_MSGS_VISIBLE
#define IGNITION_MSGS_VERSION_NAMESPACE
Definition: config.hh:11
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. This will clear existing values in the PointCloudPacked field and header.
msgs::Joint::Type ConvertJointType(const std::string &_str)
Convert a string to a msgs::Joint::Type enum.
PixelFormatType
Definition: image.pb.h:55
Joint_Type Type
Definition: joint.pb.h:326
PointCloudPacked_Field_DataType DataType
Definition: pointcloud_packed.pb.h:143
Material_ShaderType ShaderType
Definition: material.pb.h:509
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...
Discovery_Type Type
Definition: discovery.pb.h:778
Geometry_Type Type
Definition: geometry.pb.h:158
msgs::Material::ShaderType ConvertShaderType(const std::string &_str)
Convert a string to a msgs::Material::ShaderType enum.
std::string ToString(const msgs::Discovery::Type &_t)
Convert a Discovery::Type to a string. This can be used for debugging purposes.
msgs::Geometry::Type ConvertGeometryType(const std::string &_str)
Convert a string to a msgs::Geometry::Type enum.
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.
ignition::math::Vector3d Convert(const msgs::Vector3d &_v)
Convert a msgs::Vector3d to an ignition::math::Vector.
Inertial< double > Inertiald
MassMatrix3< double > MassMatrix3d