Skip to content

Commit

Permalink
Update lifecycle on_activate calls
Browse files Browse the repository at this point in the history
Signed-off-by: Alberto Tudela <[email protected]>
  • Loading branch information
ajtudela committed Sep 25, 2024
1 parent e657ee8 commit c13c8c7
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/laser_segmentation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,13 @@ CallbackReturn LaserSegmentation::on_activate(const rclcpp_lifecycle::State & st
{
LifecycleNode::on_activate(state);
RCLCPP_INFO(this->get_logger(), "Activating the node...");

segment_pub_->on_activate();
segment_viz_points_pub_->on_activate();
return CallbackReturn::SUCCESS;
}

CallbackReturn LaserSegmentation::on_deactivate(const rclcpp_lifecycle::State & state)
{
LifecycleNode::on_deactivate(state);
RCLCPP_INFO(this->get_logger(), "Deactivating the node...");

segment_pub_->on_deactivate();
segment_viz_points_pub_->on_deactivate();
return CallbackReturn::SUCCESS;
}

Expand Down

0 comments on commit c13c8c7

Please sign in to comment.