Link: SteveMacenski/slam_toolbox#468
-
Create a catkin workspace:
mkdir -p demo_ws/src cd demo_ws
-
Import source repositories:
vcs import src < demo.repos
-
Install all source packages' dependencies:
rosdep install -i -y --rosdistro=noetic --from-path src \ --skip-keys 'moose_gazebo warthog_gazebo ridgeback_gazebo dingo_gazebo heron_gazebo uuv_gazebo_worlds'
-
Build catkin workspace:
catkin_make
-
Launch CPR's Jackal robot simulation in an office environment:
roslaunch cpr_office_gazebo office_world.launch platform:=jackal config:=front_laser
To use a joystick to teleop the robot, export
${JACKAL_JOY_DEVICE}
envvar with your input device path before launching Gazebo. -
Launch lifelong SLAM for CPR's Jackal robot:
roslaunch jackal_navigation lifelong_slam_demo.launch
-
Start
rviz
to visualize robot, map, and pose graph:rviz -d demo.rviz
To visualize pose graph edges in
rviz
, merge SteveMacenski/slam_toolbox#467 into your localslam_toolbox
branch.