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

Launch file issue with Aruco_Detect. #228

Open
madgrizzle opened this issue Oct 5, 2020 · 1 comment
Open

Launch file issue with Aruco_Detect. #228

madgrizzle opened this issue Oct 5, 2020 · 1 comment

Comments

@madgrizzle
Copy link

madgrizzle commented Oct 5, 2020

I'm running the melodic version with a kinect and have modified the launch per this topic:

#136

Edit: See comment below

@madgrizzle
Copy link
Author

madgrizzle commented Oct 5, 2020

Running melodic and having modified the launch file to work with a kinect, aruco_detect gets stuck at the 'ready' line, suggesting it never received any images on the subscribed topic.

I dug into the source code and it looks like aruco_detect.cpp is subscribe to "camera" and not "camera/compressed" as listed in the launch file? I'm still new to ROS so I might be mistaken, but I setup a topic_tools relay between /camera/rgb/image_raw and /camera, it starts working.

img_sub = it.subscribe("camera", 1,
&FiducialsNode::imageCallback, this);

So I modified the launch file to remap "/camera" instead of "/camera/compressed" and it didn't work. BUT, if I dropped out the $(arg transport) part, it worked:

<arg name="camera" default="/camera/rgb"/>
<arg name="image" default="image_mono"/>
<arg name="transport" default="raw"/>
...
<remap from="/camera" to="$(arg camera)/$(arg image)"/>
<remap from="/camera_info" to="$(arg camera)/camera_info"/>

There's got to be a simple explanation (i.e., something I'm overlooking) but this is the only thing that worked for me running off the melodic build with a kinect camera.

@madgrizzle madgrizzle changed the title Is compressed transport required? Using Kinect Launch file issue with Aruco_Detect. Oct 5, 2020
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

1 participant