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

Added ros_ign_gazebo for ros2 #80

Merged
merged 15 commits into from
Jun 15, 2020
Merged

Conversation

ahcorde
Copy link
Collaborator

@ahcorde ahcorde commented Jun 8, 2020

This package contains things that make it convenient to integrate ROS with Ignition, such as:

  • Launch files
  • ROS-enabled executables

Run ignition Gazebo

ros2 launch ros_ign_gazebo ign_gazebo.launch.py ignition_args:="shapes.sdf"

# or

ros2 launch ros_ign_gazebo ign_gazebo_gui.launch.py 
ros2 launch ros_ign_gazebo ign_gazebo_server.launch.py ignition_args:="shapes.sdf"
ros2 run ros_ign_gazebo ign_gazebo shapes.sdf

Spawn entities

ros2 run ros_ign_gazebo create -world default -file 'https://fuel.ignitionrobotics.org/1.0/openrobotics/models/Gazebo'

By the way this command is adding the entity to ignition gazebo, but the mesh doesn't appear.


Note: I created the branch ros2 to keep it as the devel branch.

Signed-off-by: ahcorde ahcorde@gmail.com

Signed-off-by: ahcorde <ahcorde@gmail.com>
@ahcorde ahcorde added the enhancement New feature or request label Jun 8, 2020
@ahcorde ahcorde requested a review from chapulina June 8, 2020 08:52
@ahcorde ahcorde self-assigned this Jun 8, 2020
@osrf-triage osrf-triage added this to Inbox in Core development Jun 8, 2020
@ahcorde ahcorde mentioned this pull request Jun 8, 2020
2 tasks
@chapulina chapulina moved this from Inbox to In review in Core development Jun 8, 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 tackling this so quickly, @ahcorde ! I tried it with Eloquent and it worked for me. It would be nice to document the supported versions on the README. Also, I'm not sure why Travis wasn't triggered 🧐 I see that it's supposed to install dashing.

I created the branch ros2 to keep it as the devel branch.

Would that be for eloquent and foxy?. Could we target this PR at dashing? Usually on Ignition we target PRs at the lowest compatible version and merge changes forward (as opposed to how on ROS commits are cherry-picked backwards).


Some other requests that could come in follow-up PRs:

  • Could you add the package to ros_ign/package.xml?
  • Can we use the new launch file on ros_ign_gazebo_demos? We should still leave the existing one there for a while in case someone is using it, but we shouldn't encourage its use anymore.

ros_ign_gazebo/launch/ign_gazebo_gui.launch.py Outdated Show resolved Hide resolved
ros_ign_gazebo/scripts/ign_gazebo Outdated Show resolved Hide resolved
ros_ign_gazebo/scripts/ign_gazebo Outdated Show resolved Hide resolved
ros_ign_gazebo/launch/ign_gazebo.launch.py Outdated Show resolved Hide resolved
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
@ahcorde ahcorde changed the base branch from ros2 to dashing June 9, 2020 12:00
Signed-off-by: ahcorde <ahcorde@gmail.com>
@ahcorde ahcorde requested a review from chapulina June 10, 2020 07:49
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.

Everything is working for me, I'd just like to hear your thoughts about:

  • not splitting gui / server launch files
  • not using a bash script

ros_ign_gazebo/launch/ign_gazebo.launch.py Outdated Show resolved Hide resolved
ros_ign_gazebo/package.xml Outdated Show resolved Hide resolved
ros_ign_gazebo/package.xml Outdated Show resolved Hide resolved
Signed-off-by: Louise Poubel <louise@openrobotics.org>
Signed-off-by: Louise Poubel <louise@openrobotics.org>
Signed-off-by: Louise Poubel <louise@openrobotics.org>
Signed-off-by: Louise Poubel <louise@openrobotics.org>
@ahcorde
Copy link
Collaborator Author

ahcorde commented Jun 15, 2020

not splitting gui / server launch files

I don't have a strong opinion here. I created two launch files just to keep the same idea that we have in Gazebo and provide a launch file to run ign-gazebo headless mode (without reviewing/knowing the arguments).

But Gazebo is a different case where we have two executables in Ignition we only have one. The idea of duplicate the arguments sounds weird and it's going to create issues in the user side.

I think is a good idea to handle everything in the same launch file.

not using a bash script

the bash script is not adding any value I can remove it

Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
@chapulina
Copy link
Contributor

I'm not sure why Travis wasn't triggered

This org hadn't granted permissions. There's a build running now: https://travis-ci.org/github/ignitionrobotics/ros_ign/builds/698585638

Signed-off-by: Louise Poubel <louise@openrobotics.org>
Signed-off-by: Louise Poubel <louise@openrobotics.org>
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.

I skipped one more key on CI in 9d8ab84 and fixed some linters on 26025a3. I think this is good to merge if Travis comes back green.

Signed-off-by: Louise Poubel <louise@openrobotics.org>
Signed-off-by: Louise Poubel <louise@openrobotics.org>
@chapulina chapulina merged commit fb432bd into dashing Jun 15, 2020
Core development automation moved this from In review to Done Jun 15, 2020
@chapulina chapulina deleted the ahcorde/add/ros_ign_gazebo branch June 15, 2020 21:53
@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
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants