Giter VIP home page Giter VIP logo

aruco_tag_saver's Introduction

aruco_tag_saver

save ground truth with aruco tag (kinect, meta ports)

USAGE

Looking for a ROS version?

please check aruco_tag_saver_ros

Aruco

  1. see /tags, 466.jpg is for reference on the table
  2. see /tags/DICT_6X6_250, 3, 4, 5 are for end-effector, as shown in this
  3. see /tags/DICT_5X5_250, 5x5_1000-7_8_9_10 are for target object

using tcp/ip

  1. run script
git clone https://github.com/ivalab/aruco_tag_saver.git
cd aruco_tag_saver
python camera_demo_arucoTag_5X5_250.py.py
  1. default port is 2328

using Kinect

  1. install libfreenect for kinect (warning: never do upgrade)
  2. calibrate kinect
  3. run script
git clone https://github.com/ivalab/aruco_tag_saver.git
cd aruco_tag_saver
python camera_demo_arucoTag_kinect.py
  1. press s to save rgb/depth/rawDepth images
  2. press t or g to tilt up or down kinect
  3. change the parameters:
# CHANGE-ABLE PARAMETERS
OBJECT_TYPE = "scoop"
CAM_POSE = 0
OBJ_POSE = 0
START_COUNT = 0

tmpPathGT_pose = './data/graspPositions.txt'
tmpPathGT_ar = './data/arucoPositions.txt'
tmpPathGT = './data/graspPoseLabels.txt'

change tilt range for kinect

  1. tilt.c:
#define MAX_TILT_ANGLE 91
#define MIN_TILT_ANGLE (-91)
  1. glview.c (optional, only if you want to use this example):
	if (key == 'w') {
		freenect_angle++;
		if (freenect_angle > 30) {
			freenect_angle = 30;
		}
		tilt_changed++;
	}
...
	if (key == 'x') {
		freenect_angle--;
		if (freenect_angle < -30) {
			freenect_angle = -30;
		}
		tilt_changed++;
	}
  1. remove libfreenect.so and libfreenect_sync.so under /usr/lib/x86_64-linux-gnu/
  2. make and make install libfreenect.so and libfreenect_sync.so and load libraries
  3. run Cython setup.py to generate module and link to new .so

aruco_tag_saver's People

Contributors

fujenchu avatar

Watchers

 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.