SteveMacenski / spatio_temporal_voxel_layer

A new voxel layer leveraging modern 3D graphics tools to modernize navigation environmental representations
http://wiki.ros.org/spatio_temporal_voxel_layer
GNU Lesser General Public License v2.1
640 stars 189 forks source link

Error loading plugin "stvl_layer" #194

Closed charlielito closed 3 years ago

charlielito commented 3 years ago

Hi! I am trying to use this plugin with nav2 stack in ros2 foxy. Nonetheless, when trying to launch nav2 stack I got the following error:

[controller_server-1] [INFO][1615399488.877895518][local_costmap.local_costmap]: Using plugin "stvl_layer"
[controller_server-1] [ERROR][1615399488.877953773][]: Caught exception in callback for transition 10
[controller_server-1] [ERROR][1615399488.877962229][]: Original error: According to the loaded plugin descriptions the class spatio_temporal_voxel_layer/SpatioTemporalVoxelLayer with base class type nav2_costmap_2d::Layer does not exist. Declared types are  nav2_costmap_2d::InflationLayer nav2_costmap_2d::ObstacleLayer nav2_costmap_2d::RangeSensorLayer nav2_costmap_2d::StaticLayer nav2_costmap_2d::VoxelLayer

I installed this from source https://github.com/SteveMacenski/spatio_temporal_voxel_layer#install-from-source. How it is supposed to be installed from source? I compiled it with:

mkdir build
cd build
cmake ..
make -j8
sudo make install

Is this correct? What am I missing?

SteveMacenski commented 3 years ago

Please use colcon and the normal ROS2 toolchain.

charlielito commented 3 years ago

Thanks for the mega fast response! Built with colcon did the job