ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How to find relative vector between two ARUCO markers?

asked 2020-03-12 14:44:17 -0500

Lucas Gregório gravatar image

updated 2020-03-12 14:52:26 -0500

Hi, I have three ARUCO Markers here (let's say, A,B and C). For instance, I want to know relative vector between these two vectors, this means, to get A(x,y,z) - B(x,y,z). My current try was to put an "If " condition and get the msg.pose.position information to a code vector, but it happens that msg.pose.position states for all three markers seen on camera at the same time. This means if I create a vector and put the coordinates on it, the relative vector between them all would be always a null vector. Is there a way to isolate the msg.pose.position from a specific marker? I am using the .cpp file located at ROS in order to use it with rosrun. The idea can be illustrated by this screenshot (https://imgur.com/a/hveLR7g). Any help would be great,

Lucas.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2020-11-15 12:17:44 -0500

Abhinavgandhi09 gravatar image

Can you post a link to your code repository or provide more details about your code? It is fairly straightforward to write a subscriber callback and subtract the poses of the markers. Why do you think they will be null vectors?

edit flag offensive delete link more

Comments

Hi, I've already achieved it. It was an 'If' error that I could solve it. Thank you!

Lucas Gregório gravatar image Lucas Gregório  ( 2020-11-15 20:27:38 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2020-03-12 14:44:17 -0500

Seen: 455 times

Last updated: Nov 15 '20