Skip to content

Commit dd32b1a

Browse files
authored
Fix heading check in compute_change_in_rotation for slotcar (#162)
Signed-off-by: kjchee <keai_jiang_chee@cgh.com.sg>
1 parent 9c9462a commit dd32b1a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rmf_robot_sim_common/src/slotcar_common.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ double SlotcarCommon::compute_change_in_rotation(
876876
const Eigen::Vector3d* requested_heading,
877877
double* const dir) const
878878
{
879-
if (dpos.norm() < 1e-3)
879+
if (dpos.norm() < 1e-3 && !requested_heading)
880880
{
881881
// We're right next to the waypoint, so we don't really need any heading
882882
// to reach it.

0 commit comments

Comments
 (0)