Git Product home page Git Product logo

mynt-eye-ros-wrapper's Introduction

MYNT EYE 1.x SDK and wrapper is no longer supported. Please upgrade to 2.x SDK and firmware and use the wrapper inside.

MYNT EYE 1.x SDK and wrapper is no longer supported. Please upgrade to 2.x SDK and firmware and use the wrapper inside.

MYNT EYE 1.x SDK and wrapper is no longer supported. Please upgrade to 2.x SDK and firmware and use the wrapper inside.

MYNT EYE 2.x SDK https://github.com/slightech/MYNT-EYE-SDK-2

MYNT EYE 2.x Guide https://slightech.github.io/MYNT-EYE-SDK-2-Guide/

MYNT EYE ROS Wrapper

MYNT EYE ROS Wrapper lets you use MYNT EYE camera with ROS. It publishs the topics of left and right images, depth map, imu, etc.

Prerequisites

Getting started

  • Install the latest version of the MYNT EYE SDK.
  • Download the MYNT EYE ROS Wrapper.
$ mkdir -p ~/catkin_ws/src
$ cd ~/catkin_ws/src
$ git clone https://github.com/slightech/MYNT-EYE-ROS-Wrapper.git

Build the wrapper

The wrapper is a catkin package. You only need run catkin_make to build it.

$ cd ~/catkin_ws/
$ catkin_make
$ source ./devel/setup.bash

Launch the wrapper

Run MYNT EYE camera node, and open Rviz to display:

$ roslaunch mynteye_ros_wrapper mynt_camera_display.launch

Run MYNT EYE camera node:

$ roslaunch mynteye_ros_wrapper mynt_camera.launch

# Or
$ rosrun mynteye_ros_wrapper mynteye_wrapper_node

mynt-eye-ros-wrapper's People

Contributors

yangruixuan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mynt-eye-ros-wrapper's Issues

Can't build with MYNT-EYE-D-SDK

I want to use the MYNT-EYE-ROS-Wrapper with my Mynt Eye P depth camera, on an ubuntu 16.04 platform with ROS kinetic.

At first, catkin_make could complained, when compiling mynteye_ros_wrapper_nodelet.cpp, that camera.h could not be found.
After modifying CMakeLists.txt to point to the appropriate ${MYNT_SDK_DIR}/include/mynteyed include directory, catkin_make complains:
mynteye_ros_wrapper_nodelet.cpp:52:5: error: ‘mynteye’ does not name a type
mynteye::Camera cam;

Also, even after pointing to the correct include directory, catkin_make cannot find utility.h, calibration_parameters.h, and init_parameters.h.

Does the ROS wrapper support the Mynt Eye P camera?

Thanks.

Error: Can not get the camera's calibration file. SN:

When I run the launch file to display the images without doing my calibration I get the following error:

process[mynteye_ros_wrapper-2]: started with pid [31951]
[ INFO] [1531362102.637949643]: Initializing nodelet with 4 worker threads.
[ INFO] [1531362102.780535120]: Advertized on topic left/image_rect_color
[ INFO] [1531362102.816251502]: Advertized on topic left/image_raw_color
[ INFO] [1531362102.817221280]: Advertized on topic left/camera_info
[ INFO] [1531362102.851144493]: Advertized on topic right/image_rect_color
[ INFO] [1531362102.887170236]: Advertized on topic right/image_raw_color
[ INFO] [1531362102.888124991]: Advertized on topic right/camera_info
[ INFO] [1531362102.930145178]: Advertized on topic depth/depth_registered
[ INFO] [1531362102.931168835]: Advertized on topic imu
Compute Mode: MODE_AUTO_DETECT
Detect CUDA not support
Load libmynteye_features.so
Load libmynteye_features.so done
Warning: Failed to get the camera's infomation.
Failed to open file: /home/vibhor/1.8/mynteye-1.8-linux-x64-gcc5-opencv-3.4.0/settings/mynteye.info.temp
Warning: Failed to load the camera's infomation from a temporary file:
/home/vibhor/1.8/mynteye-1.8-linux-x64-gcc5-opencv-3.4.0/settings/mynteye.info.temp
Warning: sn is empty.
Failed to open file: /home/vibhor/1.8/mynteye-1.8-linux-x64-gcc5-opencv-3.4.0/settings/SN.conf
Error: Can not get the camera's calibration file. SN:

Anyway, you could generate calibration file using "tools/stereo_calib", and ensure "settings/SN.conf" exists.
[mynteye_ros_wrapper-2] process has died [pid 31951, exit code -11, cmd /home/vibhor/catkin_ws/devel/lib/mynteye_ros_wrapper/mynteye_wrapper_node __name:=mynteye_ros_wrapper __log:=/home/vibhor/.ros/log/509ee5f0-857a-11e8-93c0-a45e60bb4599/mynteye_ros_wrapper-2.log].
log file: /home/vibhor/.ros/log/509ee5f0-857a-11e8-93c0-a45e60bb4599/mynteye_ros_wrapper-2*.log

How to set the camera parameters??

How to change these params?

Gain: min=0, max=48, default=24
Brightness: min=0, max=240, default=120
Contrast: min=0, max=255, default=127
AutoExposure: min=0, max=1, default=0
Maxgain: min=0, max=48, default=48
MaxExposureTime: min=0, max=240, default=240
Desired brightness: min=0, max=255, default=192
ImuFrequency: min=100, max=500, default=200
IrControl: min=0, max=160, default=0
Hdr: min=0, max=1, default=0
FrameRate: min=10, max=60, default=25

ROS problem

Hello.
I already installed the MYNT EYE SDK and everything looks good but when i try to install the ros package in my catking _ws i got the next error:

BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~ traversing 1 packages in topological order:
-- ~~ - mynteye_ros_wrapper
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'mynteye_ros_wrapper'
-- ==> add_subdirectory(MYNT-EYE-ROS-Wrapper)
CMake Error at MYNT-EYE-ROS-Wrapper/CMakeLists.txt:13 (message):
MYNTEYE_SDK_ROOT environment variable not found.

-- Configuring incomplete, errors occurred!
See also "/home/david/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/david/catkin_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed

Any idea why ?

thank you

How to calibrate the camera?

I'm running Ubuntu 16.04, and ROS Kinetic
I can run all the other executables but when I run ./stereo_calib I get the following error:
Open Camera: 0
can not open ./stereo_calib.xml or the string list is empty
Stereo calibration with square chessboard.

Calibrate the stereo camera and display rectified results along with the computed disparity images.

Chessboard pattern which has a size of 9 X 6: http://docs.opencv.org/master/pattern.png.

Usage:

./stereo_calib -w=9 -h=6 -s=1.0 [-nr] [-n=12 -i=1]

Options:
Default Description
-help show help message

-w=<board_width> 9 number of inner corners per a chessboard row
-h=<board_height> 6 number of inner corners per a chessboard column
-s=<square_size> 1.0 the square side length in real measurement
scale the vectors of the calibration pattern points
-nr not display rectified results

-n=<image_number> 0 capture images manually if greater then 0
stored into ./images directory
-i=<device_index> 0 device index, but default is MYNTEYE on Windows
./tools/list_devices to see indexes on Linux/Mac

./stereo_calib.xml given images in a XML/YML file

Error while catkin_make

