Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARuco tf position does not match actual #79

Closed
Circle-Kai opened this issue May 11, 2020 · 7 comments
Closed

ARuco tf position does not match actual #79

Circle-Kai opened this issue May 11, 2020 · 7 comments

Comments

@Circle-Kai
Copy link

I placed ARuco in front of the camera, but when RViz looked at the tf, the marker_frame was above the camera.

<launch>
  <arg name="markerId"          default="101"/>
  <arg name="markerSize"        default="0.045"/> <!-- in m -->
  <arg name="marker_frame"      default="aruco_marker_$(arg markerId)"/>
    
  <arg name="camera"            default="/camera/color"/>
  <arg name="camera_frame"      default="camera_link"/>
    
  <arg name="ref_frame"         default="/base_link"/> <!-- leave empty and the pose will be published wrt param parent_name -->
  <arg name="corner_refinement" default="LINES"/> <!-- NONE, HARRIS, LINES, SUBPIX -->

  <node pkg="aruco_ros" type="single" name="aruco_single">
    <remap from="/camera_info" to="$(arg camera)/camera_info" />
    <remap from="/image" to="$(arg camera)/image_raw" />
    <param name="camera_frame"       value="$(arg camera_frame)"/>
    
    <param name="image_is_rectified" value="True"/>
    <param name="marker_id"          value="$(arg markerId)"/>
    <param name="marker_size"        value="$(arg markerSize)"/>
    <param name="reference_frame"    value="$(arg ref_frame)"/> <!-- frame in which the marker pose will be refered -->  
    <param name="marker_frame"       value="$(arg marker_frame)" />
    <param name="corner_refinement"  value="$(arg corner_refinement)" />
  </node>
</launch>
@Eswar1991
Copy link

We are also facing this issue. Please see the image below:
image
As shown above, the location of marker frame in RViz does not match with that of gazebo. This really confuses us because we are not clear which dictates the physical location of marker in reality

Any help on this issue would be appreciated.

@sakthivelj
Copy link

sakthivelj commented Jun 25, 2020

I am also facing the same issues. I am also using a summit xl.

my launch file is:

 
<arg name="markerId" default="0"/>
<arg name="markerSize" default="0.05"/> <!-- in meter -->
<arg name="eye" default="left"/>
<arg name="marker_frame" default="marker_frame"/>
<arg name="ref_frame" default=""/> <!-- leave empty and the pose will be published wrt param parent_name -->
<arg name="corner_refinement" default="LINES" /> <!-- NONE, HARRIS, LINES, SUBPIX -->
 
 
<node pkg="aruco_ros" type="single" name="aruco_single">
<!-- <remap from="/camera_info" to="/usb_cam/camera_info" /> -->
<remap from="/camera_info" to="/robot/front_rgbd_camera/rgb/camera_info" />
<!-- <remap from="/image" to="/usb_cam/image_raw" /> -->
<remap from="/image" to="/robot/front_rgbd_camera/rgb/image_raw" />
<param name="image_is_rectified" value="True"/>
<param name="marker_size" value="$(arg markerSize)"/>
<param name="marker_id" value="$(arg markerId)"/>
<param name="reference_frame" value="$(arg ref_frame)"/> <!-- frame in which the marker pose will be refered -->
<param name="camera_frame" value="robot_front_ptz_camera_base_link"/>
<param name="marker_frame" value="$(arg marker_frame)" />
<param name="corner_refinement" value="$(arg corner_refinement)" />
</node>
 
</launch>```

@v-lopez
Copy link
Contributor

v-lopez commented Jun 25, 2020

Either the marker size is wrong or the camera is not properly calibrated.

@Eswar1991
Copy link

Either the marker size is wrong or the camera is not properly calibrated.

But the calibration info is obtained from the standard topic of SUMMIT XL robot "camera info". We are not clear on how the marker size influence frame location, because the marker frame is located at a distance from camera frame in gazebo, whereas in rviz it is showing above.

The correlation between marker frame location and marker size is not clear

@v-lopez
Copy link
Contributor

v-lopez commented Jun 25, 2020

The size parameter for aruco determines the distance from the camera.

A 100px x 100px marker in the camera, could be a 10cm marker a 10 meters, or a 1cm marker at 1meter.

@lalazari
Copy link

lalazari commented Sep 7, 2021

The size parameter for aruco determines the distance from the camera.

A 100px x 100px marker in the camera, could be a 10cm marker a 10 meters, or a 1cm marker at 1meter.

I changed my aruco size in launch file from 0.12 to 0.13 and everything is fine. Thanks a lot!

@saikishor
Copy link
Member

saikishor commented Apr 1, 2022

Hello,

We will proceed to close this issue due to inactivity.

Thank you,

Best Regards,
PAL Robotics Team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants