8000 GitHub - PlanetaryRobotics/cmu_zoe2: ROS2 codebase for CMU's Zoë2 Rover
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

PlanetaryRobotics/cmu_zoe2

Repository files navigation

CMU's Zoë2 Rover

Requirements

Setup

  1. Install ROS2, ROS2 Control, and Gazebo, following their documentation. See INSTALL.md for more details
  2. If you don't already have one, create a ROS workspace.
  3. Clone this repo into the src/ directory of your ROS workspace.
  4. Run rosdep to install all missing packages.
sudo rosdep init
rosdep update
rosdep install --from-paths src -y --ignore-src
  1. At the root of your workspace, run colcon build.

Launch

Simulation Mode

  1. Open a new terminal and source your package using source install/setup.bash at the root of your workspace. This needs to be done in any new terminal when running the program.
  2. Launch the simulation in an empty world using ros2 launch zoe2_bringup sim.launch.py.
  3. Alternatively, launch the robot in a custom world using ros2 launch zoe2_bringup zoe2.launch.py world:=moon/model.sdf z:=8, or any other world stored in zoe2_bringup/worlds.

Hardware Mode

  1. Open a new terminal and source your package using source install/setup.bash at the root of your workspace. This needs to be done in any new terminal when running the program.
  2. Plug the Kvaser Leaf Light v2 USB into your computer. Run lsusb to see if it is recognized.
  3. In your terminal, run sudo ip link set can0 type can bitrate 1000000 && sudo ip link set up can0 to establish communication
  4. Launch the hardware using ros2 launch zoe2_bringup hw.launch.py.

Operation

  1. Open a new terminal and source install/setup.bash at the root of your workspace.
  2. Launch rqt: rqt and open the Robot Steering plugin (Plugins -> Robot Tools -> Robot Steering)
  3. Set the message topic to /cmd_vel_unstamped
  4. Use the sliders to steer the robot!

Demo

Zoe Rover Demo

Troubleshooting

  • Gazebo is loading, but the window is black
    • There is likely an issue with your graphics driver, so Gazebo might have defaulted to headless mode. Run export LIBGL_ALWAYS_SOFTWARE=1 before launching gazebo to render 3D graphics on CPU
  • I'm getting build errors!
    • Make sure you are on the correct version of Ubuntu, ROS2, and Gazebo. This will not work on previous versions.
    • Make sure you have installed the correct version of ROS2 control (Jazzy branch, not rolling).
    • Make sure you properly sourced your ROS2 installation
0