-
Notifications
You must be signed in to change notification settings - Fork 68
/
Copy pathmapping_lidar_only.sh
executable file
·35 lines (29 loc) · 1 KB
/
mapping_lidar_only.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
## usally, you can just leave this config file just like this, it will work fine
CONFIG_PATH=./config/lidar_only.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/visual/map_test/20200507124024_1_NoPlace.bag
./build/ros_node/static_mapping_node \
-cfg ${CONFIG_PATH} \
-pc ${POINT_CLOUD_TOPIC} \
-pc_frame_id ${POINT_CLOUD_FRAME_ID} \
-urdf ${URDF_FILE} \
-bag ${BAG_FILE} \
-pubs [map][path][edge]
exit 0