Skip to content

Commit

Permalink
Don't read pose_target_frame if differential (#126)
Browse files Browse the repository at this point in the history
If differential is true, the pose_target_frame is not used.
  • Loading branch information
efernandez authored and svwilliams committed Jan 6, 2020
1 parent 556811f commit d058e8f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ struct Odometry2DParams : public ParameterBase
nh.getParam("differential", differential);
nh.getParam("queue_size", queue_size);
getParamRequired(nh, "topic", topic);
getParamRequired(nh, "pose_target_frame", pose_target_frame);
if (!differential)
{
getParamRequired(nh, "pose_target_frame", pose_target_frame);
}
getParamRequired(nh, "twist_target_frame", twist_target_frame);
}

Expand Down

0 comments on commit d058e8f

Please sign in to comment.