-
Notifications
You must be signed in to change notification settings - Fork 87
IMU custom_rpy tag parsing added
#178
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
Changes from 4 commits
ff3df6f
62e990f
b2d4167
99fa6f0
fa3799b
c08f746
7aa93b6
4848461
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -116,6 +116,18 @@ bool ImuSensor::Load(const sdf::Sensor &_sdf) | |
| return false; | ||
| } | ||
|
|
||
| // Set orientation reference frame | ||
| // TODO(adityapande-1995) : Add support for named frames like | ||
| // ENU using ign-gazebo | ||
| if (_sdf.ImuSensor()->Localization() == "CUSTOM") { | ||
| if (_sdf.ImuSensor()->CustomRpyParentFrame() == "") { | ||
| this->SetOrientationReference(ignition::math::Quaterniond( | ||
| _sdf.ImuSensor()->CustomRpy())); | ||
| } | ||
| } else { | ||
| ignerr << "This tag is not yet supported" << std::endl; | ||
|
||
| } | ||
|
|
||
| if (this->Topic().empty()) | ||
| this->SetTopic("/imu"); | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.