ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
2

Moveit parametically disable one joint

asked 2020-08-08 04:01:35 -0600

xman236 gravatar image

Hi all,

I am currently planning the motion of my robot using <move_group_interface.h>. I am aware that I could deactivate one joint in config files (urdf or srdf). However is there any possibility for instance to exclude the 2. joint for the given motion task. I would like to realize this in a higher level like in the move_group_interface.cpp, because the deactivated joint has to be activated again in different environments.

edit retag flag offensive close merge delete

Comments

1

Can you update if you solved it? I am facing the same issue.

Gates gravatar image Gates  ( 2021-03-16 15:44:10 -0600 )edit

Did the current answer not work for you? It looks correct.

fvd gravatar image fvd  ( 2021-03-17 00:43:50 -0600 )edit

No unfortunately I couldn't make the solution work. Here is my trial after the answer: constrained move code. I check if I could make the constraints work at lines 50-52-61, I couldn't set. Then I tried (abnormally) attach the constraint to the goal_pose yet it didn't work. I don't know how/where to attach the constraints apparently...

Gates gravatar image Gates  ( 2021-03-17 13:14:12 -0600 )edit

Also I tried attaching the constraint to my group (arm_group instead of goal_pose) but I get the same error:

'MoveGroupCommander' object has no attribute 'motion_plan_request'

I tried using arm_group.set_path_constraints(goal_constraint). It sets only path constraints. arm_group.get_path_constraints() returns something but arm_group.get_known_constraints() returns still nothing.

I don't know how to connect the constraints to my motion plan.

Gates gravatar image Gates  ( 2021-03-17 13:20:12 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-08-10 07:21:53 -0600

pcoenen gravatar image

Your goal might be achievable with Trajectory Constraints, especially Joint Constraints which you can set. Get your current joint values and construct the TrajectoryConstraint for your disabled joint to stay fixed to that value.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2020-08-08 04:01:35 -0600

Seen: 541 times

Last updated: Aug 10 '20