I am trying to run the Interactive GPS Waypoint Follower.
I have launch these instruction:
TERMINAL 1:
ros2 launch nav2_gps_waypoint_follower_demo gps_waypoint_follower.launch.py use_rviz:=False
TERMINAL 2:
ros2 launch nav2_gps_waypoint_follower_demo mapviz.launch.py
TERMINAL 3:
ros2 run nav2_gps_waypoint_follower_demo interactive_waypoint_follower
When I run interactive_waypoint_follower node and click on mapviz to send waypoint I get fle ollowing output from its terminal(TERMINAL 3):
ros2 run nav2_gps_waypoint_follower_demo interactive_waypoint_follower
[INFO] [1701172139.520198172] [basic_navigator]: robot_localization/get_state service not available, waiting...
[INFO] [1701172140.522618706] [basic_navigator]: robot_localization/get_state service not available, waiting...
[INFO] [1701172141.524480719] [basic_navigator]: robot_localization/get_state service not available, waiting...
[INFO] [1701172142.526854488] [basic_navigator]: robot_localization/get_state service not available, waiting...
[INFO] [1701172143.529257288] [basic_navigator]: robot_localization/get_state service not available, waiting...
[INFO] [1701172144.531678462] [basic_navigator]: robot_localization/get_state service not available, waiting...
[INFO] [1701172145.533696952] [basic_navigator]: robot_localization/get_state service not available, waiting...
[INFO] [1701172146.535800306] [basic_navigator]: robot_localization/get_state service not available, waiting...
And this from nav2_gps_waypoint_follower_demo mapviz terminal(TERMINAL 2):
[mapviz-1] [WARN] [1701172112.460493075] [swri_transform_util::Transformer]: Wgs84Transformer not initialized
[mapviz-1] [WARN] [1701172112.460534350] [swri_transform_util::Transformer]: Wgs84Transformer not initialized
[initialize_origin.py-2] [INFO] [1701172112.461930965] [initialize_origin]: Got NavSat message.
[initialize_origin.py-2] [INFO] [1701172112.462575108] [initialize_origin]: Origin from 'navsat' source set to 38.1614564605658, -122.45460714408775, 488.3200360890478
[initialize_origin.py-2] [INFO] [1701172112.463337905] [initialize_origin]: Successfully set origin; unsubscribing.
[mapviz-1] [INFO] [1701172112.480655151] [mapviz]: OK
[mapviz-1] [INFO] [1701172112.482309682] [mapviz]: OK
[mapviz-1] [INFO] [1701172138.485441870] [mapviz]: Point in wgs84: -122.454,38.1612
Why the robot_localization/get_state service is not avaiable? I have not change anything in the example code.
I am using the master branch of navigation2_tutorials
gps_waypoint_follower.launch.py
wants to add a robot_localization_cmd, which is a reference to dual_ekf_navsat.launch.py. The tutorial (Localization Testing section) says to launchdual_ekf_navsat.launch.py
; does it run for you? $\endgroup$ros2 launch nav2_gps_waypoint_follower_demo gazebo_gps_world.launch.py
". That launch file starts a robot state publisher that only appears to get started with this particular launch file. $\endgroup$