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

mbf_costmap_nav publisher and subscriber of footprint topic at the same time

asked 2022-07-07 22:42:54 -0500

Dadi gravatar image

updated 2022-07-08 19:53:05 -0500

Mike Scheutzow gravatar image

by having a look on topics i found out that mbf_costmap_nav is publisher and subscriber at the same time of the local and global costmap/footprint topic:

rostopic info /mbf_costmap_nav/global_costmap/footprint
Type: geometry_msgs/PolygonStamped

Publishers: 
 * /mbf_costmap_nav (http://127.0.0.1:35613/)

Subscribers: 
 * /mbf_costmap_nav (http://127.0.0.1:35613/)

--------------
rostopic info /mbf_costmap_nav/local_costmap/footprint
Type: geometry_msgs/PolygonStamped

Publishers: 
 * /mbf_costmap_nav (http://127.0.0.1:35613/)

Subscribers: 
 * /rviz (http://127.0.0.1:42127/)
 * /mbf_costmap_nav (http://127.0.0.1:35613/)

Is it intended to be so or how can i avoid this?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2022-07-09 11:45:09 -0500

Dadi gravatar image

It belongs to the ROS navigation stack of the move base flex and the 2 topics are the local and global costamp plugins.

Maybe you are right, but the roswtf tool reported me an error on that and I would just like understand why or how something happens and why it could be necessary.

edit flag offensive delete link more
0

answered 2022-07-08 19:59:33 -0500

Mike Scheutzow gravatar image

It's unclear what you think the problem is. In some cases it may be inefficient, but it's not wrong for a node to be both a publisher and a subscriber. Since you didn't give us any idea what mbf_costmap_nav is, it's difficult to say much else about it.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2022-07-07 22:39:26 -0500

Seen: 59 times

Last updated: Jul 09 '22