Giter Club home page Giter Club logo

Comments (6)

 avatar commented on August 16, 2024

Hey,

this worked for me:

  1. start you camera launcher

  2. 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>
  1. In a new terminal:
    rosrun image_view image_view image:=/aruco_tracker/result

from easy_handeye.

cygreat7 avatar cygreat7 commented on August 16, 2024

from easy_handeye.

zhanghengsjtu avatar zhanghengsjtu commented on August 16, 2024

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.

marcoesposito1988 avatar marcoesposito1988 commented on August 16, 2024

Closing for inactivity. If the problem persists, please comment and the issue will be reopened if appropriate.

from easy_handeye.

lucamarchionna avatar lucamarchionna commented on August 16, 2024

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.

marcoesposito1988 avatar marcoesposito1988 commented on August 16, 2024

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)

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.