diff --git a/rmf_building_sim_gz_plugins/src/door.cpp b/rmf_building_sim_gz_plugins/src/door.cpp index 3e83229..1695813 100644 --- a/rmf_building_sim_gz_plugins/src/door.cpp +++ b/rmf_building_sim_gz_plugins/src/door.cpp @@ -96,12 +96,12 @@ class IGNITION_GAZEBO_VISIBLE DoorPlugin { continue; } - const auto *joint_axis = + const auto* joint_axis = ecm.Component(joint_entity); double lower_limit = -1.57; double upper_limit = 0.0; - if(joint_axis != nullptr) + if (joint_axis != nullptr) { lower_limit = joint_axis->Data().Lower(); upper_limit = joint_axis->Data().Upper(); @@ -110,9 +110,11 @@ class IGNITION_GAZEBO_VISIBLE DoorPlugin DoorCommon::DoorElement door_element; if (joint_name == right_door_joint_name) door_element = - DoorCommon::DoorElement{lower_limit, upper_limit, true}; + DoorCommon::DoorElement{lower_limit, upper_limit, true} + ; else if (joint_name == left_door_joint_name) - door_element = DoorCommon::DoorElement{lower_limit, upper_limit}; + door_element = DoorCommon::DoorElement{lower_limit, upper_limit} + ; doors.insert({joint_name, door_element}); } return doors;