Closed arad2456 closed 5 months ago
Please ask on robotics stack exchange but your error seems clear to me from your logs'
[controller_server-10] [ERROR] [1716328246.096489476] [controller_server]: Original error: No critics defined for FollowPath
You need to pass in parameters. This is likely an issue with your launch file.
Please ask on robotics stack exchange but your error seems clear to me from your logs'
[controller_server-10] [ERROR] [1716328246.096489476] [controller_server]: Original error: No critics defined for FollowPath
You need to pass in parameters. This is likely an issue with your launch file.
I tried on different occasions to ask three different questions on Robotics Stack Exchange, but from my experience you rarely get an answer there if you ask a question which is not completly basic. I know this forum is for problems with the package, and I understand that you don't have or need to help me with the problem in my code. Yet, I would be extremely thankful if you could help me here. I tried to pass in parameters which also contain the critiques. This is the calling for nav2_bringup from the launch file:
navigation2_cmd = IncludeLaunchDescription(
PythonLaunchDescriptionSource(os.path.join(bringup_dir, "launch", "navigation_launch.py")),
launch_arguments={
"use_sim_time": "True",
"params_file": configured_params,
"autostart": "True",
}.items(),
)
And this is the part with the critics in the configuration file when calling the controller_server:
...
controller_server:
ros__parameters:
...
FollowPath:
...
critics: ["RotateToGoal", "Oscillation", "BaseObstacle", "GoalAlign", "PathAlign", "PathDist", "GoalDist"]
Unfortunately this is not an alternative for Q&A, that's what robotics stack exchange (or ROS Answers back when) is for. This is an issue tracker for project bugs and issues, not to help for first time setup. We as maintainers do not have the availability to help with every user's unique problems in getting up and running the first time (which often just has us pointing back to our own nav2_bringup
files or other projects using Nav2 as successful examples).
Please see the Nav2 documentation https://docs.nav2.org/, successful working examples in this package, and other projects using and deploying Nav2 for help with your first-time setup.
Ok, I understand, thank you anyway :)
Problem Description
I am working with ROS2 Humble and trying to implement a navigation algorithm that integrates GPS measurements. I successfully ran a simulation in Gazebo using the nav2_gps_waypoint_follower_demo with the turtlebot, after adjusting some configurations. When I tried to adapt this approach for my custom robot using a launch file, I encountered the following errors during the nav2_bringup process:
As indicated, the nav2_bringup process fails to launch, and thus, the navigation fails. I would appreciate any assistance you can provide.
Package Download nav2_gps_waypoint_follower_demo.zip
For reproducibility, I have uploaded the package containing all necessary configuration files, including the problematic launch file, _run_nav2gps.launch.py, and the launch file from the documentation that worked, _gps_waypointfollower.launch.py. In the file _gps_waypointfollower.launch.py you have to first change the topic of the map in rviz to a different topic, and only then the navigation works.
Launch and Urdf Files
This is the launch file _gps_waypointfollower.launch.py:
This is my robot's urdf file _lafette_smallurdf.urdf: