Giter Site home page Giter Site logo

wanderlusthan / mecheye_ros_interface Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mechmindrobotics/mecheye_ros_interface

0.0 1.0 0.0 862 KB

Official ROS interface for Mech-Eye cameras.

Home Page: http://www.mech-mind.net/

License: MIT License

CMake 1.89% C++ 98.11%

mecheye_ros_interface's Introduction

Mech-Eye ROS Interface

Official ROS interface for Mech-Eye cameras.

Please select the proper branch corresponding to the camera firmware version.

http://www.mech-mind.net/

Dependencies:

  • ZeroMQ >= 4.2.1
  • OpenCV >= 3
  • PCL >= 1.7 or 1.8
  • Eigen 3.3.0
  • VTK 6.3.0

How to use interface functions of Mech-Eye cameras:

  • Interface functions are declared in CameraClient.h.
  • Connect to camera via specific ip address.
  • Call other functions.

Instruction for ubuntu 16.04:

  • Set up mecheye ros interface path:
cd YOUR_WORKSPACE_FOLDER (~/ros_ws/src for example)
git clone https://github.com/MechMindRobotics/mecheye_ros_interface.git && cd mecheye_ros_interface
mv CMakeLists_ubuntu16.txt CMakeLists.txt
export MECHEYE_PATH=${PWD}
mkdir -p $MECHEYE_PATH/3rdparty/src
  • ZeroMQ install guide
cd $MECHEYE_PATH/3rdparty/src
wget https://github.com/zeromq/libzmq/releases/download/v4.3.2/zeromq-4.3.2.zip
unzip zeromq-4.3.2.zip
cd zeromq-4.3.2
./autogen.sh
./configure --prefix=$MECHEYE_PATH/3rdparty/libzmq
make -j7
make install
sudo apt-get install build-essential
sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev

cd $MECHEYE_PATH/3rdparty/src
git clone https://github.com/opencv/opencv.git
git clone https://github.com/opencv/opencv_contrib.git
cd opencv
mkdir build && cd build
cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=$MECHEYE_PATH/3rdparty/opencv4 ..
make -j7
make install

Instruction for ubuntu 18.04:

  • sudo apt install libzmq5 libzmq3-dev
  • mkdir -p ~/ros_ws/src && cd ~/ros_ws/src
  • git clone https://github.com/MechMindRobotics/mecheye_ros_interface
  • cd ~/ros_ws && catkin_make
  • Change config in ~/ros_ws/src/mecheye_ros_interface/launch/start_camera.launch
    • save_file: true to enable save file, otherwise keep it as false
    • camera_ip: change to your camera ip address here
    • at the moment, image save path can only be changed in source code /mecheye_ros_interface/src/main.cpp.

Instruction for using the camera:

  • Source the build workspace: source ~/ros_ws/devel/setup.bash
  • Run roslaunch mecheye_ros_interface start_camera.launch. Then, the camera will start working.
  • Open a new terminal, source the workspace and run rosservice call /run_mechmind_camera to take a picture.

mecheye_ros_interface's People

Contributors

lianghongzhuo avatar crostar avatar lipengfei0451 avatar

Watchers

James Cloos avatar

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.