Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 1.44 KB

README.md

File metadata and controls

49 lines (37 loc) · 1.44 KB

go1_republisher

Publish camera/imu/odometry as ROS topics on the Unitree Go1 dogs.

  • ssh into one of the jetson nanos
  • ps aux | grep point and sudo 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 do sudo chmod +x mono.py and sudo chmod +x stereo.py
  • source your workspace

To use:

Mono & Stereo camera publishing

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

Imu and Odometry

To publish the imu and odom topics/tf:

  • roslaunch go1_republisher imu_odom.launch

TODO

  • 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