30 ROS_ERROR(
"No ground point sub topic set.");
36 ROS_ERROR(
"No nonground points sub topic set.");
53 if (!_nh.
getParam(
"map_len", mapLen))
69 ROS_ERROR(
"No obstacle filter ns specified.");
75 ROS_ERROR(
"No map operations filter ns specified.");
80 _nh.
param<std::string>(
"map_name", _mapConfig.
mapName,
"Map");
107 int main(
int argc,
char **argv)
115 ROS_ERROR(
"Configuration error. Unable to get required parameters.");
128 if (sensorMap.
init() < 0)
130 ROS_ERROR(
"Unable to initialize map. Exiting...");
138 if(sensorMap.
once() != 0)
#define ROS_WARN_THROTTLE(rate,...)
std::string obstacleFilterNs
Filter chain for filtering sensor data into obstacles.
int getParameters(ros::NodeHandle _nh, mitre_fast_layered_map::MapConfiguration &_mapConfig)
std::string staticMapSubTopic
Sub topic for static maps that should be integrated with our dynamic map.
double permanentFilterProb
Probability required to declare a cell as a permanent obstacle.
std::string nonGroundPointSubTopic
Ros topic with nonground (obstacle) points.
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
bool enablePermanentObstacles
Whether to try and save permanent obstacles.
std::string mapFrameId
TF frame that the map should use.
std::string gridmapOutputTopic
Topic to output the full grid map on.
grid_map::Length len
Size of the map, assumed to be square.
int main(int argc, char **argv)
bool enablePointHeightFilter
Whether to filter points by height.
std::string odomSubTopic
Ros topic holding odometry information.
double footPrintLen
Length of robot.
double resolution
Cell size of map.
bool param(const std::string ¶m_name, T ¶m_val, const T &default_val) const
std::string occupancyOutputTopic
Topic the occupancy map should be output on.
bool enableBoundingBoxFilter
Whether to filter lidar points if they are inside the hitbox of the vehicle.
std::string historyLayerPrefix
Prefix to use for history layers.
double footPrintWidth
Width of robot.
int numHistoryLayers
Number of layers to hold for history.
double maxPointHeight
If height filter is enabled, filter points more than this height above vehicle.
bool getParam(const std::string &key, std::string &s) const
std::string vehicleFrameId
Frame id of the robot.
std::string groundPointSubTopic
Ros topic with ground points.
std::string mapOperationsFilterNs
Filter chain for map operations after obstacles have been determined.
ROSCPP_DECL void spinOnce()
std::string markerSubTopic
Ros topic to recieve obstacles from other sources.
std::string mapName
Name that will refer to this instance of map.