Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nav2 Straight Line Plugin #38

Open
aghari19 opened this issue Oct 12, 2021 · 2 comments
Open

Nav2 Straight Line Plugin #38

aghari19 opened this issue Oct 12, 2021 · 2 comments

Comments

@aghari19
Copy link

Hello,
I downloaded ROS2 Galactic from source and Nav2 Galactic from source and am able to run the examples fine.
I am trying to run the Nav2 StraightLine plugin following this tutorial and this repo.

However, when change the nav2_params.yaml file as per the instructions on the tutorial,linked above, the Gazeebo is not imported to Rviz and I am not able to set the robot initial position or goal for it to move.

I am using the nav2_params.yaml file as here and swapped the planner_server to
planner_server:
ros__parameters:
planner_plugin_types: ["nav2_straightline_planner/StraightLine"] # For Eloquent and earlier
planner_plugin_ids: ["GridBased"] # For Eloquent and earlier
plugins: ["GridBased"] # For Foxy and later
use_sim_time: True
GridBased:
plugin: nav2_straightline_planner/StraightLine # For Foxy and later
interpolation_resolution: 0.1

Can someone let em know if I have the right .yaml file or how I can resolve this issue.

Thank you,

@SteveMacenski
Copy link
Member

@P4B5
Copy link

P4B5 commented May 3, 2023

Hi!

I had the same issue, I wasn´t sourcing correctly the workspace after compiling, this is important to export the new plugin. These steps worked for me:

  1. cd <your_ws>
  2. colcon build --symlink-install
  3. source install/setup.bash
  4. ros2 launch nav2_bringup tb3_simulation_launch.py headless:=False params_file:=/your/path/to/param_file.yaml

* The headless param to False is necessary if you want to visualize Gazebo.

I hope this would be useful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants