How to pause gazebo at the start in foxy?
Im want to start the simulation at pause state with the launch file. some one can help me? tks
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org |
Im want to start the simulation at pause state with the launch file. some one can help me? tks
There is a pause
Launch Argument that you can set to true
(defined here in the source)
Your launch command could look something like this:
import os
from ament_index_python.packages import get_package_share_directory
from launch import LaunchDescription
from launch.actions import IncludeLaunchDescription
from launch.launch_description_sources import PythonLaunchDescriptionSource
def generate_launch_description():
ld = LaunchDescription()
gz_launch_path = os.path.join(get_package_share_directory('gazebo_ros'), 'launch', 'gazebo.launch.py')
ld.add_action(
IncludeLaunchDescription(
PythonLaunchDescriptionSource(gz_launch_path),
launch_arguments={'pause': 'true'}.items()
))
return ld
@shonigmann: could you please not close questions when they have an accepted answer? Askbot displays those mostly as [closed]
, which makes it look like there was no resolution. Accepting an answer already marks the question as answered, without needing to close it.
I'm not familiar with Askbot, but my intent was always to help people coming to ROS Answers to answer questions more readily find questions that haven't yet been resolved. But if its making things less visible, I can certainly save myself that step and avoid closing questions. Thanks for the feedback
Askbot is the software platform behind ROS Answers.
my intent was always to help people coming to ROS Answers to answer questions more readily find questions that haven't yet been resolved
of course. I never doubted that.
But answered questions are already clearly marked as such, while closing them makes the "this is closed" part stand out more. So just accepting the correct answer would be enough.
Check your launch file and set the pause argument to true .
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2023-02-07 13:03:17 -0500
Seen: 52 times
Last updated: Feb 12
Run unit-test with custom interfaces
ROS2 (Foxy): "launch" is not working on windows 10.
ROS2 colcon build nav2_regulated_pure_pursuit_controller error
qt.qpa.plugin: Could not find the Qt platform plugin "windows" in ""
Actions and nested goal states
rclcpp::Rate doesn't use ROS time (use_sim_time)
ROS2 windows installation failure
Using a custom message in C++ (ROS2 foxy)
Probably you should provide with version of Gazebo are you using?