IntelRealSense / realsense_samples_ros

Sample code illustrating how to develop ROS applications using the Intel® RealSense™ ZR300 camera for Object Library (OR), Person Library (PT), and Simultaneous Localization And Mapping (SLAM).
Apache License 2.0
126 stars 93 forks source link

Can't Build Fatal Error #3

Closed ajinandra closed 7 years ago

ajinandra commented 7 years ago

Hello, I'm trying to run this on ROS Kinetic Here is my issue:

fatal error: realsense_ros_slam/Reset.h: No such file or directory compilation terminated. I checked myself this file does not exist anywhere. Please let me know if I am missing a step.

mattcurfman commented 7 years ago

Reset.h should be generated from the service file under realsense_ros_slam/srv/Reset.srv. It looks like there may be a missing dependency in realsense_ros_slam/CMakeLists.txt: there should be something like this:

add_dependencies(${PROJECT_NAME} ${PROJECT_NAME}_generate_messages_cpp)

directly above "if (REALSENSE_ENABLE_TESTING)"

Could you add it and see if it fixes the issue?

ajinandra commented 7 years ago

Thanks for the reply, so that dependency is actually there. But it is beneath the if statement that you mentioned. I've created new workspaces and have followed the steps to a T. I am on a virtual machine, but I don't think it makes a difference, as the system can see that the realsense is connected.

Please let me know if there is anything else you think I should try. At what point does it generate the Reset.h? Maybe it is messing up at that point.

mattcurfman commented 7 years ago

Please try the pull request at https://github.com/IntelRealSense/realsense_samples_ros/pull/4 and see if that resolves the issue you are experiencing.

ajinandra commented 7 years ago

Thanks so much! It built!

mattcurfman commented 7 years ago

Thanks for the feedback; we'll be sure to include this in the next update.