Giter Club home page Giter Club logo

ptgrey_reader's Introduction

PointGrey Reader

1. Download code

Enter your catkin work space

cd YOUR_PATH/catkin_ws/src  
  
git clone https://github.com/gaowenliang/ptgrey_reader.git

2. Install dependency for ptgrey

2.1 Install libusb-1.0.21

cd YOUR_PATH/catkin_ws/src/ptgrey_reader/install/usb/  
  
tar jxvf libusb-1.0.21.tar.bz2  
  
cd libusb-1.0.21/  

You can follow the INSTALL file in the folder or follow the command below:

./configure  
make   
sudo make install  

2.2 Install driver for ptgrey

The driver support computer with Intel CPUs and NVIDIA TX2.

  • For computer with Intel CPU:
cd YOUR_PATH/catkin_ws/src/ptgrey_reader/install/amd64/
tar zxvf flycapture2-2.11.3.121-amd64-pkg.tgz
cd flycapture2-2.11.3.121-amd64/
  • For TX2:
cd YOUR_PATH/catkin_ws/src/ptgrey_reader/install/arm64/
tar zxvf flycapture.2.11.3.121_arm64.tar.gz
cd flycapture.2.11.3.121_arm64/

Follow the README file in the folder or follow the command below:

sudo apt-get install libraw1394-11 libgtkmm-2.4-dev libglademm-2.4-dev libgtkglextmm-x11-1.2-dev libusb-1.0-0 -y

FLYCAPTURE2 INSTALLATION:

sudo sh install_flycapture.sh
cd YOUR_PATH/catkin_ws/   
catkin_make

Before using that you may need to give the enough authority

sudo gedit cd /etc/udev/rules.d/40-flir.rules

Change all the 0613 or 0664 to 777 in the "40-flir.rules" and save. Then restart the system.

4. Run

First, you need to run the camera_list to see your camera ID number, and copy it to the launch file.

roscore  
  
rosrun ptgrey_reader camera_list

After you change the launch file with the ID number.

If you want to use muti-camera, you need to excute this command first and roslaunch each camera's launch you need:

sudo -S sh -c 'echo 2048 > /sys/module/usbcore/parameters/usbfs_memory_mb'  

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.