I have the same problem with [https://github.com//issues/14].

BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~ traversing 1 packages in topological order:
-- ~~ - mynteye_ros_wrapper
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'mynteye_ros_wrapper'
-- ==> add_subdirectory(MYNT-EYE-ROS-Wrapper)
CMake Error at MYNT-EYE-ROS-Wrapper/CMakeLists.txt:13 (message):
MYNTEYE_SDK_ROOT environment variable not found.

-- Configuring incomplete, errors occurred!
See also "/home/david/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/david/catkin_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed.

How to deal with it?

Error: Open camera failed

There seems to be an issue with the ROS wrapper for the SDK, I keep getting the error Error: Open camera failed with the ROS launch file and the node.
I am able to run the normal SDK examples successfully, so the camera seems to be working properly.

IMU output rate unstable

Hi, I have been using mynt-eye for SLAM algorithm evaluation. The frame rate of IMU topic is very unstable during the test. If I set the rate to 500Hz IMU 50Hz Camera, the IMU changes from 300Hz to 480Hz approximately, never reach 500 and the rate is not constant. Do you have any idea to fix this issue? I tried to use ROS adjust the frequency of IMU topic, but the result was no good. Thank you!

camera.h no such file

When running catkin_make, I get:

/catkin_ws/src/MYNT-EYE-ROS-Wrapper/src/mynteye_ros_wrapper_nodelet.cpp:20:20: fatal error: camera.h: No such file or directory compilation terminated. MYNT-EYE-ROS-Wrapper/CMakeFiles/MYNTWrapper.dir/build.make:62: recipe for target 'MYNT-EYE-ROS-Wrapper/CMakeFiles/MYNTWrapper.dir/src/mynteye_ros_wrapper_nodelet.cpp.o' failed make[2]: *** [MYNT-EYE-ROS-Wrapper/CMakeFiles/MYNTWrapper.dir/src/mynteye_ros_wrapper_nodelet.cpp.o] Error 1 CMakeFiles/Makefile2:3079: recipe for target 'MYNT-EYE-ROS-Wrapper/CMakeFiles/MYNTWrapper.dir/all' failed make[1]: *** [MYNT-EYE-ROS-Wrapper/CMakeFiles/MYNTWrapper.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j8 -l8" failed

The device itself and SDK examples work fine.
My ROS environment is fine (I can build packages, source them, etc)

Cannot disable disparity computation

Hi,
I did get the mynt eye ros wrapper. It does output the images.

However, here are my issues:
a. I cannot seem to disable the disparity computation
In the launch file, i edit

  <!-- stream toggles -->

  <arg name="enable_left_rect" default="false" />
  <arg name="enable_right_rect" default="false" />
  <arg name="enable_disparity" default="false" />
  <arg name="enable_disparity_norm" default="false" />
  <arg name="enable_points" default="false" />
  <arg name="enable_depth" default="false" />

Still for some reason it outputs the disparity. I just want the stereo image not the disparity for now.
Disparity computation unnecessarily occupies my CPU which I do not want at the moment.

b. I see some artifacts on the image. see attachments.
How should I fix this. ?
screenshot from 2018-12-13 16-33-45

c. Is this a gray only camera or is it possible to get color images from it?

Using SDK plugins

Hi,

I'm running MYNT EYE on an Jestson TX2 board running CUDA 9. I'm aware of plugins being available for this setup but I'm not sure how to implement it with your wrapper.

Can this be used in a ROS workspace independently ?

I have the MYNT-EKY-S-SDK installed in my system. And i can run the ros-wrapped from there. But when i clone this ros wrapper in to a separate ROS workspace I get this error:

CMake Error at /home/sxv1kor/ace_kitti_workspace/src/MYNT-EYE-ROS-Wrapper/CMakeLists.txt:13 (message):
  MYNTEYE_SDK_ROOT environment variable not found.


fatal error : camera.h no such file or directory

when running catkin_make, I get:

-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~ traversing 1 packages in topological order:
-- ~~ - mynteye_ros_wrapper
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'mynteye_ros_wrapper'
-- ==> add_subdirectory(MYNT-EYE-ROS-Wrapper)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- Found OpenCV: /usr/local (found version "3.4.1")
-- Configuring done
CMake Warning (dev) at MYNT-EYE-ROS-Wrapper/CMakeLists.txt:61 (add_dependencies):
Policy CMP0046 is not set: Error on non-existent dependency in
add_dependencies. Run "cmake --help-policy CMP0046" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.

The dependency target "mynteye_ros_wrapper_gencfg" of target "MYNTWrapper"
does not exist.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at MYNT-EYE-ROS-Wrapper/CMakeLists.txt:70 (add_dependencies):
Policy CMP0046 is not set: Error on non-existent dependency in
add_dependencies. Run "cmake --help-policy CMP0046" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.

The dependency target "mynteye_ros_wrapper_gencfg" of target
"mynteye_wrapper_node" does not exist.
This warning is for project developers. Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to: /home/lee/catkin_ws/build

Running command: "make -j6 -l6" in "/home/lee/catkin_ws/build"

Scanning dependencies of target MYNTWrapper
[ 25%] Building CXX object MYNT-EYE-ROS-Wrapper/CMakeFiles/MYNTWrapper.dir/src/mynteye_ros_wrapper_nodelet.cpp.o
/home/lee/catkin_ws/src/MYNT-EYE-ROS-Wrapper/src/mynteye_ros_wrapper_nodelet.cpp:20:10: fatal error: camera.h: 没有那个文件或目录
#include "camera.h"
^~~~~~~~~~
compilation terminated.
MYNT-EYE-ROS-Wrapper/CMakeFiles/MYNTWrapper.dir/build.make:62: recipe for target 'MYNT-EYE-ROS-Wrapper/CMakeFiles/MYNTWrapper.dir/src/mynteye_ros_wrapper_nodelet.cpp.o' failed
make[2]: *** [MYNT-EYE-ROS-Wrapper/CMakeFiles/MYNTWrapper.dir/src/mynteye_ros_wrapper_nodelet.cpp.o] Error 1
CMakeFiles/Makefile2:526: recipe for target 'MYNT-EYE-ROS-Wrapper/CMakeFiles/MYNTWrapper.dir/all' failed
make[1]: *** [MYNT-EYE-ROS-Wrapper/CMakeFiles/MYNTWrapper.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j6 -l6" failed

and I have tried the solution mentioned in issues #17 & raulmur/ORB_SLAM2#535, who can help?

Could not launch the ROS node. Error: Open camera failed

I installed the latest version of SDK. The sample apps work correctly. The ROS wrapper compiles successfully.
The environment is:
mynteye-1.8-linux-x64-gcc5-opencv-3.4.0 Ubuntu 16.04.3 ROS Kinetic
However, when I launch the ROS node. The error appears.
Error: Open camera failed
Could you help me solve the problem?

Issue with catkin_make

I git clone the sdk followed by make build && make install.

Make install
[  9%] Built target camodocal
[100%] Built target mynteye
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/local/include/mynteye/mynteye.h
-- Installing: /usr/local/include/mynteye/global.h
-- Installing: /usr/local/include/mynteye/logger.h
-- Installing: /usr/local/include/mynteye/types.h
-- Installing: /usr/local/include/mynteye/device/callbacks.h
-- Installing: /usr/local/include/mynteye/device/context.h
-- Installing: /usr/local/include/mynteye/device/device.h
-- Installing: /usr/local/include/mynteye/device/types.h
-- Installing: /usr/local/include/mynteye/device/utils.h
-- Installing: /usr/local/include/mynteye/util/files.h
-- Installing: /usr/local/include/mynteye/util/strings.h
-- Installing: /usr/local/include/mynteye/util/times.h
-- Installing: /usr/local/include/mynteye/api/api.h
-- Installing: /usr/local/include/mynteye/api/plugin.h
-- Installing: /usr/local/include/mynteye/api/object.h
-- Installing: /usr/local/include/mynteye/miniglog.h
-- Installing: /usr/local/include/mynteye/callbacks.h
-- Installing: /usr/local/include/mynteye/context.h
-- Installing: /usr/local/include/mynteye/device.h
-- Installing: /usr/local/include/mynteye/files.h
-- Installing: /usr/local/include/mynteye/glog_init.h
-- Installing: /usr/local/include/mynteye/strings.h
-- Installing: /usr/local/include/mynteye/times.h
-- Installing: /usr/local/include/mynteye/utils.h
-- Installing: /usr/local/include/mynteye/api.h
-- Installing: /usr/local/include/mynteye/plugin.h
-- Installing: /usr/local/include/mynteye/object.h
-- Installing: /usr/local/lib/libmynteye.so.2.3.8
-- Installing: /usr/local/lib/libmynteye.so.2
-- Installing: /usr/local/lib/libmynteye.so
-- Set runtime path of "/usr/local/lib/libmynteye.so.2.3.8" to "/opt/ros/kinetic/lib/x86_64-linux-gnu"
-- Installing: /usr/local/lib/cmake/mynteye/mynteye-config.cmake
-- Installing: /usr/local/lib/cmake/mynteye/mynteye-config-version.cmake
-- Installing: /usr/local/lib/cmake/mynteye/mynteye-targets.cmake
-- Installing: /usr/local/lib/cmake/mynteye/mynteye-targets-release.cmake
-- Installing: /usr/local/share/mynteye/build.info

The installation seem to have worked...

dji@MANIFOLD-2-C:~/Downloads/MYNT-EYE-S-SDK$ git remote -v
origin	https://github.com/slightech/MYNT-EYE-S-SDK (fetch)
origin	https://github.com/slightech/MYNT-EYE-S-SDK (push)
dji@MANIFOLD-2-C:~/Downloads/MYNT-EYE-S-SDK$ ls
3rdparty  _build  CMakeLists.txt  config       docs     Jenkinsfile  Makefile                 _output       pkginfo.sh  README.md  scripts  test   wrappers
build     cmake   CommonDefs.mk   CPPLINT.cfg  include  LICENSE      mynteye-config.cmake.in  package.json  platforms   samples    src      tools
dji@MANIFOLD-2-C:~/Downloads/MYNT-EYE-S-SDK$ ls _output/
include  lib

I tried out the samples, and they seem to work with my mynteye.

Now as I catkin_make the ros wrapper, I get

/home/dji/catkin_ws/src/dev_drivers/MYNT-EYE-ROS-Wrapper/src/mynteye_ros_wrapper_nodelet.cpp:20:20: fatal error: camera.h: No such file or directory
compilation terminated.
dev_drivers/MYNT-EYE-ROS-Wrapper/CMakeFiles/MYNTWrapper.dir/build.make:62: recipe for target 'dev_drivers/MYNT-EYE-ROS-Wrapper/CMakeFiles/MYNTWrapper.dir/src/mynteye_ros_wrapper_nodelet.cpp.o' failed
make[2]: *** [dev_drivers/MYNT-EYE-ROS-Wrapper/CMakeFiles/MYNTWrapper.dir/src/mynteye_ros_wrapper_nodelet.cpp.o] Error 1
CMakeFiles/Makefile2:5059: recipe for target 'dev_drivers/MYNT-EYE-ROS-Wrapper/CMakeFiles/MYNTWrapper.dir/all' failed
make[1]: *** [dev_drivers/MYNT-EYE-ROS-Wrapper/CMakeFiles/MYNTWrapper.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j8 -l8" failed

I set:

 export MYNTEYE_SDK_ROOT=/home/dji/Downloads/MYNT-EYE-S-SDK/_output

Please help

camera open failed

Hi,
I install mynteye-1.8-linux-x64-gcc5-opencv-3.3.1-ros-kinetic and ros-kinetic,
i can run samples. camera worked.
i follower steps to install ros-node, but it can't work.
it just show camera open failed. no error msgs.
so how can i do ?

image

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.