ros-navigation / navigation2

ROS 2 Navigation Framework and System
https://nav2.org/
Other
2.45k stars 1.24k forks source link

Can not mirror the nav2_bringup package #3840

Closed GPrathap closed 11 months ago

GPrathap commented 11 months ago

I want to make some modifications to the nav2_bringup package. Therefore, I just copied the nav2_bringup package put it in the workspace and ran the Turtlebot 3 simulator. The following error occurred. Without copies, no errors, all work fine.

https://github.com/ros-planning/navigation2/blob/main/nav2_bringup/README.md

[ERROR] [launch]: Caught exception in launch (see debug for traceback): cannot import name 'PushROSNamespace' from 'launch_ros.actions' (/opt/ros/humble/lib/python3.10/site- packages/launch_ros/actions/__init__.py)

I noticed that in /opt/ros/humble/lib/python3.10/site-packages/launch_ros/actions/init.py It is defined as PushRosNamespace not as PushROSNamespace

When I update, i.e., checked out the humble branch, it I got the following error

[ERROR] [launch]: Caught exception in launch (see debug for traceback): ReplaceString.__init__() got an unexpected keyword argument 'condition'

Is this a bug?

Bug report

Required Info:

SteveMacenski commented 11 months ago

Did you copy from the Humble or main branch? main targets rolling. I believe this is your issue 😉

try humble on for size

icosac commented 10 months ago

Hi, I'm having a similar trouble. I'm following this, so I installed the versions of the packages listed in the guide for Humble, which is the ROS2 version I have, but when I try to launch the file I obtain the same error on the substitution.

Indeed, if I look at the documentation for nav2_common.launch.ReplaceString, there is no condition field.

GPrathap commented 10 months ago

Ensure that all branches are humble,