ROS1 repository in the https://github.com/Pet-Series Git-Organizations.
Containing a Pet-Nk.IV ROS1-package / data for Gazebo & RViz
The following repositoris need to spawn the rebot and run missions scripts.
- https://github.com/Pet-Series/Pet-Mk-IV.git
- https://github.com/Pet-Series/pet_mk_iv_simulation.git
<-This repository
- https://github.com/Pet-Series/pet_docker/tree/README.md-stuff/pet-mk-iv-simulation
<-All above in a Docker🐳Image
ROS package neccesary to be able to run robot simulation of Pet-Mk.IV, using Gazebo.
This package is only necessary if you are going to launch your robot into a simulated world. If you only will run the physical robot - Then you do not need this package. |
Set up for simuation in Gazebo
- PC with Ubuntu 20.04
- ROS1 melodic
- Install repo:
~$ mkdir -p ros_ws/src ~$ cd ros_ws/src ~/ros_ws/src$ git clone https://github.com/Pet-Series/Pet-Mk-IV.git ~/ros_ws/src$ git clone https://github.com/Pet-Series/pet_mk_iv_simulation.git ~/ros_ws/src$
~/ros_ws/src$ cd .. ~/ros_ws$
Note: 'catkin_make' - Alternative instead of 'catkin build'~$ cd ros_ws ~/ros_ws$ catkin_make (vs. $ catkin build ??) ~/ros_ws$
Note: 'catkin build' - A more flexible way of buildning ROS1/Noetic packages
- Start Gazebo
- Spawn the world(play yard)
- Start a new terminal window
~$ cd ros_ws ~/ros_ws$ source devel/setup.bash ~/ros_ws$ roslaunch pet_mk_iv_simulation pet_play_yard-01.launch
Example Gazebo world #1
- Start Gazebo
- Spawn the world(play yard)
- Start a new terminal window
~$ cd ros_ws ~/ros_ws$ source devel/setup.bash ~/ros_ws$ roslaunch pet_mk_iv_simulation pet_play_yard-02.launch
Example Gazebo world #2
- Start Gazebo
- Spawn the world(play yard)
- Start a new terminal window
~$ cd ros_ws ~/ros_ws$ source devel/setup.bash ~/ros_ws$ roslaunch pet_mk_iv_simulation pet_play_yard-03.launch
Example Gazebo world #3
Manual step by step
- Gazebo alredy started
<- See any step above
The world(play yard) already spawned<- See any step above
- Spawn the the robot
<- From a new terminal window
- Run a simple test mission
<- From a new terminal window
Avoid wall/obsticle - Stap when passing a line
-
Start a new terminal window
~$ cd ros_ws ~/ros_ws$ source devel/setup.bash ~/ros_ws$ roslaunch pet_mk_iv_simulation spawn_pet_mk_iv.launch
x
x -
Start a new terminal window
~$ cd ros_ws ~/ros_ws$ source devel/setup.bash ~/ros_ws$ rosrun pet_mk_iv_mission_control testrun_01_avoid-wall-line-stop.py
All steps at once (All steps in one .launch file)
- Start Gazebo
- Spawn the world(play yard)
- Spawn the the robot
- Launch a simple test mission
Avoid wall/obsticle - Stap when passing a line
Start a new terminal window
~$ cd ros_ws ~/ros_ws$ source devel/setup.bash ~/ros_ws$ roslaunch pet_mk_iv_simulation testrun_01_avoid-wall-line-stop.launch
Example: spawn, launch and run in one step
Note: To start the simulation in Gazebo -> Press [Play] in Gazebo
Vizualize in real time all robot sensor data...
- When the robot is running in Gazebo
- Launch RViz
- Start a new terminal window
~$ cd ros_ws ~/ros_ws$ source devel/setup.bash ~/ros_ws$ roslaunch pet_mk_iv_description rviz.launch
Example: Pet-Mk.IV realtime vizualization with RViz
- TF tree
- All sensors
- Camera
Vizualize relevant nodes and topics
- When the robot is running in Gazebo
- Launch rqt_graph
- Start a new terminal window
~$ cd ros_ws ~/ros_ws$ source devel/setup.bash ~/ros_ws$ rqt_graph
Example: Pet-Mk.IV realtime vizualization with RViz
- TF tree
- All sensors
- Camera
- "SeniorKullken" stefan.kull@gmail.com
- "Kullken" karl.viktor.kull@gmail.com