open-rmf / fleet_adapter_mir

RMF/RoMi-H fleet adapter for the MiR API
Apache License 2.0
15 stars 15 forks source link

Robot randomly rotates when idle #28

Closed RBinsonB closed 1 year ago

RBinsonB commented 1 year ago

Tell us about your environment

Steps to reproduce issue

Expected behavior

Actual behavior

https://user-images.githubusercontent.com/43391966/235648292-41050108-cf43-4bb7-aaa0-1259d0b317d5.mp4

Are you willing to make a PR? If yes, add the PR link here.

The problem seems to come from these lines: https://github.com/osrf/fleet_adapter_mir/blob/23f96d16eb11fb2fef7cc422a4f9905d3cec4896/fleet_adapter_mir/MiRCommandHandle.py#L412-L432

To transform the robot orientation from RMF to MiR, the transform orientation should be added, not deducted (since it the transform from RMF to MiR already). https://github.com/osrf/fleet_adapter_mir/blob/23f96d16eb11fb2fef7cc422a4f9905d3cec4896/fleet_adapter_mir/MiRCommandHandle.py#L420

I will open a PR with a fix very soon.