-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port PR #153 (add support for onboard orientation estimation) to ROS2 #168
Conversation
Still work in progress. I don't have a MOT109, so I can't test this PR. |
bcf8dc5
to
35c06c5
Compare
I just tested the pr on ros2 humble woth a MOT0109. Thus, this PR can be merged from my side. |
35c06c5
to
4a56420
Compare
Thanks for testing! I've fixed up the code with your suggestion and merged the PR. |
Hi Martin, |
This is required because the function `PhidgetSpatial_setAlgorithmMagnetometerGain` is present in the Phidgets Spatial MOT0109 API (https://www.phidgets.com/?prodid=1204#Tab_API), but was removed in the MOT0110 API (https://www.phidgets.com/?prodid=1205#Tab_API). This caused an exception to be thrown on the MOT0110 (ros-drivers#168 (comment)). This commit allows not setting the parameter on the MOT0110 and onwards, thereby avoiding the function call and the exception.
I've just pushed a PR (#169) that should fix your problem. Please test and report back. |
This is required because the function `PhidgetSpatial_setAlgorithmMagnetometerGain` is present in the Phidgets Spatial MOT0109 API (https://www.phidgets.com/?prodid=1204#Tab_API), but was removed in the MOT0110 API (https://www.phidgets.com/?prodid=1205#Tab_API). This caused an exception to be thrown on the MOT0110 (ros-drivers#168 (comment)). This commit allows not setting the parameter on the MOT0110 and onwards, thereby avoiding the function call and the exception.
Works now. |
This is required because the function `PhidgetSpatial_setAlgorithmMagnetometerGain` is present in the Phidgets Spatial MOT0109 API (https://www.phidgets.com/?prodid=1204#Tab_API), but was removed in the MOT0110 API (https://www.phidgets.com/?prodid=1205#Tab_API). This caused an exception to be thrown on the MOT0110 (#168 (comment)). This commit allows not setting the parameter on the MOT0110 and onwards, thereby avoiding the function call and the exception.
This is required because the function `PhidgetSpatial_setAlgorithmMagnetometerGain` is present in the Phidgets Spatial MOT0109 API (https://www.phidgets.com/?prodid=1204#Tab_API), but was removed in the MOT0110 API (https://www.phidgets.com/?prodid=1205#Tab_API). This caused an exception to be thrown on the MOT0110 (#168 (comment)). This commit allows not setting the parameter on the MOT0110 and onwards, thereby avoiding the function call and the exception.
No description provided.