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

Add topic flag to create robot #128

Merged
merged 12 commits into from
Dec 22, 2020
Merged

Add topic flag to create robot #128

merged 12 commits into from
Dec 22, 2020

Conversation

ValerioMagnago
Copy link
Contributor

Fixes #127

Proposed Changes

  • add new --topic parameter that enables to specify the name of the topic where to read the robot description
  • add a demo launch file that loads the robot description on the \robot_description topic by leveraging the robot_state_publisher and then use the newly defined flag to spawn the model in gazebo and additionally the launch starts rviz2 loading the robot description
  • check rclcpp::ok() while server time to download resources. In case of failure the program will return -1

@chapulina chapulina added this to Inbox in Core development via automation Dec 10, 2020
@chapulina chapulina added the ROS 2 ROS 2 label Dec 10, 2020
@chapulina chapulina moved this from Inbox to In review in Core development Dec 10, 2020
Copy link
Contributor

@chapulina chapulina 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 the PR, it works for me. I just have some minor comments below.

CC @clalancette in case you want to take a look too.

AndrejOrsula and others added 12 commits December 10, 2020 23:55
Signed-off-by: Andrej Orsula <orsula.andrej@gmail.com>
Signed-off-by: Valerio Magnago <valerio.magnago@hotmail.it>
Signed-off-by: Valerio Magnago <valerio.magnago@hotmail.it>
now the program should terminate with error when sending termination
signal to the node while waiting ignition gazebo server to download the
resource

Signed-off-by: Valerio Magnago <valerio.magnago@hotmail.it>
Now it is possible to run ros_ign_gazebo create specifying a topic as
source of the robot description

Signed-off-by: Valerio Magnago <valerio.magnago@hotmail.it>
Add a launch file starting a ignition gazebo world and spawn a sphere in it.
Additionally a rviz2 interface is loaded to show that also Rviz can load
the robot description

Signed-off-by: Valerio Magnago <valerio.magnago@hotmail.it>
Signed-off-by: Valerio Magnago <valerio.magnago@hotmail.it>
Signed-off-by: Valerio Magnago <valerio.magnago@hotmail.it>
The newly created demo introduce a dependency on the robot_state_publisher package

Signed-off-by: Valerio Magnago <valerio.magnago@hotmail.it>
Now the loaded urdf is no more logged to the console

Signed-off-by: Valerio Magnago <valerio.magnago@hotmail.it>
Add a base world with light and ground plane as base environment for the demo

Co-authored-by: Louise Poubel <louise@openrobotics.org>
Signed-off-by: Valerio Magnago <valerio.magnago@hotmail.it>
Co-authored-by: Louise Poubel <louise@openrobotics.org>
Signed-off-by: Valerio Magnago <valerio.magnago@hotmail.it>
Add short docs of the demo on the README file and remove unuseful
element from rviz configs.

Signed-off-by: Valerio Magnago <valerio.magnago@hotmail.it>
Core development automation moved this from In review to Done Dec 13, 2020
Core development automation moved this from Done to Inbox Dec 13, 2020
@chapulina chapulina moved this from Inbox to In review in Core development Dec 14, 2020
@ValerioMagnago
Copy link
Contributor Author

@chapulina is there anything else that I can do here to help?

Copy link
Contributor

@chapulina chapulina 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 the new feature and the demo, works great for me 👍

@chapulina chapulina merged commit c059286 into gazebosim:ros2 Dec 22, 2020
Core development automation moved this from In review to Done Dec 22, 2020
@chapulina chapulina mentioned this pull request Aug 18, 2021
@j-rivero j-rivero removed this from Done in Core development May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ROS 2 ROS 2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants