Skip to content

Commit 2252886

Browse files
Lu, Bethany(Data61, Pullenvale)Lu, Bethany(Data61, Pullenvale)
authored andcommitted
Fixed code format
1 parent f959d08 commit 2252886

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

src/walk_controller.cpp

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -251,19 +251,19 @@ void WalkController::generateLimits(StepCycle step,
251251
if (max_linear_speed_ptr)
252252
{
253253
max_linear_speed_ptr->clear();
254-
};
254+
}
255255
if (max_linear_acceleration_ptr)
256256
{
257257
max_linear_acceleration_ptr->clear();
258-
};
258+
}
259259
if (max_angular_speed_ptr)
260260
{
261261
max_angular_speed_ptr->clear();
262-
};
262+
}
263263
if (max_angular_acceleration_ptr)
264264
{
265265
max_angular_acceleration_ptr->clear();
266-
};
266+
}
267267

268268
// Set step offset and check if leg starts in swing period (i.e. forced to stance for the 1st step cycle)
269269
// If so find this max 'stance extension' period which is used in acceleration calculations
@@ -794,7 +794,13 @@ Pose WalkController::calculateOdometry(const double &time_period)
794794
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
795795

796796
LegStepper::LegStepper(std::shared_ptr<WalkController> walker, std::shared_ptr<Leg> leg, const Pose &identity_tip_pose)
797-
: walker_(walker), leg_(leg), identity_tip_pose_(identity_tip_pose), default_tip_pose_(identity_tip_pose), current_tip_pose_(default_tip_pose_), origin_tip_pose_(current_tip_pose_), target_tip_pose_(default_tip_pose_)
797+
: walker_(walker)
798+
, leg_(leg)
799+
, identity_tip_pose_(identity_tip_pose)
800+
, default_tip_pose_(identity_tip_pose)
801+
, current_tip_pose_(default_tip_pose_)
802+
, origin_tip_pose_(current_tip_pose_)
803+
, target_tip_pose_(default_tip_pose_)
798804
{
799805
walk_plane_ = Eigen::Vector3d::Zero();
800806
walk_plane_normal_ = Eigen::Vector3d::UnitZ();
@@ -816,7 +822,13 @@ LegStepper::LegStepper(std::shared_ptr<WalkController> walker, std::shared_ptr<L
816822
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
817823

818824
LegStepper::LegStepper(std::shared_ptr<LegStepper> leg_stepper)
819-
: walker_(leg_stepper->walker_), leg_(leg_stepper->leg_), identity_tip_pose_(leg_stepper->identity_tip_pose_), default_tip_pose_(leg_stepper->default_tip_pose_), current_tip_pose_(leg_stepper->current_tip_pose_), origin_tip_pose_(leg_stepper->origin_tip_pose_), target_tip_pose_(leg_stepper->target_tip_pose_)
825+
: walker_(leg_stepper->walker_),
826+
leg_(leg_stepper->leg_)
827+
, identity_tip_pose_(leg_stepper->identity_tip_pose_)
828+
, default_tip_pose_(leg_stepper->default_tip_pose_)
829+
, current_tip_pose_(leg_stepper->current_tip_pose_)
830+
, origin_tip_pose_(leg_stepper->origin_tip_pose_)
831+
, target_tip_pose_(leg_stepper->target_tip_pose_)
820832
{
821833
walk_plane_ = leg_stepper->walk_plane_;
822834
walk_plane_normal_ = leg_stepper->walk_plane_normal_;

0 commit comments

Comments
 (0)