Ask Your Question

ROS2 voxel.layer.enabled already declared

asked 2020-06-09 11:05:27 -0500

Chris91 gravatar image

Hi again,

I have the following yaml configuration for my navigation. When I launch the navigation with

ros2 launch nav2_bringup

i get the following error in the moment the transformation from cartographer comes online and the lifecyclemanager starts dwb_controller.

Original error: parameter 'voxel_layer.enabled' has already been declared

I only enable the voxel_layer once in the configuration file, but even removing this line doen't change anything. Is this a known issue ?

Thanks in regards.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-06-11 23:43:21 -0500

fergs gravatar image

That error is coming from the code calling "declare_parameter" twice - has nothing to do with your configuration file. Most likely this is due to more than one component setting the same parameter without checking if the parameter is already set. I'd suggest filing a bug report on the navigation 2 repo.

It's worth noting that most of the parameters in navigation2 are wrapped in a directive that checks if the parameter is already been declared - but it looks like this one is not.

edit flag offensive delete link more


Thanks i will try opening up a bug report.

Chris91 gravatar image Chris91  ( 2020-06-17 10:21:54 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2020-06-09 11:05:27 -0500

Seen: 133 times

Last updated: Jun 11 '20