Supported ROS2 Messages#
Sugarcoat components create automatic subscribers and callbacks to all inputs and publishers to all outputs.
Tip
Access all callbacks in a BaseComponent in self.callbacks: Dict[str, GenericCallback] and get the topic incoming message using get_ouput method in the GenericCallback class
Tip
Access all publishers in a BaseComponent in self.publishers_dict: Dict[str, Publisher] and publish a new message to the topic using publish method in the Publisher class
Many supported message types in Sugarcoat come with pre-defined callback and publisher classes to convert ROS2 messages to Python types. Below is a list of supported messages and the types accepted by their publishers publish method and returned by their callback get_output method:
Message |
ROS2 package |
Callback return type |
Publisher converts from |
|---|---|---|---|
std_msgs |
|
|
|
std_msgs |
|
|
|
std_msgs |
|
|
|
std_msgs |
|
|
|
std_msgs |
|
|
|
std_msgs |
|
|
|
geometry_msgs |
|
|
|
geometry_msgs |
|
|
|
geometry_msgs |
|
|
|
geometry_msgs |
|
|
|
geometry_msgs |
|
|
|
sensor_msgs |
|
|
|
sensor_msgs |
|
|
|
sensor_msgs |
|
|
|
nav_msgs |
|
|
|
sensor_msgs |
|
|
|
nav_msgs |
|
|
|
nav_msgs |
|
|
|
nav_msgs |
|
|
|
ros_sugar_interfaces |
|
|