6 #include <sensor_msgs/LaserScan.h> 7 #include <nav_msgs/OccupancyGrid.h> 9 #include "../../ros/topic_with_transform.h" 10 #include "../../ros/laser_scan_observer.h" 11 #include "../../ros/init_utils.h" 13 #include "../../ros/launch_properties_provider.h" 19 int main(
int argc,
char** argv) {
27 double ros_map_publishing_rate, ros_tf_buffer_size;
28 int ros_filter_queue, ros_subscr_queue;
30 ros_filter_queue, ros_subscr_queue);
31 auto scan_provider = std::make_unique<TopicWithTransform<ObservT>>(
33 ros_tf_buffer_size, ros_filter_queue, ros_subscr_queue
35 auto occup_grid_pub_pin = create_occupancy_grid_publisher<VinySlamMap>(
36 slam.get(), nh, ros_map_publishing_rate);
38 auto pose_pub_pin = create_pose_correction_tf_publisher<ObservT, VinySlamMap>(
39 slam.get(), scan_provider.get(), props);
40 auto rp_pub_pin = create_robot_pose_tf_publisher<VinySlamMap>(slam.get());
42 auto scan_obs = std::make_shared<LaserScanObserver>(
45 scan_provider->subscribe(scan_obs);
int main(int argc, char **argv)
VinySlam::MapType VinySlamMap
std::string laser_scan_2D_ros_topic_name(const PropertiesProvider &props)
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
bool get_use_trig_cache(const PropertiesProvider &props)
sensor_msgs::LaserScan ObservT
typename LaserScanGridWorld< MapT >::MapType MapType
ROSCPP_DECL void spin(Spinner &spinner)
std::string tf_odom_frame_id(const PropertiesProvider &props)
auto init_viny_slam(const PropertiesProvider &props)
void init_constants_for_ros(double &ros_tf_buffer_size, double &ros_map_rate, int &ros_filter_queue, int &ros_subscr_queue)
bool get_skip_exceeding_lsr(const PropertiesProvider &props)