ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

why i can't run my gazebo model in paused mode?

asked 2020-07-22 06:59:23 -0500

samia.choueiri gravatar image

Hello,

i have been trying to open my URDF model in Gazebo and recently i succeeded by changing the directory to the ROS workspace and by using the command below i am able to load my model in Gazebo.

samia@samia:~/catkin_ws/src/base_2links/src/launch$ roslaunch gazebo.launch

but my model appears to be collapsed due to the effect of gravity, so i want to load the simulation in the paused mode but i am facing some problems. I entered the command below in the home directory to launch an empty world and it worked.

samia@samia:~$ roslaunch gazebo_ros empty_world.launch paused:=true use_sim_time:=false gui:=true throttled:=false recording:=false debug:=true verbose:=true gui_required:=true

when i try to run my model i go to the directory of the .launch file and try to run the same command but instead of empty_world.launch i enter gazebo.launch as shown below

samia@samia:~/catkin_ws/src/base_2links/src/launch$ roslaunch gazebo_ros gazebo.launch paused:=true use_sim_time:=false gui:=true throttled:=false recording:=false debug:=true verbose:=true gui_required:=true

and get this error----> [gazebo.launch] is neither a launch file in package [gazebo_ros] nor is [gazebo_ros] a launch file name The traceback for the exception was written to the log file

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-07-22 15:23:27 -0500

kosmastsk gravatar image

updated 2020-07-22 15:23:45 -0500

gazebo_ros_ ROS package does not contain any launcher that is called gazebo.launch. It's default launcher is empty_world.launch. It would be better if you used this launcher as a template, change the necessary arguments and save this as a new launcher (e.g. gazebo.launch) in your base_2links package.

After you complete this and source your workspace, you'll be able to run it with roslaunch base_2links gazebo.launch

edit flag offensive delete link more

Comments

i sourced my workspace and run this command:

roslaunch base_2links  gazebo.launch paused:=true use_sim_time:=false gui:=true throttled:=false recording:=false debug:=true verbose:=true gui_required:=true

i didn't get any error but still even though paused:=true, the simulator wont start in the paused mode.

can you also please let me know how i can use empty_world.launch as a template? what are the arguments that i should change? how to save as a .launch file and where in the base_2links package?

samia.choueiri gravatar image samia.choueiri  ( 2020-07-24 05:53:04 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2020-07-22 06:59:23 -0500

Seen: 3,151 times

Last updated: Jul 22 '20