Ros2Subscriber#

Fully qualified name: isaacsim::ros2::bridge::Ros2Subscriber

class Ros2Subscriber#

Base class for ROS 2 subscribers.

Public Functions

virtual bool spin(void *msg) = 0#

Do subscription work to take an incoming message from the topic, if any.

Parameters:

msg – Pointer to store the message content, if a message has been received and taken.

Returns:

True if there is a message and it has been taken without error, false otherwise.

virtual bool isValid() = 0#

Check whether the object holds a valid ROS 2 subscriber instance.

Returns:

Whether the object holds a valid ROS 2 subscriber instance.