how to add dynamic_reconfigure to arduino
I'm trying to follow the guide to set up my cfg file, but I'm not sure how to configure my CMakeLists file correctly.
The guide says to add the following line of code:
add_dependencies(example_node ${PROJECT_NAME}_gencfg)
but I'm not sure what my example_node
would be in the case of using it on an arduino. I tried rosserial
and rosserial_arduino
, but those didn't work.
I don't think rosserial supports dynamic_reconfigure
oh, I thought it might since
rosrun rosserial_arduino make_libraries.py .
outputs.h
files for it. Are those for configuring other nodes with arduino?It looks like the generated headers are just the message definitions, and don't include any of the code that you need to actually use those messages.
Yes,
make_libraries.py
only generates the messages that are used bydynamic_reconfigure
. The rest of the infrastructure is not present AFAIK. It should not be too hard to add it though, but it will be more work than simply adding a.cfg
and thatadd_dependencies(..)
.