Robotics StackExchange | Archived questions

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.

Asked by waspinator on 2017-02-09 13:28:59 UTC

Comments

I don't think rosserial supports dynamic_reconfigure

Asked by ahendrix on 2017-02-09 15:40:26 UTC

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?

Asked by waspinator on 2017-02-09 16:26:28 UTC

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.

Asked by ahendrix on 2017-02-09 19:01:04 UTC

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(..).

Asked by gvdhoorn on 2017-02-10 01:21:35 UTC

Answers