how to add dynamic_reconfigure to arduino

asked 2017-02-09 12:28:59 -0500

waspinator gravatar image

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.

edit retag flag offensive close merge delete

Comments

I don't think rosserial supports dynamic_reconfigure

ahendrix gravatar image ahendrix  ( 2017-02-09 14:40:26 -0500 )edit

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?

waspinator gravatar image waspinator  ( 2017-02-09 15:26:28 -0500 )edit

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.

ahendrix gravatar image ahendrix  ( 2017-02-09 18:01:04 -0500 )edit

Yes, make_libraries.py only generates the messages that are used by dynamic_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 that add_dependencies(..).

gvdhoorn gravatar image gvdhoorn  ( 2017-02-10 00:21:35 -0500 )edit