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

How to track multiple markers? #11

Open
SlavenLeskovar opened this issue Apr 29, 2024 · 2 comments
Open

How to track multiple markers? #11

SlavenLeskovar opened this issue Apr 29, 2024 · 2 comments

Comments

@SlavenLeskovar
Copy link

Hi, I have been trying to track 2 different markers at the same time with my drone camera. Im using this yaml file for launching but when the node starts, it only uses the last values, in this example values for DICT_6X6_1000 and neglects the first one. Is there a proper way to use these 2 types of markers at the same time?

/aruco_node:
  ros__parameters:
    marker_size: 0.132
    aruco_dictionary_id: DICT_7X7_1000
    image_topic: /image_raw
    camera_info_topic: /camera_info
/aruco_node:
  ros__parameters:
    marker_size: 0.132  
    aruco_dictionary_id: DICT_6X6_1000  
    image_topic: /image_raw  
    camera_info_topic: /camera_info  
@jkaniuka
Copy link
Contributor

jkaniuka commented May 1, 2024

Hi @SlavenLeskovar, in YAML file you pasted you defined parameters for the same node two times, so when this file is being parsed the second set of params overrides the first one. If you want to use two ArUco dictionaries at the same time, you have to launch aruco_node two times under different namespaces and with different YAML config files. If you need further assistance, I can provide you with a launch file with proper configuration 😉

@SlavenLeskovar
Copy link
Author

Hi @SlavenLeskovar, in YAML file you pasted you defined parameters for the same node two times, so when this file is being parsed the second set of params overrides the first one. If you want to use two ArUco dictionaries at the same time, you have to launch aruco_node two times under different namespaces and with different YAML config files. If you need further assistance, I can provide you with a launch file with proper configuration 😉

Hello, yes it is correct. I have added another aruco_node in my launch file that uses different YAML file and remapped the topic to /aruco_poses2. Thanks!

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

2 participants