24 ROS_ERROR(
"No static map sub topic set.");
29 _nh.
param<std::string>(
"map_name", _mapConfig.
mapName,
"Static Map");
39 int main(
int argc,
char **argv)
47 ROS_ERROR(
"Configuration error. Unable to get required parameters.");
53 if (staticMap.
init() < 0)
55 ROS_ERROR(
"Unable to initialize map. Exiting...");
63 if(staticMap.
once() != 0)
#define ROS_WARN_THROTTLE(rate,...)
std::string mapName
Name identification for the map.
std::string gridMapLayer
Layer to retrieve permanent obstacles from.
std::string gridMapSubTopic
in the grid map will be added to the static map instance.
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
std::string staticMapSubTopic
Static map from map server to use as starting configuration.
bool param(const std::string ¶m_name, T ¶m_val, const T &default_val) const
std::string markerSubTopic
Topic users can post marker messages to to add obstacles.
std::string occupancyOutputTopic
Topic for occupancy grid.
Mapping solution for largely static obstacles. Despite the name, it can be modified, but all modifications are considered permanent unless explicitly removed. Not for use as a rapidly changing dynamic map. See the SensorMap for that capability.
bool getParam(const std::string &key, std::string &s) const
int main(int argc, char **argv)
ROSCPP_DECL void spinOnce()
std::string gridmapOutputTopic
Topic for grid map msgs output.
int getParameters(ros::NodeHandle _nh, mitre_fast_layered_map::StaticMapConfiguration &_mapConfig)