Skip to content

Commit 8fb5a6d

Browse files
committed
Documentation.
1 parent 3855ed7 commit 8fb5a6d

File tree

2 files changed

+41
-14
lines changed

2 files changed

+41
-14
lines changed

Diff for: examples/ROS2_Braccio_Driver/README.md

+39-12
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,43 @@
11
:floppydisk: `ROS2_Braccio_Driver`
22
==================================
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)
37

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
1618
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+
```

Diff for: examples/ROS2_Braccio_Driver/ROS2_Braccio_Driver.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ void setup()
7373
&joint_state_publisher,
7474
&node,
7575
ROSIDL_GET_MSG_TYPE_SUPPORT(sensor_msgs, msg, JointState),
76-
"braccio_plusplus_node_joint_state_publisher"));
76+
"/braccio_joint_state_actual"));
7777

7878
/* Initialize JointState message. */
7979
rosidl_runtime_c__String__init (&joint_state_msg.header.frame_id);
80-
rosidl_runtime_c__String__assign(&joint_state_msg.header.frame_id, "/braccio_plusplus_joint_state");
80+
rosidl_runtime_c__String__assign(&joint_state_msg.header.frame_id, "base");
8181

8282
{
8383
static rosidl_runtime_c__String joint_state_msg_name[SmartServoClass::NUM_MOTORS];

0 commit comments

Comments
 (0)