- Ubuntu 18.04
- ROS – Melodic
- The simulation environment is not guaranteed to work with any other ROS or Ubuntu environment.
- C++11 compiler which is basically gcc/g++.
- Gazebo-ROS packages, which should come with a Desktop-full installation of ROS Melodic.
-
Install dependencies:
sudo apt install ros-melodic-navigation
-
Suppose you have made a catkin workspace named
catkin_ws
. -
Once you are finished with all the dependencies, you can git clone this package from github into your ROS workspace and
catkin_make
it.cd ~/catkin_ws/src git clone --recurse-submodules https://github.com/ral-stevens/CPE631Final.git cd ~/catkin_ws catkin_make
-
If you installed all dependencies correctly, you shouldn’t get any errors.
-
You can run the environment by executing
roslaunch pedsim_simulator Altorfer_f1.launch rviz:=true teleop:=true
and then you should be able to see something as follows.
-
Once you successfully run the node, you will see topic related to laser range finder, Kinect camera and controlling the velocity of the robot. You can subscribe to and publish on these topics in your own controller to get the sensor information and publish the desired velocities to move the robot.
- Linear and angular velocity topic:
/Pioneer3AT/cmd_vel
- Laser Range finder topic:
/laser/scan
- Pose of each model in the world:
/gazebo/model_states
- Kinect topics (There are several topics, you can choose the ones you need):
/camera/*
If something is not working or you have any questions, please report it with a GitHub Issue.
Muhammad Fahad made this simulation based on pedsim_ros.
rosrun map_server map_saver --occ 90 --free 10 -f mymap map:=/move_base/global_costmap/costmap