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

move_group capability for publishing planning scene frames to the tf system #1761

Merged
merged 13 commits into from Nov 27, 2019

Conversation

JonasTietz
Copy link
Contributor

Description

This PR points to issue #1735 . I have implemented a move_group capability, which publishes frames of planning scene objects to the tf system.

@welcome
Copy link

welcome bot commented Nov 21, 2019

Thanks for helping in improving MoveIt and open source robotics!

Copy link
Contributor

@rhaschke rhaschke left a comment

Choose a reason for hiding this comment

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

Thanks. Looks like a great contribution if ready.
Some remarks:

  • Please update the license / disclaimer text.
  • Can you please replace tf1 with tf2?


for (auto obj = world->begin(); obj != world->end(); ++obj)
{
tf::poseEigenToTF(obj->second->shape_poses_[0], transform);
Copy link
Contributor

Choose a reason for hiding this comment

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

It's a pity that all transforms are published w.r.t. planning_frame only. I guess the original information is lost.
What about sub frames?

Copy link
Contributor

Choose a reason for hiding this comment

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

Also, what about CollisionObjects that are attached to the robot? I don't see them published in this file and I don't believe the robot state publishes them either.

Seconding the question about subframes, and agree that parent link information would be interesting. Nothing we can do about it for now I suppose.

Copy link
Contributor

Choose a reason for hiding this comment

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

Attached objects are not yet addressed, are they?

Copy link
Contributor

Choose a reason for hiding this comment

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

Not that I can see

@v4hn
Copy link
Contributor

v4hn commented Nov 21, 2019

i guess this is still work-in-progress, although it's not marked as such.
thanks for the review, I did not actually look at it before.

@felixvd
Copy link
Contributor

felixvd commented Nov 22, 2019

Thanks for tackling this!

@v4hn
Copy link
Contributor

v4hn commented Nov 25, 2019 via email

@JonasTietz
Copy link
Contributor Author

I could definitly do that. But I think renaming the other capabilities should go in another PR.
I did not ask you to rename the other capabilities. I asked you to remove the prefix from the C++ class.

Ahh. Ok I misunderstood that.

Copy link
Contributor

@rhaschke rhaschke left a comment

Choose a reason for hiding this comment

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

This is still using tf1, while we switched (with rather large effort) to tf2 a while ago. Please change.

Copy link
Contributor

@rhaschke rhaschke left a comment

Choose a reason for hiding this comment

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

Thanks a lot for iterating on this. We are getting close 😄
One minor point: Please re-add ros::ok(): If ROS dies for any reason, the thread needs to be finished as well.

@v4hn
Copy link
Contributor

v4hn commented Nov 26, 2019 via email

Copy link
Contributor

@rhaschke rhaschke left a comment

Choose a reason for hiding this comment

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

I don't mind.

@v4hn v4hn force-pushed the move-group-tf-publisher-capability branch from d5166be to 053c90f Compare November 26, 2019 16:28
@v4hn v4hn merged commit e16436c into moveit:master Nov 27, 2019
@welcome
Copy link

welcome bot commented Nov 27, 2019

Congrats on getting your first MoveIt pull request merged and improving open source robotics!

@v4hn
Copy link
Contributor

v4hn commented Nov 27, 2019

Congrats @JonasTietz and thank you for this nice contribution!

@v4hn
Copy link
Contributor

v4hn commented Nov 27, 2019 via email

@felixvd
Copy link
Contributor

felixvd commented Nov 27, 2019

Please also add subframes while you're at it. They are part of the CollisionObject.

@rhaschke
Copy link
Contributor

subframes are already published for CollisionObjects, but I think attached collision objects also have subframes.

@JonasTietz
Copy link
Contributor Author

@JonasTietz Could you have a look at attached objects in a follow-up request? :) Attached objects are stored in the RobotState of the PlanningScene and can be accessed via RobotState::getAttachedBodies.

I will take a look at it. :)

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

4 participants