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

Revision history [back]

click to hide/show revision 1
initial version

I know this is pretty old, but I have the same problem, but it only happens if I link my code to spinnaker. For example, my node doesn't work if I use:

add_executable(my_node src/my_node.cpp)
add_dependencies(my_node my_package_generate_messages_cpp)
target_link_libraries(my_node 
    ${catkin_LIBRARIES}
    ${OpenCV_LIBS}
    Spinnaker
    Spinnaker_C
    boost_filesystem 
    boost_system
)

Butr, my code works fine if I change it to the following:

add_executable(my_node src/my_node.cpp)
add_dependencies(my_node my_package_generate_messages_cpp)
target_link_libraries(my_node 
    ${catkin_LIBRARIES}
    ${OpenCV_LIBS}
    boost_filesystem 
    boost_system
)

The problem is that I want to use Spinnaker in my code. I have not been able to figure out why this occurs.

I know this is pretty old, but I have the same problem, but it only happens this occurs for me if I link my code Spinnaker to spinnaker. For example, my node doesn't work even if I use:don’t use any of the functionalities of Spinnaker. After looking into source for ros::getPath, it seems to break in _run in the _command function. Perhaps, it is linking different versions of boost once linking additional libraries to your node.

add_executable(my_node src/my_node.cpp)
add_dependencies(my_node my_package_generate_messages_cpp)
target_link_libraries(my_node 
    ${catkin_LIBRARIES}
    ${OpenCV_LIBS}
    Spinnaker
    Spinnaker_C
    boost_filesystem 
    boost_system
)

Butr, my code works fine if I change it to the following:

add_executable(my_node src/my_node.cpp)
add_dependencies(my_node my_package_generate_messages_cpp)
target_link_libraries(my_node 
    ${catkin_LIBRARIES}
    ${OpenCV_LIBS}
    boost_filesystem 
    boost_system
)

The problem is that I want to use Spinnaker in my code. I have not been able to figure out why this occurs.