ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

Spam from the controller_server/LifecyclePublisher

asked 2020-11-17 12:20:24 -0500

NEngelhard gravatar image

updated 2020-11-17 12:20:38 -0500

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:

[controller_server-3] [WARN] [1605637131.711642756] [LifecyclePublisher]: Trying to publish message on the topic '/local_costmap/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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-12-18 13:18:53 -0500

Michael Jeronimo gravatar image

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.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-11-17 12:20:24 -0500

Seen: 740 times

Last updated: Nov 17 '20