cbandera / rosparam_handler_tutorial Goto Github PK
View Code? Open in Web Editor NEWrosparam_handler_tutorial
rosparam_handler_tutorial
When following the original CMakeLists.txt example, the following errors were encountered (among many others)
...
demo_node.cpp:(.text+0x2fa): undefined reference toboost::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)
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:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.