svenschneider / youbot-manipulation

38 stars 41 forks source link

Planner is not able to find any solution on the real robot #4

Closed rastaxe closed 9 years ago

rastaxe commented 10 years ago

Hi, I am trying to use your package with a real youbot (Hydro+MoveIt!). I tried to use Commander and rviz to send some goals to the planning, but I always get:

[ INFO] [1409147480.844621192]: Planning request received for MoveGroup action. Forwarding to planning pipeline. [ INFO] [1409147480.845457053]: Starting state is just outside bounds (joint 'arm_joint_1'). Assuming within bounds. [ INFO] [1409147480.845675307]: Starting state is just outside bounds (joint 'arm_joint_2'). Assuming within bounds. [ INFO] [1409147480.845857942]: Starting state is just outside bounds (joint 'arm_joint_3'). Assuming within bounds. [ INFO] [1409147480.917308438]: No planner specified. Using default. [ INFO] [1409147480.918721677]: LBKPIECE1: Attempting to use default projection. [ INFO] [1409147480.948382716]: LBKPIECE1: Starting with 1 states [ INFO] [1409147486.265920437]: LBKPIECE1: Created 80 (42 start + 38 goal) states in 71 cells (42 start (42 on boundary) + 29 goal (29 on boundary)) [ INFO] [1409147486.266674444]: No solution found after 5.346708 seconds [ INFO] [1409147486.269393646]: Unable to solve the planning problem

When I start rviz, at the beginning the arm has an init position (see fig.1) and after loading it is in the correct position (fig.2), but the first position is always displayed, is it ok? Can you help me? Do you know how to solve my problem? Thanks! 1 2

svenschneider commented 10 years ago

Regarding the "two" robots which you see in RViz: One is the representation of the real robot, i.e. it is updated when you move the real robot. The other one is the internal state of MoveIt! Thus, it's fine that two robots are displayed.

For the failing motion planning, I would guess that it is due to the arm of the real robot being within the soft joint limits. You could try to move all joints of the arm a little bit manually (or move the arm to another configuration) and then try again.

rastaxe commented 10 years ago

I tried to move the arm but it does not help. But, why the internal state of MoveIt! is different than the real position of the arm? Should be it the same?

rastaxe commented 10 years ago

Ok, a little update. I used the MoveIt! assistant. If I use the youbot kinematics plugin it does not work. If I use the kdl it works! What did you use?

svenschneider commented 10 years ago

I'm using the analytical inverse kinematics solver from this package. Could you please provide more information? Especially, the commands which you have executed and all output you get on the terminal.

Additionally, can you try if the MoveIt! youBot demo is working for you? To do so, execute the following command (with no other ROS nodes running):

roslaunch youbot_moveit demo.launch

Then try to move around the end-effector with the interactive markers and let me know if it is working.

rastaxe commented 10 years ago

I did some other tests and I undestood that the plan fails when it runs on the youbot computer (maybe some timeout is too short?). By the way: 1) roslaunch youbot_moveit demo.launch works on my computer (I did not tested on the youbot PC since it has no monitor attached) 2) if I run all the programs on the youbot:

3) if I run:

Do you know if it is possible to run everything on the youbot PC? And if it is possible to avoid these warnings?

Thank you so much!

svenschneider commented 10 years ago

The default internal PC of the youBot is indeed very slow, so that this is very likely the problem (as shown by your tests). If you want to use the internal PC, maybe try out different motion planners. They may have better runtime performance, though I cannot really give any hints there.

The I2t and over current issues are due to the joint-level controllers or their configuration. You could try updating the firmware and/or reducing the maximum velocity of the joints. I think, with firmware version 1.4 the issues were solved, while the current firmware version is 2.0. However, for details you should ask KUKA or in the youBot store.

svenschneider commented 9 years ago

Closing as issue seems to be resolved.