- Install 64-bit version of Raspberry Pi OS
- Clone repo on RPi
cd rttf-car-ros2/cardrivers
./00_build.sh
./01_run.sh
ordocker start rttf-cardrivers-ros2
(depending if it already exists)./02_attach.sh
./rebuild_ros.sh
(just to be sure, should done automatically)- (optional)
ros2 run wheels_driver wheels_driver
or in the/home/scripts
execute./wheels_driver.sh
(listens for commands and executes commands on car) - (optional)
ros2 run camera_driver camera_driver
or in the/home/scripts
execute./camera_driver.sh
(starts publishing camera images) - (optional)
ros2 run dummy_driver reckless_driver
or in the/home/scripts
execute./dummy_driver.sh
(accelerates for 5 seconds & quits)
There's a start for a 'launch all script'
ros2 launch car_drivers all_drivers.launch.py
Should work now, since camera driver was fixed. Not tested yet.
colcon build
produces error related to the custom WheelCmd msg.
- Solution:
rm -rf build/ install/ log/
+colcon build
- Should not happen anymore, above folders are no longer included in repo and must be built the first time
- Run scripts 00, 01 and 02 to build, run and attach to the container.
- Launch the rosbridge node
ros2 launch rosbridge_server rosbridge_websocket_launch.xml
- Launch the Node.js app that serves the dashboard (very basic so far)
cd /home/app
andnpm start
- Visit
localhost:3000
and watch it connect (console messages for now). Replacelocalhost
with the proper IP address when connecting from other device in the same network.
The script on the website subscribes to the image topic of the car. (/camera_node/image/compressed
) This was tested with the camera publishing from the cardrivers
container.
Probably
Starts up everything at once.