|
1 | 1 | :floppydisk: `ROS2_Braccio_Driver`
|
2 | 2 | ==================================
|
| 3 | +#### How-to-install |
| 4 | +* Install [ROS2 Galactic](https://docs.ros.org/en/galactic/Installation/Ubuntu-Install-Debians.html) |
| 5 | +* Install [colcon](https://colcon.readthedocs.io/en/released/user/installation.html) |
| 6 | +* Install/Setup [Micro-ROS](https://micro.ros.org/docs/tutorials/core/teensy_with_arduino) |
3 | 7 |
|
4 |
| - |
5 |
| -### Install |
6 |
| -#### ROS2 Galactic |
7 |
| -https://docs.ros.org/en/galactic/Installation/Ubuntu-Install-Debians.html |
8 |
| -#### Install colcon |
9 |
| -https://colcon.readthedocs.io/en/released/user/installation.html |
10 |
| -#### Micro-ROS Tooling |
11 |
| -https://micro.ros.org/docs/tutorials/core/teensy_with_arduino/ |
12 |
| - |
13 |
| - |
14 |
| -the final command to start the partner tool |
15 |
| - |
| 8 | +#### Compile and Upload |
| 9 | +```bash |
| 10 | +arduino-cli compile -b arduino:mbed_nano:nanorp2040connect -v examples/ROS2_Braccio_Driver |
| 11 | +arduino-cli upload -b arduino:mbed_nano:nanorp2040connect -v examples/ROS2_Braccio_Driver -p /dev/ttyACM0 |
| 12 | +``` |
| 13 | +#### Run Micro-ROS Agent |
| 14 | +```bash |
| 15 | +cd microros_ws |
| 16 | +source /opt/ros/galactic/setup.bash |
| 17 | +source install/local_setup.bash |
16 | 18 | ros2 run micro_ros_agent micro_ros_agent serial --dev /dev/ttyACM0
|
| 19 | +``` |
| 20 | +#### View available ROS topics |
| 21 | +```bash |
| 22 | +source /opt/ros/galactic/setup.bash |
| 23 | +ros2 topic list |
| 24 | + /braccio_joint_state_actual |
| 25 | + /parameter_events |
| 26 | + /rosout |
| 27 | +``` |
| 28 | +#### View published JointStates |
| 29 | +```bash |
| 30 | +source /opt/ros/galactic/setup.bash |
| 31 | +ros2 topic echo /braccio_joint_state_actual |
| 32 | +... |
| 33 | + header: |
| 34 | + stamp: |
| 35 | + sec: 44 |
| 36 | + nanosec: 1567475040 |
| 37 | + frame_id: base |
| 38 | + name: [base, shoulder, elbow, wrist_roll, wrist_pitch, pinch] |
| 39 | + position: [90.32624816894531, 156.71249389648438, 156.3975067138672, 157.34249877929688, 24.885000228881836, 153.7987518310547] |
| 40 | + velocity: [] |
| 41 | + effort: [] |
| 42 | +... |
| 43 | +``` |
0 commit comments