Skip to content

Commit

Permalink
Uncrustify
Browse files Browse the repository at this point in the history
  • Loading branch information
Juancams committed Nov 30, 2023
1 parent 509f2d4 commit 1161b3b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class InstrumentationLifecycleNode : public rclcpp_lifecycle::LifecycleNode
private:
typename rclcpp::Subscription<TopicT>::SharedPtr sub_;
typename rclcpp_lifecycle::LifecyclePublisher<TopicT>::SharedPtr pub_;

void handleCreatePublisherRequest(
const std::shared_ptr<rmw_request_id_t> request_header,
const std::shared_ptr<coresense_instrumentation_interfaces::srv::CreatePublisher::Request> request,
Expand All @@ -62,11 +62,14 @@ class InstrumentationLifecycleNode : public rclcpp_lifecycle::LifecycleNode
const std::shared_ptr<rmw_request_id_t> request_header,
const std::shared_ptr<coresense_instrumentation_interfaces::srv::DeletePublisher::Request> request,
const std::shared_ptr<coresense_instrumentation_interfaces::srv::DeletePublisher::Response> response);

rclcpp::Service<coresense_instrumentation_interfaces::srv::CreatePublisher>::SharedPtr create_publisher_service_;
rclcpp::Service<coresense_instrumentation_interfaces::srv::DeletePublisher>::SharedPtr delete_publisher_service_;

std::unordered_map<std::string, typename rclcpp_lifecycle::LifecyclePublisher<TopicT>::SharedPtr> publishers_;
rclcpp::Service<coresense_instrumentation_interfaces::srv::CreatePublisher>::SharedPtr
create_publisher_service_;
rclcpp::Service<coresense_instrumentation_interfaces::srv::DeletePublisher>::SharedPtr
delete_publisher_service_;

std::unordered_map<std::string,
typename rclcpp_lifecycle::LifecyclePublisher<TopicT>::SharedPtr> publishers_;

std::string topic_;
std::string topic_type_;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,15 @@ InstrumentationLifecycleNode<TopicT>::on_configure(const rclcpp_lifecycle::State

pub_ = this->create_publisher<TopicT>("/coresense" + topic_, 10);

create_publisher_service_ = this->create_service<coresense_instrumentation_interfaces::srv::CreatePublisher>(
create_publisher_service_ =
this->create_service<coresense_instrumentation_interfaces::srv::CreatePublisher>(
"/coresense" + topic_ + "/create_publisher",
std::bind(
&InstrumentationLifecycleNode<TopicT>::handleCreatePublisherRequest, this,
std::placeholders::_1, std::placeholders::_2, std::placeholders::_3));

delete_publisher_service_ = this->create_service<coresense_instrumentation_interfaces::srv::DeletePublisher>(
delete_publisher_service_ =
this->create_service<coresense_instrumentation_interfaces::srv::DeletePublisher>(
"/coresense" + topic_ + "/delete_publisher",
std::bind(
&InstrumentationLifecycleNode<TopicT>::handleDeletePublisherRequest, this,
Expand Down

0 comments on commit 1161b3b

Please sign in to comment.