ROS2
ROS2 is the middleware/robotic-framework to control pib. This page describes the pip-specific decisions and configurations.
ROS2 nodes and topics
Here we describe the nodes and topics. This section is the result of https://pib-rocks.atlassian.net/browse/PR-27 and
https://pib-rocks.atlassian.net/browse/PR-94
Cerebra:
Cerebra uses a single topic to communicate with the Rosbridge server:
/motor_settings
The message type of this topic is 'std_msgs/String'
.
An example of a complete /motor_settings message:
{
data:
'[{"motor":"thumb_left_opposition"},
{"value":-475},
{"turnedOn": true},
{"pule_widths_min":""},
{"pule_widths_max":""},
{"rotation_range_min":""},
{"rotation_range_max":""},
{"velocity":""},
{"acceleration":""},
{"deceleration":""},
{"period":""}
]'
}
In the feld “motor“ is the identifier of a single motor and the “value“ feld contains the actual value of a single slider. The other parameters are needed when a user changed some settings of a motor in the settings dialog.
, multiple selections available,