Robotics StackExchange | Archived questions

Spam from the controller_server/LifecyclePublisher

Hey!

I'm looking at navigation2 to drive around with a differential robot and it works so far quite nice, but the LifecyclePublisher is spamming:

[controllerserver-3] [WARN] [1605637131.711642756] [LifecyclePublisher]: Trying to publish message on the topic '/localcostmap/clearing_endpoints', but the publisher is not activated

I'm using (mainly) the default parameters, so I have no idea where I should look at to fix it. What is this node doing and which parameters are relevant here?

Asked by NEngelhard on 2020-11-17 13:20:24 UTC

Comments

Answers

In ROS2, when a lifecycle node, like the controller_server, creates a publisher, this publisher needs to be activated (in contrast, a publisher doesn't have to be activated if the publisher has been created by a normal rclcpp::Node). A publisher is activated via a simple call to on_activate(). For example,

 some_publisher_->on_activate();

So, if the system is otherwise working and the controller_server lifecycle node has been activated, the message would indicate that the clearing_endpoints publisher hasn't been activated.

Asked by Michael Jeronimo on 2020-12-18 14:18:53 UTC

Comments