KumarRobotics / kr_autonomous_flight

KR (KumarRobotics) autonomous flight system for GPS-denied quadrotors
Other
654 stars 110 forks source link

Write mapper as a ROS service #148

Closed XuRobotics closed 1 year ago

XuRobotics commented 2 years ago

Currently, the mapper is a node that keeps publishing global and local maps regardless of whether any node is using them. This results in unnecessary message publication and computation (e.g. local map is published at 10Hz but the local planner only uses it at 2Hz).

The most efficient way is to write mapper as a ROS service. Whenever the planner needs the map, it will have the mapper-client send a request for this service, and obtain the map at that timestamp.