Skip to content

Commit

Permalink
uncrustify
Browse files Browse the repository at this point in the history
  • Loading branch information
scpeters committed Jun 2, 2020
1 parent f5640d0 commit 02aa68b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions gazebo_plugins/src/gazebo_ros_imu_sensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,19 @@ void GazeboRosImuSensor::Load(gazebo::sensors::SensorPtr _sensor, sdf::ElementPt

bool initial_orientation_as_reference = false;
if (!_sdf->HasElement("initial_orientation_as_reference")) {
RCLCPP_INFO_STREAM(impl_->ros_node_->get_logger(),
"<initial_orientation_as_reference> is unset, using default value of false "
"to comply with REP 145 (world as orientation reference)");
RCLCPP_INFO_STREAM(
impl_->ros_node_->get_logger(),
"<initial_orientation_as_reference> is unset, using default value of false "
"to comply with REP 145 (world as orientation reference)");
} else {
initial_orientation_as_reference = _sdf->Get<bool>("initial_orientation_as_reference");
}

if (initial_orientation_as_reference) {
RCLCPP_WARN_STREAM(impl_->ros_node_->get_logger(),
"<initial_orientation_as_reference> set to true, this behavior is deprecated "
"as it does not comply with REP 145.");
RCLCPP_WARN_STREAM(
impl_->ros_node_->get_logger(),
"<initial_orientation_as_reference> set to true, this behavior is deprecated "
"as it does not comply with REP 145.");
} else {
// This complies with REP 145
impl_->sensor_->SetWorldToReferenceOrientation(ignition::math::Quaterniond::Identity);
Expand Down

0 comments on commit 02aa68b

Please sign in to comment.