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

whole body control with a TIAGo robot

asked 2022-07-05 07:59:53 -0500

Dear community, I want to use a gamepad to control Tiago robot by PAL robotics. In order to control its arm, I used the moveit commander python interface. The idea was to read the current pose of the end effector, and increment it by a small value like 0.05 (m) based on the axis or the button pressed on the gamepad. Everything is working perfectly, however, I had to wait for the arm commander group to arrive at the desired pose. plan = group.go(wait=True) So the movement of the arm is no longer smooth, and if I change the wait argument to False the arm will start vibrating and not moving anywhere, Any solution please?

edit retag flag offensive close merge delete

Comments

1

If it is vibrating the moveit is continuously planning and giving new goals, I would recommend you to stop planning and doing anything if you are within a certain tolerance and until you receive a new command from the gamepad

saikishor gravatar image saikishor  ( 2022-07-05 08:53:36 -0500 )edit

So, you mean that i can't change the goal in real time, and I have to wait for each goal to be reached ? However, I don't want to wait for it to reach I want to change the goal in real time.

seif_seghiri gravatar image seif_seghiri  ( 2022-07-05 18:50:39 -0500 )edit
1

Then you perhaps should not be using the MoveIt commander, as it's not really meant for this kind of thing.

Perhaps #q261368 can clarify some things (it's a bit of an older Q&A, but parts are still relevant).

For real-time servoing, you might want to look at moveit_servo. It exists for both ROS 1 and ROS 2.

gvdhoorn gravatar image gvdhoorn  ( 2022-07-06 00:50:59 -0500 )edit

Thank you so much.

seif_seghiri gravatar image seif_seghiri  ( 2022-07-07 17:30:32 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-07-06 01:12:17 -0500

I found a trick to that. I used only the plan method provided by the moveit commander to get a plan, and instead of using the go method I published the trajectory to the arm_controller/command topic and that helps a lot.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2022-07-05 07:59:53 -0500

Seen: 85 times

Last updated: Jul 06 '22