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
616 stars 183 forks source link

add 'enabled' parameter to set dynamically #259

Closed dujeong closed 1 year ago

dujeong commented 1 year ago

There was already a service that had a function similar to toggle stvl. (service name: <observation_topic>/toggle_enabled) The service can be set up for each individual topic, but I wanted a toggle function for the entire stvl.

So I implemented the function and made it dynamically configurable.

I referred to the functions(activate, deactivate).

dujeong commented 1 year ago

@SteveMacenski I added checking nullptr part in the code. Is that what you meant?

dujeong commented 1 year ago

Sure! I tested it on the robot. It worked well. :)

SteveMacenski commented 1 year ago

Thanks for the contribution!