Skip to content
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

Update Example 9 to use Gazebo Sim and .xml launch files #486

Conversation

destogl
Copy link
Member

@destogl destogl commented Apr 1, 2024

Used for testing ros-controls/ros2_control#1354.

@christophfroehlich, This should help you with #482—it should replace it if that is OK with you.

@christophfroehlich
Copy link
Contributor

@destogl except for the world file, where is the difference to #482? And why does one need the world file? At least, I updated also the description.

Copy link
Collaborator

@olivier-stasse olivier-stasse left a comment

Choose a reason for hiding this comment

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

Dear @destogl and @christophfroehlich thanks a lot for both contributions. Switching to gz-sim is definitely a plus.

But keeping the examples simple and documented are the main target of the repo I guess.

<arg name="gz_args" value=" -r -v 4 $(var gazebo_world)"/>
</include>

<node pkg="ros_gz_bridge" exec="parameter_bridge" args="
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why not naming the node clock_bridge as in the python equivalent ?

<param name="use_sim_time" value="true" />
</node>

</launch>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Dear @destogl maybe we do not need the equivalent xml file here, as it is not in the other examples.

<plugin
filename="gz-sim-sensors-system"
name="gz::sim::systems::Sensors">
<render_engine>ogre2</render_engine>
Copy link
Collaborator

Choose a reason for hiding this comment

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

It looks like this is the only difference with the default gz-sim empty.world file.

Do we need it here ?

@destogl
Copy link
Member Author

destogl commented Apr 4, 2024

@destogl except for the world file, where is the difference to #482? And why does one need the world file? At least, I updated also the description.

@christophfroehlich you are right, I just tested and we don't need world file. I agree that we can go with #482, only thing I would like to add on top of it is .launch.xml as they are much more simpler.

You can just take .launch.xml from here to #482 and merge it if it works. I am then closing this one!

@destogl destogl closed this Apr 4, 2024
@destogl destogl deleted the update-example_9-to-Gazebo_sim branch April 4, 2024 06:35
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.

None yet

3 participants