Skip to content

Add custom launch file and timing issues info to Docs #549

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: rolling
Choose a base branch
from

Conversation

zacharyyamaoka
Copy link

@zacharyyamaoka zacharyyamaoka commented Apr 13, 2025

Add some new notes to docs, that I wish were there when I first read them!

Related to: #533

@zacharyyamaoka
Copy link
Author

btw sorry I think I should have made another branch...

zacharyyamaoka and others added 2 commits April 15, 2025 16:06
switch single ticks to double ticks

Co-authored-by: Alejandro Hernández Cordero <[email protected]>
@zacharyyamaoka
Copy link
Author

Ok, made thoose formating changes now!

Copy link
Collaborator

@ahcorde ahcorde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@christophfroehlich christophfroehlich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your effort, see my comments in the code

Comment on lines +408 to +410
To get started with your own launch file using `gz_ros2_control`, refer to the example launch files in the repository:

`Example launch files <https://github.com/ros-controls/gz_ros2_control/tree/rolling/gz_ros2_control_demos/launch>`_
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
To get started with your own launch file using `gz_ros2_control`, refer to the example launch files in the repository:
`Example launch files <https://github.com/ros-controls/gz_ros2_control/tree/rolling/gz_ros2_control_demos/launch>`_
To get started with your own launch file using `gz_ros2_control`, refer to the `example launch files <https://github.com/ros-controls/gz_ros2_control/tree/rolling/gz_ros2_control_demos/launch>`__ in the repository.

.. code-block:: python

gz_sim = IncludeLaunchDescription(
PythonLaunchDescriptionSource(gz_sim_launch),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will need something like

Suggested change
PythonLaunchDescriptionSource(gz_sim_launch),
PythonLaunchDescriptionSource(
[PathJoinSubstitution([FindPackageShare('ros_gz_sim'),
'launch',
'gz_sim.launch.py'])]),

Explanation of flags:

- ``-r``: Starts the simulator immediately.
- ``-v4``: Sets the logging verbosity to level 4.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would not advertise -v4, because the console log is spammed from gazebo and no one is looking at important warnings/errors of this plugin.

- ``-r``: Starts the simulator immediately.
- ``-v4``: Sets the logging verbosity to level 4.

2. **Launching the ros_gz_bridge and publishing the `/clock` topic**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
2. **Launching the ros_gz_bridge and publishing the `/clock` topic**
2. **Launching the ros_gz_bridge and publishing the ``/clock`` topic**

Timing Issues
-------------

By default, the ``controller_manager`` launched by ``gz_ros2_control`` has ``use_sim_time=true``. If for any reason this is set to ``false``, it will fall back to the system clock.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when should this happen? This is hardcoded from the plugin?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants