Ignition Gazebo

API Reference

2.10.0
ignition::gazebo::serializers Namespace Reference

A Serializer class is used to serialize and deserialize a component. It is passed in as the third template parameter to components::Component. Eg. More...

Classes

class  ComponentToMsgSerializer
 Serialization for that converts components data types to ignition::msgs. This assumes that convert<DataType> is defined. More...
 
class  DefaultSerializer
 Default serializer template to call stream operators only on types that support them. If the stream operator is not available, a warning message is printed. More...
 
class  DefaultSerializer< components::NoData >
 Specialization of DefaultSerializer for NoData. More...
 
class  JointTypeSerializer
 
class  LevelEntityNamesSerializer
 
class  PerformerLevelsSerializer
 
class  VectorDoubleSerializer
 Serializer for components that hold std::vector<double>. More...
 

Typedefs

using CollisionElementSerializer = serializers::ComponentToMsgSerializer< sdf::Collision, msgs::Collision >
 
using GeometrySerializer = serializers::ComponentToMsgSerializer< sdf::Geometry, msgs::Geometry >
 
using InertialSerializer = serializers::ComponentToMsgSerializer< math::Inertiald, msgs::Inertial >
 
using JointAxisSerializer = serializers::ComponentToMsgSerializer< sdf::JointAxis, msgs::Axis >
 
using LightSerializer = serializers::ComponentToMsgSerializer< sdf::Light, msgs::Light >
 
using MaterialSerializer = serializers::ComponentToMsgSerializer< sdf::Material, msgs::Material >
 
using SceneSerializer = serializers::ComponentToMsgSerializer< sdf::Scene, msgs::Scene >
 
using SensorSerializer = ComponentToMsgSerializer< sdf::Sensor, msgs::Sensor >
 Common serializer for sensors. More...
 

Detailed Description

A Serializer class is used to serialize and deserialize a component. It is passed in as the third template parameter to components::Component. Eg.

using Geometry = components::Component<sdf::Geometry, GeometryTag,

A serializer class implements two static functions: Serialize and Deserialize with the following signatures

class ExampleSerializer
{
public: static std::ostream &Serialize(std::ostream &_out,
const DataType &_data);
public: static std::istream &Deserialize(std::istream &_in,
DataType &_data)
};

Typedef Documentation

◆ CollisionElementSerializer

using CollisionElementSerializer = serializers::ComponentToMsgSerializer<sdf::Collision, msgs::Collision>

◆ GeometrySerializer

using GeometrySerializer = serializers::ComponentToMsgSerializer<sdf::Geometry, msgs::Geometry>

◆ InertialSerializer

◆ JointAxisSerializer

using JointAxisSerializer = serializers::ComponentToMsgSerializer<sdf::JointAxis, msgs::Axis>

◆ LightSerializer

using LightSerializer = serializers::ComponentToMsgSerializer<sdf::Light, msgs::Light>

◆ MaterialSerializer

using MaterialSerializer = serializers::ComponentToMsgSerializer<sdf::Material, msgs::Material>

◆ SceneSerializer

using SceneSerializer = serializers::ComponentToMsgSerializer<sdf::Scene, msgs::Scene>

◆ SensorSerializer

using SensorSerializer = ComponentToMsgSerializer<sdf::Sensor, msgs::Sensor>

Common serializer for sensors.