A simple GNSS positioning and display demo
-[ROS]
-rviz_satellite:copy to the catkin_ws,and catkin_make -DCATKIN_WITHELIST_PACKAGES="rviz_satellite"
Use the following commands to download and compile the package.
cd ~/catkin_ws/src
git clone https://github.com/chengwei0427/simple_gnss_localizer.git
cd ..
catkin_make -DCATKIN_WITHELIST_PACKAGES="gnss_localizer"
adjust the topic
change the topic /fix
to your gnss topic,or use remap
check the NavSatFix
status in GNSSCallback
after run your bag(contain gps topic), you could get first gnss:30.20230164,120.26021482,14.14500000
,change the the param ori_lat,ori_lon,ori_alt
inrun.launch
and ref_point=[30.20230164,120.26021482,14.14500000]
in scripts/path_client_copy.py
reopen the run.launch
and replay your bag.
Run the launch file:
roslaunch gnss_localizer run.launch
Play existing bag files:
rosbag play your-bag.bag --clock
The gnss_localizer is implemented based on Autoware-AI; Thanks rviz_satellite and Autoware-AI;