Aliases can be used to shorten the commands used inside of the docker. Here is a list of all existing aliases:
help: List all aliases with short descriptionbuild: Same ascolcon buildbuildall: Build while overriding all modulesgazebo: Start gazebo simulationdriver [default|debug]: Start the main driver. You must also start the controller and image processing nodes.controller [default|debug]: Start remote controller, optionally as debug. Will bedefaultby default. See Start Remote Controller for keybinds.image [default|debug|image|image_debug]: Start image processing. Refer to Start Image Processing for modes. Will bedefaultby default.sensorSteer: Start sensor steer.
xhost + # exposes displays
docker-compose build # build docker
docker-compose up -d # start docker
docker-compose exec ros bash # enter docker terminal
colcon build
source ./install/setup.bashRebuild all applications:
colcon build --allow-overriding car_controller gazebo_simulation image_processing remote_controller sensor_steer
ros2 launch gazebo_simulation car.launch.pyrqtros2 run autonomous_driving <MODE>ros2 run remote_controller <MODE>Modes:
defaultdebug- Debug logging enabled
Debug preview:
----------------------------------------------------
speed: 1.0
steering: 30.0
abortion: False
w: True
a: True
s: False
d: True
q: False
t (shift): False
----------------------------------------------------
Use WASD to steer the Vehicle. Additional Keys:
tfor Turboqto switch between Driving and Remote Controllerfto activate lane switchingrto reset the PIDs
ros2 run image_processing <MODE>Modes:
default- Everything enabled, no debug loggingdebug- Everything enabled, debug loggingimage- Image processing enabled, steering disabled, no debug loggingimage_debug- Same asimagewith debug logging
Debug preview:
----------------------------------------------------
Debug: True, Image Only: False
Cropping
Height: 480, Width: 640
Transformer
Height: 592, Width: 1040
Hough Transformation
Lines: 41
Line Detection
M Values: Left: 0.141000, Right: -0.392000
Offsets: Left: 2.191000, Right: -1.342000
Steer Values: Left: 0.730000, Right: -0.447000
Steering: -1.074000
Steering enabled: True
Time taken: 0.021237
----------------------------------------------------