registerShapeMsgs function
void
registerShapeMsgs()
Registers every message in shape_msgs.
Call once at startup, before the first subscribe or advertise.
Implementation
void registerShapeMsgs() {
MessageRegistry.register(const MessageCodec<Mesh>(
rosType: 'shape_msgs/msg/Mesh',
fromJson: Mesh.fromJson,
toJson: _toJson,
));
MessageRegistry.register(const MessageCodec<MeshTriangle>(
rosType: 'shape_msgs/msg/MeshTriangle',
fromJson: MeshTriangle.fromJson,
toJson: _toJson,
));
MessageRegistry.register(const MessageCodec<Plane>(
rosType: 'shape_msgs/msg/Plane',
fromJson: Plane.fromJson,
toJson: _toJson,
));
MessageRegistry.register(const MessageCodec<SolidPrimitive>(
rosType: 'shape_msgs/msg/SolidPrimitive',
fromJson: SolidPrimitive.fromJson,
toJson: _toJson,
));
}