Writing /var/lib/dokuwiki/data/meta/tutorials/ros_seek_cam.meta failed
tutorials:ros_seek_cam
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorials:ros_seek_cam [2019/11/20 22:07] – lrodriguezp | tutorials:ros_seek_cam [2022/09/20 00:08] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 6: | Line 6: | ||
http:// | http:// | ||
====== Install pyseek ====== | ====== Install pyseek ====== | ||
- | The library to use the camera must be downloaded | + | The library to use the camera must be downloaded. It is recommended to place it in the catkin_ws folder. |
$ git clone https:// | $ git clone https:// | ||
In order to use this lib you must append the path to this lib to PYTHONPATH, you may do this appending the next line at the end of your .bashrc file | In order to use this lib you must append the path to this lib to PYTHONPATH, you may do this appending the next line at the end of your .bashrc file | ||
Line 14: | Line 14: | ||
pip install pyusb | pip install pyusb | ||
And also install scipy as a requirement | And also install scipy as a requirement | ||
- | sudo apt-get install | + | sudo apt-get install python-scipy |
- | | + | |
Finally, you must have image-transport-plugins and image-view for your ROS distribution. Usually, you already have it. You can check with the apt-cache search command. | Finally, you must have image-transport-plugins and image-view for your ROS distribution. Usually, you already have it. You can check with the apt-cache search command. | ||
**Note: The path of export and source (on the next step) must be complete. You can get the full path with pwd command. | **Note: The path of export and source (on the next step) must be complete. You can get the full path with pwd command. | ||
====== Setup seek-cam package ====== | ====== Setup seek-cam package ====== | ||
- | Use the following commands to get and build the ROS node: | + | Use the following commands to get and build the ROS node. It is recommended to place it in the catkin_ws folder.: |
$ git clone https:// | $ git clone https:// | ||
$ cd ros_seek_cam/ | $ cd ros_seek_cam/ | ||
- | $ catkin_make | + | If you are using the catkin_ws folder, use catkin_make |
Then append the following command to .bashrc file: | Then append the following command to .bashrc file: | ||
source /< | source /< | ||
Line 29: | Line 28: | ||
With the line: | With the line: | ||
SUBSYSTEM==" | SUBSYSTEM==" | ||
- | Where the vendor id and the product id, can be obtained with the dmesg command after connecting the seek camera. | + | Where the vendor id and the product id, can be obtained with the dmesg command after connecting the seek camera. The last camara used on the humanoid robot had 289d as idVendor and 0010 as idProduct. |
Then restart the udev service (if you are using a docker container you can skip this step, because udev doesn' | Then restart the udev service (if you are using a docker container you can skip this step, because udev doesn' | ||
$ sudo service udev restart | $ sudo service udev restart | ||
Line 45: | Line 44: | ||
$ rosrun seek_cam seek_cam_node.py | $ rosrun seek_cam seek_cam_node.py | ||
Open another terminal and run the following command to visualize thermal images with the image_view package: | Open another terminal and run the following command to visualize thermal images with the image_view package: | ||
- | $ rosrun image_view image_view image: | + | |
===== API Reference ===== | ===== API Reference ===== | ||
==== Topic ==== | ==== Topic ==== |
tutorials/ros_seek_cam.1574287639.txt.gz · Last modified: 2022/09/20 00:08 (external edit)