Skip to content

Instantly share code, notes, and snippets.

@Po-Jen
Last active August 29, 2015 14:24
Show Gist options
  • Save Po-Jen/104348485ae224ff4f72 to your computer and use it in GitHub Desktop.
Save Po-Jen/104348485ae224ff4f72 to your computer and use it in GitHub Desktop.
rplidar_ros fix
Modify the original code:
scan_msg.angle_min = M_PI - angle_min;
scan_msg.angle_max = M_PI - angle_max;
to:
scan_msg.angle_min = -1*(M_PI - angle_min);
scan_msg.angle_max = M_PI - angle_min;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment