Skip to content

Commit 10996ec

Browse files
committed
Apply formatting
Signed-off-by: Florian Vahl <florian@flova.de>
1 parent 8efd3f5 commit 10996ec

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

src/bitbots_motion/bitbots_dynup/src/dynup_engine.cpp

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ DynupEngine::DynupEngine(rclcpp::Node::SharedPtr node, bitbots_dynup::Params::En
1515

1616
walk_param_executor_ = std::make_shared<rclcpp::executors::SingleThreadedExecutor>();
1717
walking_param_node_ = std::make_shared<rclcpp::Node>(std::string(node->get_name()) + "_walking_param_node");
18-
walking_param_client_ = std::make_shared<rclcpp::SyncParametersClient>(walk_param_executor_, walking_param_node_, "/walking");
18+
walking_param_client_ =
19+
std::make_shared<rclcpp::SyncParametersClient>(walk_param_executor_, walking_param_node_, "/walking");
1920
}
2021

2122
void DynupEngine::init(double arm_offset_y, double arm_offset_z) {
@@ -666,15 +667,12 @@ void DynupEngine::setGoals(const DynupRequest& goals) {
666667
// which is not allowed to be called inside of another callback recusively.
667668
// It should however use a different executor from the beginning,
668669
// but somehow this does not work.
669-
std::vector<rclcpp::Parameter> walking_params = std::async(
670-
std::launch::async, [&]() {
671-
return walking_param_client_->get_parameters({
672-
"engine.trunk_pitch",
673-
"engine.trunk_height",
674-
"engine.foot_distance",
675-
"engine.trunk_x_offset"
676-
}, std::chrono::seconds(15));
677-
}).get();
670+
std::vector<rclcpp::Parameter> walking_params =
671+
std::async(std::launch::async, [&]() {
672+
return walking_param_client_->get_parameters(
673+
{"engine.trunk_pitch", "engine.trunk_height", "engine.foot_distance", "engine.trunk_x_offset"},
674+
std::chrono::seconds(15));
675+
}).get();
678676

679677
// when the walking was killed, service_is_ready is still true but the parameters come back empty
680678
if (walking_params.size() != 4) {

0 commit comments

Comments
 (0)