To run this project, you need to complete the localization first.
Here is a project ROS_NDT_Localizer may help :)
- Ubuntu 18.04
- ROS Melodic
Generate the waypoints according to the position & orientation, and save the records.
- RosBag for offline testing
- input
/ndt_pose (geometry_msgs::PoseStamped) - output
/waypoint_marker (visualization_msgs::Marker) for visualization on RVIZ
waypoints records in .txt format
-
Complete the localization steps, e.g. ROS_NDT_Localizer.
-
Set the configuration in record_waypoints
# line 75 waypoint_recorder(sub="/ndt_pose", file_name='./waypoints.txt', interval=1)
-
Run the waypoint recorder, and the record will stored in the waypoint_files.
python record_waypoints.py
the recorded waypoints are organized as follow:
position.x,position.y,position.z,orientation.x,orientation.y,orientation.z,orientation.w -
Play the rosbag for offline testing
rosbag play offline_testing.bag
Load and publish the waypoints record.
- Waypoints record file (.txt format)
- RosBag for offline testing
- input
waypoints records in .txt format - output
/waypoints (nav_msgs::Path)
- Complete the localization steps, e.g. ROS_NDT_Localizer.
- Set the configuration in load_waypoints
# line 59 waypoints_path = "./waypoints_files/waypoints.txt"
- Run the waypoint loader
python load_waypoints.py