Ask Your Question
0

questions on descarte planning, meaning of orient_increment

asked 2017-07-05 22:54:35 -0600

thompson104 gravatar image

Hey all,

I wonder what is the meaning of orient_increment in AxialSymmetricPt? On its class reference, it shows

> orient_increment  (in radians, discretization of space [-Pi, Pi])

But what does discretization mean here? My understanding is that it discretize [-Pi,Pi], like [-pi, -pi+0.01,-pi+0.02,....,pi-0.01,pi]. Is this right?

I was following the descarte tutorial, it used this helper function

descartes_core::TrajectoryPtPtr makeTolerancedCartesianPoint(const Eigen::Affine3d& pose)
{
    using namespace descartes_core;
    using namespace descartes_trajectory;
  return TrajectoryPtPtr( new AxialSymmetricPt(pose, // Nominal pose
                                               M_PI/2.0, // Search discretization
                                               AxialSymmetricPt::Z_AXIS) ); // Free axis
}

I wonder what does the M_PI/2 means.

Any help would be deeply appreciated.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-07-06 09:11:15 -0600

BrettHemes gravatar image

You are correct in your thinking. In the cited example the discretization is specified as increments of pi/2 (90 degrees). M_PI is a constant for pi from the math library math.h

edit flag offensive delete link more

Comments

Thank you for your reply. I'm kind of curious why is pi/2 is enough? Does pi/2 apply to the joints?

thompson104 gravatar imagethompson104 ( 2017-07-06 11:13:00 -0600 )edit

Pi/2 is arbitrary in this case and in my experience not enough. This is the discretization about the specified free axis in terms of tool/frame poses (i.e., Cartesian and not joint angles). Ultimately it is a trade-off between search resolution and planning time.

BrettHemes gravatar imageBrettHemes ( 2017-07-06 11:37:12 -0600 )edit

I usually start with pi/16 and adjust from there but it will be application dependant in the end

BrettHemes gravatar imageBrettHemes ( 2017-07-06 11:38:15 -0600 )edit

Thank you. I'm going to try it with different values to see what's the difference. Thank you for your reply.

Also, I wonder if you know some moveit examples with good documents available?

thompson104 gravatar imagethompson104 ( 2017-07-06 11:56:27 -0600 )edit

For just moveit there are good ones on their wiki here. For Descartes, there is less. You can start here

BrettHemes gravatar imageBrettHemes ( 2017-07-06 15:47:47 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2017-07-05 22:54:35 -0600

Seen: 46 times

Last updated: Jul 06 '17