Skip to content

Commit

Permalink
Set rotation value of cartesian MaxEEFStep by default (moveit#2614)
Browse files Browse the repository at this point in the history
Backport for melodic-devel.
  • Loading branch information
v4hn authored and tylerjw committed Apr 29, 2021
1 parent 6246ab6 commit 9ae7fd5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions moveit_core/robot_state/include/moveit/robot_state/robot_state.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,16 @@ struct JumpThreshold

/** \brief Struct for containing max_step for computeCartesianPath
Setting translation to zero will disable checking for translations and the same goes for rotation */
Setting translation to zero will disable checking for translations. The same goes for rotation.
Initializing with only one value (translation) sets the rotation such that
1 cm of allowed translation = 2 degrees of allowed rotation. */
struct MaxEEFStep
{
MaxEEFStep(double translation = 0.0, double rotation = 0.0) : translation(translation), rotation(rotation)
MaxEEFStep(double translation, double rotation) : translation(translation), rotation(rotation)
{
}

MaxEEFStep(double step_size) : translation(step_size), rotation(3.5 * step_size) // 0.035 rad = 2 deg
{
}

Expand Down

0 comments on commit 9ae7fd5

Please sign in to comment.