-
Notifications
You must be signed in to change notification settings - Fork 68
/
mapping.sh
executable file
·40 lines (34 loc) · 1.13 KB
/
mapping.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
38
39
## usally, you can just leave this config file just like this, it will work fine
CONFIG_PATH=./config/static_mapping_default.xml
URDF_FILE=./urdf/test.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=velodyne
## 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
ODOM_TOPIC=/navsat/odom
ODOM_FRAME_ID=novatel_odom
GPS_TOPIC=/navsat/fix
GPS_FRAME_ID=novatel_imu
./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} \
# -odom ${ODOM_TOPIC} \
# -odom_frame_id ${ODOM_FRAME_ID} \
# -gps ${GPS_TOPIC} \
# -gps_frame_id ${GPS_FRAME_ID} \
exit 0