rosRoboCar: Calibration and Setup
Roadmap
- Installation
- Calibration and Setup
- How it works
Camera calibration
-
Print a checkboard.
-
Make 10-15 camera images in different angles, distance from camera and position in the image.
-
Run a simple code.
-
Camera matrix, projection matrix and distortion coefficients should be printed in terminal.
-
Now the image can be undistorted.
All data should be added to
robocar_ws/src/donkeycar/config/camera_info.yaml
Steering a throttle calibration
Follow instructions.
All channels and PWM values should be added to
robocar_ws/src/donkey_actuator/config/servos.yaml
Add teleoperation
Keyboard control
Just install ros-noetic-teleop-twist-keyboard
Joystick control
-
Connect your joystick to a car.
-
test your joystick with original
donkey
software-
run
donkey createjs
command in~/mycar
directory -
map buttons with actions
-
modify
myconfig.py
to setCONTROLLER_TYPE="custom"
to use yourmy_joystick.py
controller -
run your car with
python3 manage.py drive --js
command
-
Record bag files
- Launch donkeycar on the car
- On PC go to the folder
robocar_ws/src/path_from_image/bagfiles/
and record messages
- If bag file has several topics , but you need only one, just filter rosbag with
- to extract image files from bag a create launch file with
- to decompress images also run in terminal