MoveIt2 Servo around offset frame [closed]

asked 2022-01-27 04:52:50 -0500

anonymous user

Anonymous

updated 2022-01-27 04:53:21 -0500

Hello everyone,

I am trying to get my robot (UR10e) to servo with respect to an offset frame. I defined an attached collision object with a subframe, and I would like to get a rotating motion around the z-axis of this particular frame, like so:

auto msg = std::make_unique<geometry_msgs::msg::TwistStamped>();
msg->header.stamp = servo_node->now();
msg->header.frame_id = "object/tip"; // Rotate around the tip of the object
msg->twist.angular.z = 0.5;
twist_pub->publish(std::move(msg));

However, this does not work, there is no movement and I get:

[component_container-5] [ERROR] [1643279679.818895514] [moveit_robot_model.robot_model]: Link 'object/tip' not found in model 'ur'

I know for sure the object and subframe exist. I found in the MoveIt2 Servo tutorial that "TwistStamped: can provide an arbitrary frame_id in the header that the twist will be applied to". Did I then interpret this wrongly? I got this idea from this question, but for example here, getFrameTransform() is suggested if you want to do such thing. I am confused about how to proceed and what the best way of doing this would be. Any hints/explanation/ideas is more than welcome. Thanks!

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2022-02-18 15:31:07.706342

Comments

1

Hi @sabine. Your question is very clear, unfortunately I can't help. But you may have better response in the moveitforum: https://discord.com/invite/RrySut8

If you find the answer please share so future users benefit as well. Thank you.

osilva gravatar image osilva  ( 2022-01-28 07:15:07 -0500 )edit

Thank you, I posted it there, so hopefully anyone knows!

anonymous userAnonymous ( 2022-01-28 08:33:00 -0500 )edit