archielee / turtlebot-realsense

Scripts to set up the Intel RealSense R200 on a Turtlebot
0 stars 0 forks source link

How to get turtlebot to use realsense #1

Open robertxchen66 opened 7 years ago

robertxchen66 commented 7 years ago

Archie,

I saw your video on use realsense with turtlebot. How do you let the turtlebot recognize realsense?

Thanks

Robert

archielee commented 7 years ago

Hi, have you installed librealsense and the ROS bridge from Intel?

https://github.com/IntelRealSense/librealsense https://github.com/intel-ros/realsense

robertxchen66 commented 7 years ago

yes, I have installed and tested both. Robert

Date: Fri, 5 Aug 2016 09:32:09 -0700 From: notifications@github.com To: turtlebot-realsense@noreply.github.com CC: robertxchen66@hotmail.com; author@noreply.github.com Subject: Re: [archielee/turtlebot-realsense] How to get turtlebot to use realsense (#1)

Hi, have you installed librealsense and the ROS bridge from Intel?

https://github.com/IntelRealSense/librealsense

https://github.com/intel-ros/realsense

― You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

archielee commented 7 years ago

When you say recognize the RealSense, what exactly do you mean?

robertxchen66 commented 7 years ago

found another person suggestion: https://github.com/turtlebot/turtlebot/pull/222 Wondering if this is what you do?

archielee commented 7 years ago

This is a newer update, not what I used. However, it looks like they've added support for librealsense and the ROS realsense bridge. It should work for you

robertxchen66 commented 7 years ago

Like to know what you use.

archielee commented 7 years ago

I installed directly from the Intel repositories on Github that I linked above. Those repositories have instructions on how to install the packages. It should work out of the box if you follow those instructions

ibaranov-cp commented 7 years ago

Installing RealSense drivers Clone the turtlebot-realsense repository on my Github at https://github.com/archielee/turtlebot-realsense (will likely be moved in the near-future) which contains two install scripts for the RealSense libraries. Make sure the camera is not plugged in and run the first script (part one). Run the first install script and follow the prompts. Restart the netbook. After restarting, run part two of the install script. After the installation completes, test the RealSense by plugging it in and running the program in ~/catkin_ws/src/librealsense/bin/cpp-capture where all 4 feeds should be visible. Mapping Mapping can be done very easily using the RealSense ROS package. The following commands will allow you to map. Drive the Turtlebot around with the teleop launch file. roslaunch turtlebot_bringup minimal.launch --screen roslaunch realsense_camera realsense_r200_navigation.launch roslaunch realsense_navigation gmapping.launch roslaunch turtlebot_rviz_launchers view_navigation.launch (run this on another computer) Save the map after it's completed. rosrun map_server map_saver -f Copy the map over to the Turtlebot. Navigation Kill the mapping launch file then run the following command. roslaunch realsense_navigation navigation_demo.launch map:= Use 2D Pose Estimates to help the robot localize then send it 2D Nav Goals to see it move!

surabhi96 commented 6 years ago

@ibaranov-cp I followed the steps you've mentioned. After running part 2, I tried to catkin_make it. However, I get the following error `CMake Error at /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:83 (find_package): Could not find a package configuration file provided by "librealsense" with any of the following names:

librealsenseConfig.cmake
librealsense-config.cmake

Add the installation prefix of "librealsense" to CMAKE_PREFIX_PATH or set "librealsense_DIR" to a directory containing one of the above files. If "librealsense" provides a separate development package or SDK, be sure it has been installed. ` Any idea where I might be going wrong? Also, I don't have the bin folder in librealsense. Thanks in advance.

ibaranov-cp commented 6 years ago

@surabhi96

Hello, This ticket was almost a year ago now, more than likely library names have changed. I'd suggest following a tutorial online to ensure your realsense is properly installed, then start from there.