Ros2Client#
Fully qualified name: isaacsim::ros2::bridge::Ros2Client
-
class Ros2Client#
Base class for ROS 2 service clients.
Public Functions
-
virtual bool sendRequest(void *requestMsg) = 0#
Send a request message to the topic.
- Parameters:
requestMsg – Message pointer.
- Returns:
True if the request message was sent without error, false otherwise.
-
virtual bool takeResponse(void *responseMsg) = 0#
Do client work to take an incoming response message from the topic, if any.
- Parameters:
responseMsg – Pointer to store the message content, if a response message has been received and taken.
- Returns:
True if there is a response message and it has been taken without error, false otherwise.
-
virtual bool isValid() = 0#
Check whether the object holds a valid ROS 2 service client instance.
- Returns:
Whether the object holds a valid ROS 2 service client instance.
-
virtual bool sendRequest(void *requestMsg) = 0#