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

How to set up ready state for Franka?

asked 2018-12-03 09:42:31 -0500

Rachel gravatar image

Hi everyone, I am new to here. I am trying to use Franka panda arm. There was a python file for "move to start" in franka ros(see link text) But I want to make it come true by c++. Do I neet to set up every joint pose? How to set up it?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-12-05 06:00:12 -0500

aPonza gravatar image

updated 2018-12-05 06:11:37 -0500

There are many ways: the one I decided to start with was by using the moveit library and their tutorials. In particular, at first I created a simple node with just a snippet from the whole tutorial code.

You want to move to a joint space configuration (not to a cartesian pose like in the tutorial) so the pose is stored in a vector:

auto panda_home_pose = std::vector<double> {  0.00
                                           , -0.25 * pi
                                           ,  0.00
                                           , -0.75 * pi
                                           ,  0.00
                                           ,  0.50 * pi
                                           ,  0.25 * pi };

and you will want to use setJointValueTarget instead of setPoseTarget like the tutorial does. I recommend also setting very slow velocities and accelerations at first, even more so because of potential reflex errors from the robot due to high jerk and whatnot. For this use setMaxVelocityScalingFactor and setMaxAccelerationScalingFactor. After these you can call plan and execute separately or together as you see fit, but the tutorial seems clear in that regard.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2018-12-03 09:42:31 -0500

Seen: 682 times

Last updated: Dec 05 '18