Ros2Message#

Fully qualified name: isaacsim::ros2::bridge::Ros2Message

class Ros2Message#

Base class for all ROS 2 message encapsulations.

Subclassed by isaacsim::ros2::bridge::Ros2AckermannDriveStampedMessage, isaacsim::ros2::bridge::Ros2BoundingBox2DMessage, isaacsim::ros2::bridge::Ros2BoundingBox3DMessage, isaacsim::ros2::bridge::Ros2CameraInfoMessage, isaacsim::ros2::bridge::Ros2ClockMessage, isaacsim::ros2::bridge::Ros2DynamicMessage, isaacsim::ros2::bridge::Ros2ImageMessage, isaacsim::ros2::bridge::Ros2ImuMessage, isaacsim::ros2::bridge::Ros2JointStateMessage, isaacsim::ros2::bridge::Ros2LaserScanMessage, isaacsim::ros2::bridge::Ros2NitrosBridgeImageMessage, isaacsim::ros2::bridge::Ros2OdometryMessage, isaacsim::ros2::bridge::Ros2PointCloudMessage, isaacsim::ros2::bridge::Ros2RawTfTreeMessage, isaacsim::ros2::bridge::Ros2SemanticLabelMessage, isaacsim::ros2::bridge::Ros2TfTreeMessage, isaacsim::ros2::bridge::Ros2TwistMessage

Public Functions

inline void *getPtr()#

Get the message pointer.

Returns:

The pointer to the message if it has been created and initialized properly, otherwise nullptr.

virtual const void *getTypeSupportHandle() = 0#

Get the pointer to the struct that contains the ROS IDL message type support data.

The pointer points to a ROS IDL struct if the message if founded.

Message type

ROS IDL struct

Topic (Message)

rosidl_message_type_support_t

Service

rosidl_service_type_support_t

Action

rosidl_action_type_support_t

Returns:

The pointer to the struct, otherwise nullptr.

Protected Attributes

void *m_msg = nullptr#

Message pointer.