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

Joint states tutorial #156

Merged
merged 5 commits into from
Jun 10, 2021

Conversation

vatanaksoytezer
Copy link
Contributor

Adds an rrbot model to demos and shows the usage of joint_states plugin.

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.

You are adding here the URDF and the SDF and using it both in the launch file. I don't like this approach because if you modify one you must need to modify the other one. You should use only the URDF, with xacro (which is imported but not used) you can convert the URDF and uing it to spawn the model. In this file you can find how to do it.

Another question that I open here it's that the rrbot.urdf should live only in one repository we should not copy this file in every repo that make use of it.

ros_ign_gazebo_demos/launch/joint_states.launch.py Outdated Show resolved Hide resolved
ros_ign_gazebo_demos/launch/joint_states.launch.py Outdated Show resolved Hide resolved
ros_ign_gazebo_demos/launch/joint_states.launch.py Outdated Show resolved Hide resolved
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.

You should also sign the PR

@ahcorde
Copy link
Collaborator

ahcorde commented May 27, 2021

@vatanaksoytezer, I have seen in your profile that you are working for Picknik maybe we can speed up this other PR ros-simulation/gazebo_ros_demos#41 where I think the rrobot description should live.

@vatanaksoytezer
Copy link
Contributor Author

vatanaksoytezer commented May 27, 2021

@vatanaksoytezer, I have seen in your profile that you are working for Picknik maybe we can speed up this other PR ros-simulation/gazebo_ros_demos#41 where I think the rrobot description should live.

Sure I will ping Dave internally.

@vatanaksoytezer
Copy link
Contributor Author

Another question that I open here it's that the rrbot.urdf should live only in one repository we should not copy this file in every repo that make use of it.

I would agree that but I really wouldn't want to make ign_gazebo_demos depend to gazebo_ros_demos for rrbot only. Maybe you guys can consider opening up a rrbot description and depend on that?

@vatanaksoytezer
Copy link
Contributor Author

You are adding here the URDF and the SDF and using it both in the launch file. I don't like this approach because if you modify one you must need to modify the other one. You should use only the URDF, with xacro (which is imported but not used) you can convert the URDF and uing it to spawn the model. In this file you can find how to do it.

@ahcorde Follow up question on this one. Since this is to demonstrate the usage of joint_states plugin in ignition, where should I put the plugin if I don't have the sdf file? I was mostly looking up for @chapulina 's dolly package where she also defines the robot from an sdf file.

@vatanaksoytezer
Copy link
Contributor Author

vatanaksoytezer commented May 27, 2021

Another problem that I just realised is if rrbot_description live somewhere else and contains gazebo and ros2_control stuff that is not compatible with ignition (yet), wouldn't it be problematic?

Vatan Aksoy Tezer added 3 commits May 27, 2021 17:27
Signed-off-by: Vatan Aksoy Tezer <[email protected]>
Signed-off-by: Vatan Aksoy Tezer <[email protected]>
@vatanaksoytezer vatanaksoytezer force-pushed the pr/joint_states_tutorial branch from 9e79287 to 1458db3 Compare May 27, 2021 17:28
@vatanaksoytezer
Copy link
Contributor Author

@ahcorde update:

  • Pinged Dave on gazebo PR.
  • Signed off the commits and cleaned up stuff, except for the sdf (see my comments above)

@vatanaksoytezer
Copy link
Contributor Author

Ignore the comments above on sdf, just figured that out. I'll fix in and send updates soon

Signed-off-by: Vatan Aksoy Tezer <[email protected]>
@vatanaksoytezer vatanaksoytezer force-pushed the pr/joint_states_tutorial branch from 6f1ab21 to c3ce98d Compare May 28, 2021 19:02
@vatanaksoytezer
Copy link
Contributor Author

This should work, but the colors (and I think frictions) are not parsed correctly to ign. If you point me a way I can fix it right away

@ahcorde
Copy link
Collaborator

ahcorde commented Jun 10, 2021

@vatanaksoytezer, I can see the color in ignition

Selección_104

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.

LGTM

@mjcarroll mjcarroll merged commit 1fc0847 into gazebosim:ros2 Jun 10, 2021
chapulina pushed a commit that referenced this pull request Jul 20, 2021
Adds an rrbot model to demos and shows the usage of joint_states plugin.

Signed-off-by: Vatan Aksoy Tezer <[email protected]>
chapulina pushed a commit that referenced this pull request Jul 20, 2021
Adds an rrbot model to demos and shows the usage of joint_states plugin.

Signed-off-by: Vatan Aksoy Tezer <[email protected]>
ahcorde pushed a commit that referenced this pull request Jul 20, 2021
Adds an rrbot model to demos and shows the usage of joint_states plugin.

Signed-off-by: Vatan Aksoy Tezer <[email protected]>
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