ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

dynamic_reconfigure: Why don't many ROS Navigation Plugins have add_dependencies() for gencfg in CMakeLists.txt

asked 2020-09-05 19:11:03 -0600

RicoJ gravatar image

updated 2020-09-06 01:37:35 -0600

gvdhoorn gravatar image

I was following this tutorial to get dynamic_reconfigure to work on my own nav_stack plugin.

However, I notice that in ros navigation stack plugins, for example the global planners, in theirCMakeLists.txt, they do not declare

add_dependencies(plugin_name ${catkin_EXPORTED_TARGETS} ${PROJECT_NAME}_gencfg)

Is there a reason why?

Thanks, Rico

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-09-06 01:39:15 -0600

gvdhoorn gravatar image

However, I notice that in ros navigation stack plugins, for example the global planners, in theirCMakeLists.txt, they do not declare

add_dependencies(plugin_name ${catkin_EXPORTED_TARGETS} ${PROJECT_NAME}_gencfg)

Is there a reason why?

That target is included in ${planner_EXPORTED_TARGETS}, so there is no need to list it separately.

edit flag offensive delete link more

Comments

Nice! Can I ask is ${PROJECT_NAME}_gencfg target automatically included in ${${PROJECT_NAME}_EXPORTED_TARGETS}? If not, where is it included? Thanks,Rico

RicoJ gravatar image RicoJ  ( 2020-09-06 10:11:09 -0600 )edit
1

${${PROJECT_NAME}_EXPORTED_TARGETS} does indeed contain the _gencfg target.

gvdhoorn gravatar image gvdhoorn  ( 2020-09-07 03:58:30 -0600 )edit

Awesome, Thanks!

RicoJ gravatar image RicoJ  ( 2020-09-07 11:46:45 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2020-09-05 19:11:03 -0600

Seen: 211 times

Last updated: Sep 06 '20