Comments (6)
Hey,
this worked for me:
-
start you camera launcher
-
start the handeye launch-file, here is mine:
<launch>
<arg name="namespace_prefix" default="ur5_kinect_handeyecalibration" />
<arg name="robot_ip" doc="The IP address of the UR5 robot" />
<arg name="marker_size" value="0.1" doc="Size of the ArUco marker used, in meters" />
<arg name="marker_id" value="12" doc="The ID of the ArUco marker used" />
<!-- start the Kinect -->
<include file="$(find perception)/launch/primesense.launch" >
<arg name="depth_registration" value="true" />
</include>
<node name="aruco_tracker" pkg="aruco_ros" type="single">
<remap from="/camera_info" to="/primesense/rgb/camera_info" />
<remap from="/image" to="/primesense/rgb/image_raw" />
<param name="image_is_rectified" value="true"/>
<param name="marker_size" value="0.1"/>
<param name="marker_id" value="12"/>
<param name="reference_frame" value="primesense_link"/>
<param name="camera_frame" value="primesense_rgb_optical_frame"/>
<param name="marker_frame" value="camera_marker" />
</node>
<!-- start the robot -->
<include file="$(find ur_modern_driver)/launch/ur5_bringup_joint_limited.launch">
<arg name="robot_ip" value="192.168.117.117" />
</include>
<include file="$(find ur5_moveit_config)/launch/ur5_moveit_planning_execution.launch">
<arg name="limited" value="true" />
</include>
<!-- start easy_handeye -->
<include file="$(find easy_handeye)/launch/calibrate.launch" >
<arg name="namespace_prefix" value="$(arg namespace_prefix)" />
<arg name="eye_on_hand" value="true" />
<arg name="tracking_base_frame" value="primesense_link" />
<arg name="tracking_marker_frame" value="camera_marker" />
<arg name="robot_base_frame" value="base_link" />
<arg name="robot_effector_frame" value="ee_link" />
<arg name="freehand_robot_movement" value="true" />
<arg name="robot_velocity_scaling" value="0.1" />
<arg name="robot_acceleration_scaling" value="0.1" />
</include>
</launch>
- In a new terminal:
rosrun image_view image_view image:=/aruco_tracker/result
from easy_handeye.
from easy_handeye.
Hello:
I have met the same problem, but now I have solve it.
First, please modify the parameter in the demo launch file in easy_handeye/docs/example_launch/ur5_kinect_calibration.launch and make sure it is right. The answer above gives another example.
Second, print the aruco in this website http://chev.me/arucogen/ and pls choose Original Aruco. If you choose other aruco, i think this package won't recognize it.
Third, add these to the launch file, it can publish the frame u want.
<node pkg="aruco_ros" type="marker_publisher" name="aruco_marker_publisher">
<remap from="/camera_info" to="/cameras/rgb/camera_info" />
<remap from="/image" to="/camera/rgb/image_rect_color" />
<param name="image_is_rectified" value="True"/>
<param name="marker_size" value="$(arg marker_size)"/>
<param name="reference_frame" value="camera_link"/> <!-- frame in which the marker pose will be refered -->
<param name="camera_frame" value="$camera_rgb_optical_frame"/>
</node>
It is the final launch file i used.
<arg name="marker_size" value="0.1"/>
<arg name="marker_id" value="50"/>
<!-- start the realsense -->
<include file="$(find realsense_camera)/launch/sr300_nodelet_rgbd.launch" >
</include>
<!-- start ArUco -->
<node name="aruco_tracker" pkg="aruco_ros" type="single">
<remap from="/camera_info" to="/camera/rgb/camera_info" />
<remap from="/image" to="/camera/rgb/image_rect_color" />
<param name="image_is_rectified" value="true"/>
<param name="marker_size" value="$(arg marker_size)"/>
<param name="marker_id" value="$(arg marker_id)"/>
<param name="reference_frame" value="camera_link"/>
<param name="camera_frame" value="camera_rgb_optical_frame"/>
<param name="marker_frame" value="camera_marker" />
</node>
<node pkg="aruco_ros" type="marker_publisher" name="aruco_marker_publisher">
<remap from="/camera_info" to="/cameras/rgb/camera_info" />
<remap from="/image" to="/camera/rgb/image_rect_color" />
<param name="image_is_rectified" value="True"/>
<param name="marker_size" value="$(arg marker_size)"/>
<param name="reference_frame" value="camera_link"/> <!-- frame in which the marker pose will be refered -->
<param name="camera_frame" value="$camera_rgb_optical_frame"/>
</node>
<include file="$(find ur5_table_moveit_202)/launch/ur5_planning_execution.launch"/>
<include file="$(find easy_handeye)/launch/calibrate.launch" >
<arg name="namespace_prefix" value="$(arg namespace_prefix)" />
<arg name="eye_on_hand" value="true" />
<arg name="tracking_base_frame" value="camera_link" />
<arg name="tracking_marker_frame" value="camera_marker" />
<arg name="robot_base_frame" value="base" />
<arg name="robot_effector_frame" value="tool0" />
<arg name="freehand_robot_movement" value="false" />
<arg name="robot_velocity_scaling" value="0.5" />
<arg name="robot_acceleration_scaling" value="0.2" />
</include>
from easy_handeye.
Closing for inactivity. If the problem persists, please comment and the issue will be reopened if appropriate.
from easy_handeye.
Hi everyone, I was trying to a simple work based on aruco. However, I don't find the package aruco_ros package for Noetic. In particular, the file I am searching for is aruco_ros/src/single, which is the same file you used.
I have tried to search on GitHub but the similar packages seem a little bit different. Can anyone indicate the right repository?
from easy_handeye.
Hi @lucamarchionna,
this is the original repository for aruco_ros: https://github.com/pal-robotics/aruco_ros
However I was so frustrated that I wrote my own wrapper for the OpenCV aruco tracking, maybe it can be helpful for you too: https://github.com/marcoesposito1988/easy_aruco
from easy_handeye.
Related Issues (20)
- The GUI viewer is empty when I launch the calibration (thus cannot collect samples). HOT 3
- Cann't find check_calibration.launch file. How to check the calibration result? HOT 1
- DepthCloud's position wrong with the calibrated camera frame HOT 1
- pip2 + transforms3d ??? HOT 1
- Wrong visualisation of point cloud after calibration HOT 6
- No transform from [base] to frame [world] HOT 1
- Error when takes sample HOT 2
- Maximum achievable accuracy of the hand eye calibration tool HOT 1
- ImportError: No module named transforms3d
- I am confused because of other online articles introducing easy_hand. HOT 2
- results of each calibration are very different HOT 1
- Trouble while using the calibration matrices HOT 4
- something wrong when using easy_handeye calibrating
- Number of samples
- Load rqt_easy_handeye plugin failed HOT 6
- All functions are running normally, except for the lack of Plugins and the inability of rviz to display the coordinate system.
- rqt_calibrationmovements `Plan` failed
- Take sample error
- calibration
- Pick and place calibration
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easy_handeye.