Publish camera/imu/odometry as ROS topics on the Unitree Go1 dogs.
- ssh into one of the jetson nanos
ps aux | grep point
andsudo kill pid
to free video devices- follow these instructions, customize if needed:
mkdir custom_ws
cd custom_ws
mkdir src
cd src
git clone https://github.com/unitreerobotics/unitree_legged_sdk.git
git clone https://github.com/ros-perception/camera_info_manager_py.git
git clone https://github.com/unitreerobotics/UnitreecameraSDK.git
git clone https://github.com/aatb-ch/go1_republisher.git
cd ~/custom_ws
sudo apt install ros-melodic-camera-info-manager
catkin_make
- in
/scripts
dosudo chmod +x mono.py
andsudo chmod +x stereo.py
- source your workspace
To publish mono (left channel):
roslaunch go1_republisher camera_mono.launch
To publish stereo channels (left/right):
roslaunch go1_republisher camera_stereo.launch
To enable image post processing for rectification (dont forget to calibrate your camera and replace yaml calibration data):
roslaunch go1_republisher proc_mono.launch
roslaunch go1_republisher proc_stereo.launch
To publish the imu and odom topics/tf:
roslaunch go1_republisher imu_odom.launch
- better namespacing to launch multiple instances
- rewrite Python camera node as C++, need to figure out why stream open error..
- use image_transport
- broadcast_tf as launch param