Skip to content

Commit b7999f2

Browse files
committed
Description for Webots serial communication to ZumoComSystem updated.
1 parent 46f5385 commit b7999f2

4 files changed

+6
-11
lines changed

README.md

+6-11
Original file line numberDiff line numberDiff line change
@@ -123,21 +123,16 @@ Example for **LineFollowerSim** application:
123123
2. Now the keyboard keys a, b and c can be used to control the robot according to the implemented application logic.
124124

125125
## Communicate with the DroidControlShip
126-
For the communication with the DroidControlShip a socket server needs to be enabled, which is disabled by default.
126+
The communication with the DroidControlShip goes via a Webots serial connection, which is disabled by default.
127127

128-
Use the -s flag to enable it with default port 65432. Note, this will disable the standard logging, because the serial communication will automatically be routed over the socket. The SerialMuxProt protocol is used to exchange data in both directions.
128+
Use the -c flag to enable it with default channels (see _webots_robot_serial_rx_channel_ and _webots_robot_serial_tx_channel_ in [platformio.ini](./platformio.ini)). Note, this will disable the standard logging, because the serial communication uses the SerialMuxProt procotol for data interchange.
129129
```bash
130-
$ program.exe -s
130+
$ program.exe -c
131131
```
132132

133-
The port can be changed via command line parameters, please use -? to get more details.
134-
```bash
135-
$ program.exe -?
136-
```
137-
138-
For simplicity a Platformio project task was added, which start the socket server as well.
133+
For simplicity a Platformio project task was added, which enables the Webots serial connection as well.
139134

140-
![Example](./doc/images/pio_webots_launcher_socket.jpg)
135+
![Example](./doc/images/pio_webots_launcher_zumo_com_system.jpg)
141136

142137
# The target
143138

@@ -159,7 +154,7 @@ Example for the **LineFollowerTarget** application:
159154
| Calib | Application used for motor speed calibration. | Yes | No | ./webots/worlds/LargeTrack.wbt ./webots/worlds/LineFollowerTrack.wbt |
160155
| ConvoyLeader | A line follower, providing information to the [DroidControlShip](https://github.com/BlueAndi/DroidControlShip) in a convoy leader role. | No | Yes | ./webots/worlds/GridWithMarkers.wbt ./webots/worlds/HeadingCalculation.wbt |
161156
| LineFollower | Just a line follower, using a PID controller. | Yes | No | ./webots/worlds/ETrack.wbt ./webots/worlds/LargeTrack.wbt ./webots/worlds/LineFollowerTrack.wbt |
162-
| RemoteControl | The robot is remote controlled by e.g. the [DroidControlShip](https://github.com/BlueAndi/DroidControlShip) in a convoy follower role. | No | Yes | Any |
157+
| RemoteControl | The robot is remote controlled by e.g. the [DroidControlShip](https://github.com/BlueAndi/DroidControlShip) in a convoy follower role. | No | Yes | ./webots/world/zumo_with_com_system/* |
163158
| SensorFusion | The robot provides odometry and inertial data to the [DroidControlShip](https://github.com/BlueAndi/DroidControlShip), which calculates the sensor fusion based location information. | No | Yes | ./webots/worlds/SensorFustion.wbt |
164159
| Test | Only for testing purposes on native environment. | Yes | No | N/A |
165160

doc/images/pio_webots_launcher.jpg

9.7 KB
Loading
-39.6 KB
Binary file not shown.
Loading

0 commit comments

Comments
 (0)