Published Dec 13, 2023
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,
Related content
Software
Software
Read with this
Digital Twin
Digital Twin
Read with this
Setting up pibs software on a Raspberry Pi
Setting up pibs software on a Raspberry Pi
More like this
Development Software Setup
Development Software Setup
Read with this
Motor pinout mapping
Motor pinout mapping
More like this
Setting up pibs software with Docker
Setting up pibs software with Docker
More like this