Giter Site home page Giter Site logo

Comments (12)

awesomebytes avatar awesomebytes commented on September 24, 2024

from aruco_ros.

atasoglou avatar atasoglou commented on September 24, 2024

Hmm, which field do you have in mind? Maybe the frame in the header of the camera info?
Here is the camera info:

header: 
  seq: 1699
  stamp: 
    secs: 1528207593
    nsecs: 3959129088
  frame_id: camera_mlx_frame_link
height: 512
width: 1024
distortion_model: plumb_bob
D: [-0.37344000000000005, 0.13855, -0.023670000000000004, -0.00028000000000000003, 0.00062]
K: [551.29784, 0.0, 0.0, -0.27212000000000003, 551.16795, 0.0, 501.52976, 248.17503, 1.0]
R: [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0]
P: [551.29784, 0.0, 0.0, -0.27212000000000003, 551.16795, 0.0, 501.52976, 248.17503, 1.0, 0.0, 1.0, 0.0]
binning_x: 0
binning_y: 0
roi: 
  x_offset: 0
  y_offset: 0
  height: 0
  width: 0
  do_rectify: False
---

from aruco_ros.

awesomebytes avatar awesomebytes commented on September 24, 2024

from aruco_ros.

atasoglou avatar atasoglou commented on September 24, 2024

Yeap! Here you are.
Thanks for looking into this!

You can try to set some made up frame.
Was trying the same, but without luck πŸ˜‡

from aruco_ros.

awesomebytes avatar awesomebytes commented on September 24, 2024

What's the ID and size of the marker?

from aruco_ros.

awesomebytes avatar awesomebytes commented on September 24, 2024

And probably post your launch file.

from aruco_ros.

awesomebytes avatar awesomebytes commented on September 24, 2024

Reverse engineered is marker 1... I don't know the size tho.

from aruco_ros.

awesomebytes avatar awesomebytes commented on September 24, 2024

Your camera info is wrong. A default camera info like:

rostopic pub /twizy/camera/mlx/camera_info sensor_msgs/CameraInfo "header: 
  seq: 0
  stamp: 
    secs: 0
    nsecs: 0
  frame_id: "camera_mlx_frame_link"
height: 512
width: 1024
distortion_model: "plumb_bob"
D: [0.0, 0.0, 0.0, 0.0, 0.0]
K: [1.0, 0.0, 512.0, 0.0, 1.0, 256.0, 0.0, 0.0, 1.0]
R: [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0]
P: [1.0, 0.0, 512.0, 0.0, 0.0, 1.0, 256.0, 0.0, 0.0, 0.0, 1.0, 0.0]
binning_x: 0
binning_y: 0
roi: 
  x_offset: 0
  y_offset: 0
  height: 0
  width: 0
  do_rectify: False"

Provides detections, with a launchfile like:

<launch>

    <arg name="markerId"        default="1"/>
    <arg name="markerSize"      default="0.1"/>    <!-- in m -->
    <arg name="marker_frame"    default="aruco_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="/twizy/camera/mlx/camera_info" />
        <remap from="/image" to="/twizy/camera/mlx/undistorted_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="camera_mlx_frame_link"/>
        <param name="marker_frame"       value="$(arg marker_frame)" />
        <param name="corner_refinement"  value="$(arg corner_refinement)" />
    </node>

</launch>

screenshot from 2018-06-06 02-10-45

from aruco_ros.

atasoglou avatar atasoglou commented on September 24, 2024

Marker size is 0.17m and marker id=1 (indeed). So you are saying probably the camera matrix K is wrong?
The launch file also correct πŸ˜‰.

I am gonna check all the camera matrices to make sure they are correct. Thanks! (I'll let you know)

from aruco_ros.

awesomebytes avatar awesomebytes commented on September 24, 2024

Both K & P look wrong if you compare the default camera info (perfect camera values) to yours. Seems values are shifted positions. Good luck. Also, next time, please post all necessary information to help you on the issue, makes things way easier.

from aruco_ros.

atasoglou avatar atasoglou commented on September 24, 2024

Yes both are wrong, you are right. There is an error in the matlab script that generate those.

Also, next time, please post all necessary information to help you on the issue, makes things way easier.

Yeah my bad, sorry.
Thanks for looking into this!

from aruco_ros.

awesomebytes avatar awesomebytes commented on September 24, 2024

https://memegenerator.net/img/instances/81927730/old-man-yells-at-matlab.jpg

haha good luck.

from aruco_ros.

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.