Skip to content

Commit

Permalink
Style
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Della Vedova <luca@openrobotics.org>
  • Loading branch information
luca-della-vedova committed Aug 26, 2022
1 parent 4c658dd commit 54bf131
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions rmf_building_sim_gz_plugins/src/door.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,12 @@ class IGNITION_GAZEBO_VISIBLE DoorPlugin
{
continue;
}
const auto *joint_axis =
const auto* joint_axis =
ecm.Component<components::JointAxis>(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();
Expand All @@ -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;
Expand Down

0 comments on commit 54bf131

Please sign in to comment.