bt-node clang-format
This commit is contained in:
parent
4decc40c88
commit
034e172f62
7 changed files with 253 additions and 266 deletions
|
@ -18,7 +18,8 @@ public:
|
|||
: BtService<PoseEstimationSrv>(name, config) {
|
||||
RCLCPP_INFO_STREAM(_node->get_logger(), "Start node.");
|
||||
|
||||
_set_params_client = std::make_shared<rclcpp::AsyncParametersClient>(_node, "/pose_estimation");
|
||||
_set_params_client = std::make_shared<rclcpp::AsyncParametersClient>(
|
||||
_node, "/pose_estimation");
|
||||
|
||||
while (!_set_params_client->wait_for_service(1s)) {
|
||||
if (!rclcpp::ok()) {
|
||||
|
@ -92,14 +93,15 @@ private:
|
|||
}
|
||||
|
||||
void set_mesh_param() {
|
||||
auto _package_name = ament_index_cpp::get_package_share_directory("rbs_perception");
|
||||
auto _package_name =
|
||||
ament_index_cpp::get_package_share_directory("rbs_perception");
|
||||
_model_path = build_model_path(_model_name, _package_name);
|
||||
RCLCPP_INFO_STREAM(_node->get_logger(), _model_path);
|
||||
|
||||
std::vector<rclcpp::Parameter> _parameters{rclcpp::Parameter("mesh_path", _model_path)};
|
||||
std::vector<rclcpp::Parameter> _parameters{
|
||||
rclcpp::Parameter("mesh_path", _model_path)};
|
||||
_set_params_client->set_parameters(_parameters);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
#include "behaviortree_cpp_v3/bt_factory.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue