- Create a colcon workspace
- if you're colcon workspace folder does not exist:
mkdir -p ~/colcon_ws/src
- Make sure the
~/colcon_ws/src
subfolder exists
- if you're colcon workspace folder does not exist:
- Clone this Repo
- Clone this repo into the
~/colcon_ws/src
subfolder
- Clone this repo into the
- Install the required dependencies with rosdep
cd ~/colcon_ws
rosdep install -i --from-path src --rosdistro galactic -y
- Build the desired package
colcon build --packages-select <Package folder name>
- Source the setup script so ros2 can find the packages in this workspace
source ~/colcon_ws/install/setup.bash
ros2 run teleop teleop_node
- Launches the teleop node ONLY
ros2 launch teleop teleop_launch.py
- Launches everything, including joystick nodes and teleop node
- Terminal 1:
ros2 launch basic_sim arena_world.launch.py
- Launches gazebo with the basic arena world(Skid-steer model rover + arena walls + flat ground)
- Terminal 2:
ros2 run teleop_twist_keyboard teleop_twist_keyboard --ros-args --remap /cmd_vel:=/rover/cmd_vel
- Control the rover model with your keyboard
- Start at a low speed to prevent rover from jumping all over the place
- Terminal 3:
rviz2 -d basic_sim/resource/rover_depth_camera_view.rviz
to view rover's depth camera data
~/colcon_ws/
build/
install/
log/
src/
IRIS-2022/
basic_sim/
py_pubsub/
teleop/