Conversation
|
Confirming that this fixes quite a few packages. Not sure whether overriding |
|
@muellerbernd The last commit added a large override for |
That was not intended. Thanks for pointing that out. |
|
Now this fixes builds of 78 packages. Thanks. |
|
While testing this an going through the nav2 tutorials I have encountered a problem while executing ros2 launch nav2_bringup tb3_simulation_launch.py headless:=FalseRVIZ and gazebo start but some Nav2 plugins do not load: And also Same problems occur, while building navigation2 from source in a workspace. Seems to be related to the |
|
I've seen similar errors with some Autoware rviz plugins. This change seems to fix the problem. If it works for you, feel free to use the patch in this PR. |
Thanks. Now the nav2 rviz plugins are working. |
|
But unfortunately the nav2 gazebo simulation is not working as intended. The nav2 changes seem to work. I will test that tomorrow on a real world robot. |
|
Update on that. I want to use the static layer plugin of nav2_costmap_2d and I get the following error: |
|
Next update. If you have the following shell: { pkgs ? import ../. {} }:
with pkgs;
with rosPackages.jazzy;
mkShell {
nativeBuildInputs = [
(buildEnv {
paths = [
ros-core
colcon
geometry-msgs
turtlebot4-desktop
turtlebot4-simulator
slam-toolbox
nav2-minimal-tb4-sim
nav2-minimal-tb3-sim
];
})
];
}You can start a turtlebot4 simulation via: ros2 launch turtlebot4_gz_bringup turtlebot4_gz.launch.pyAfter that you start SLAM: ros2 launch slam_toolbox online_async_launch.pyThen start navigation2: ros2 launch nav2_bringup navigation_launch.pyNow I can see all costmaps and no error occurs. This workflow is more or less the same as in the documentation |
|
When trying to follow your guide, the first command prints (among others): and And no graphical application (rviz, gazebo) appears. Do you have an idea why? |
I have attached an example shell to this PR. Test if RVIZ or gazebo start there. Important gazebo somehow needs connection to the internet (both directions, for whatever reason) otherwise it wont start. If you have a firewall running try to disable in temporally. |
|
Yes, switching off the firewall helped and gazebo starts. If I start rviz and try to show some costmaps, they seem quite small (roughly 50x50 cm) compared to what can be seen in the nav2 tutorial and doesn't get larger when I move the robot. But I don't know much about what's the point of the demo so that's probably not relevant for this PR. |
|
So following the official nav2 tutorials is still not working and I still get the error: MultiLibraryClassLoader: Could not create object of class type nav2_costmap_2d::StaticLayer as no factory exists for it. Make sure that the library exists and was explicitly loaded through MultiLibraryClassLoader::loadLibrary()There is also an upstream issue where the same error occurs when mixing compilation with gcc and clang. Maybe that's also the problem in this PR. |
|
If we use the following with the given shell in this PR ros2 launch nav2_bringup tb3_simulation_launch.py headless:=True use_composition:=FalseEverything seems to work fine. The costmaps come up and even 2D navigation is working. |
With this changes
navigation2compiles for jazzy and humble.