-
Notifications
You must be signed in to change notification settings - Fork 69
/
mapping_lidar_imu_gps.sh
executable file
·38 lines (33 loc) · 1.12 KB
/
mapping_lidar_imu_gps.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
## usally, you can just leave this config file just like this, it will work fine
CONFIG_PATH=./config/lidar_imu_gps_default.xml
URDF_FILE=./urdf/test2.urdf
## the follow 2 items must be set!!!
## the topic name of your pointcloud msg (ros)
POINT_CLOUD_TOPIC=velodyne_points
## the frame id of your pointcloud msg (ros)
POINT_CLOUD_FRAME_ID=frame_velodyne_points
## the following items are optional
## if you do not have an imu or gps or odom
## just remove the line started with
## imu: -imu -imu_frame_id
## odom: -odom -odom_frame_id
## gps: -gps -gps_frame_id
## and If you got one of these topics
## you MUST provide the tf connection between the one to pointcloud frame
IMU_TOPIC=imu/raw_data
IMU_FRAME_ID=imu_link
GPS_TOPIC=navsatfix
GPS_FRAME_ID=gps
BAG_FILE=/mnt/Data/juxin_fisheye_0228/proj-29.bag
./build/ros_node/static_mapping_node \
-cfg ${CONFIG_PATH} \
-pc ${POINT_CLOUD_TOPIC} \
-pc_frame_id ${POINT_CLOUD_FRAME_ID} \
-imu ${IMU_TOPIC} \
-imu_frame_id ${IMU_FRAME_ID} \
-urdf ${URDF_FILE} \
-gps ${GPS_TOPIC} \
-gps_frame_id ${GPS_FRAME_ID} \
-bag ${BAG_FILE} \
-pubs [map][path][edge][submap]
exit 0