@@ -17,7 +17,26 @@ Set the robot server in the discovery server variable:
17
17
```
18
18
export ROS_DISCOVERY_SERVER=”;192.168.0.<IP>:11811”
19
19
```
20
- Note, you need to add N number of ` ; ` to set the correct the ID.
20
+
21
+ > [ !NOTE]
22
+ > You need to add N number of ` ; ` to set the correct the ID.
23
+
24
+ Examples:
25
+ ```
26
+ export ROS_DISCOVERY_SERVER="192.168.0.20" # Robot 00
27
+ export ROS_DISCOVERY_SERVER=";192.168.0.21" # Robot 01
28
+ export ROS_DISCOVERY_SERVER=";;192.168.0.22" # Robot 02
29
+ export ROS_DISCOVERY_SERVER=";;;192.168.0.23" # Robot 03
30
+ export ROS_DISCOVERY_SERVER=";;;;192.168.0.24" # Robot 04
31
+ export ROS_DISCOVERY_SERVER=";;;;;192.168.0.25" # Robot 05
32
+ export ROS_DISCOVERY_SERVER=";;;;;;192.168.0.26" # Robot 06
33
+ export ROS_DISCOVERY_SERVER=";;;;;;;192.168.0.27" # Robot 07
34
+ export ROS_DISCOVERY_SERVER=";;;;;;;;192.168.0.28" # Robot 08
35
+ export ROS_DISCOVERY_SERVER=";;;;;;;;;192.168.0.29" # Robot 09
36
+ export ROS_DISCOVERY_SERVER=";;;;;;;;;;192.168.0.30" # Robot 10
37
+ export ROS_DISCOVERY_SERVER=";;;;;;;;;;;192.168.0.31" # Robot 11
38
+ ```
39
+
21
40
22
41
Then, set the terminal as super client:
23
42
```
@@ -39,17 +58,43 @@ ros2 run teleop_twist_keyboard teleop_twist_keyboard --ros-args -r __ns:=/<tb_ns
39
58
</td ></tr >
40
59
</table >
41
60
42
- ## Bandwidth
61
+ ## Bandwidth (Optional)
43
62
<table >
44
63
<tr ><td ><b >Terminal 1: Camera Test</b ></td ></tr >
45
64
<tr ><td >
46
65
66
+ Install the FFMPEG image transport plugin:
67
+ ```
68
+ sudo apt install ros-humble-ffmpeg-image-transport
69
+ ```
70
+
47
71
Try to retrieve the camera topic:
48
72
```
49
73
ros2 topic hz /<tb_ns>/oakd/rgb/preview/image_raw
50
74
```
51
75
52
76
If you're lucky you might get some packets through. It is likely that no data will reach your device.
53
77
78
+ Instead, try the FFMPEG topic which has encoded image data.
79
+ ```
80
+ ros2 topic hz /<tb_ns>/oakd/rgb/preview/image_raw/ffmpeg
81
+ ```
82
+
83
+ You won't be able to view the image data in RViz while it is encoded. Instead, decode it using the republisher node:
84
+ ```
85
+ ros2 run image_transport republish ffmpeg in/ffmpeg:=/<tb_ns>/oakd/rgb/preview/image_raw/ffmpeg raw out:=/<unique_namespace>/oakd/decoded/image
86
+ ```
87
+
88
+ Now, you should be able to get the image data as a standard image topic:
89
+ ```
90
+ ros2 topic hz /<unique_namespace>/oakd/decoded/image
91
+ ros2 topic bw /<unique_namespace>/oakd/decoded/image
92
+ ```
93
+
94
+ Then, open RViz and view the image:
95
+ ```
96
+ rviz2
97
+ ```
98
+
54
99
</td ></tr >
55
100
</table >
0 commit comments