Giter Site home page Giter Site logo

rosparam_handler_tutorial's People

Contributors

cbandera avatar poggenhans avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

rosparam_handler_tutorial's Issues

Solution to error when building the package

When following the original CMakeLists.txt example, the following errors were encountered (among many others)

...
demo_node.cpp:(.text+0x2fa): undefined reference to boost::system::generic_category()' demo_node.cpp:(.text+0x306): undefined reference to boost::system::system_category()'
...

I propose the following changes to solve these errors:
From CMakeLists line 27 to 34 instead of:

add_executable(demo src/demo/demo.cpp src/demo/demo_node.cpp)
add_dependencies(demo ${catkin_EXPORTED_TARGETS} rosparam_handler_tutorial_gencfg)
target_link_libraries(demo ${catkin_LIBRARIES})
install(TARGETS demo
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)

The solution will be to put the add_dependencies tags after "target_link_libraries" and "install":

add_executable(demo src/demo.cpp src/demo_node.cpp)
target_link_libraries(demo ${catkin_LIBRARIES})
install(TARGETS demo
ARCHIVE DESTINATION #{CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
add_dependencies(demo ${CATKIN_EXPORTED_TARGETS} ${PROJECT_NAME}_gencfg)
add_dependencies(demo ${PROJECT_NAME}_genparam)

break down when adding global_parameter in params file

For your provided tutorial, you comment the global parameter usage here in params file. In order to test it , I uncomment it to enable the usage of global parameter, then I define the value of the global parameter in yaml file as follows:

global_parameter: "global_test"

Then , I rebuild it. This package couldn't work well as before. The error condition screenshot is @cbandera here:
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.