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

fixed aruco detect remaps to relative topic names to suport namespaces #236

Merged
merged 1 commit into from
Mar 2, 2021

Conversation

JanezCim
Copy link
Contributor

@JanezCim JanezCim commented Feb 3, 2021

On a robot that has exported a ROS_NAMESPACE, aruco detect does not map topics correctly, because the remap takes in absolute topics and that can not be modified from terminal like other topics can be (eg. camera topic):

mon launch aruco_detect aruco_detect.launch camera:=raspicam_node

The changes that are made also work with the rest of the system when ROS_NAMESPACE is not set.

test that it works within magni gazebo with

roslaunch magni_gazebo fiducial_world.launch

@JanezCim JanezCim self-assigned this Feb 3, 2021
Copy link
Contributor

@MoffKalast MoffKalast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, works as intended.

@MoffKalast MoffKalast merged commit 4443049 into kinetic-devel Mar 2, 2021
@JanezCim
Copy link
Contributor Author

JanezCim commented Mar 3, 2021

@AGregorc can you also test this when you can

@MoffKalast
Copy link
Contributor

MoffKalast commented Mar 4, 2021

On second thought I may have missed something, the TF frame the transforms are getting published in relation to what looks like namespace/raspicam_sensor instead of raspicam_sensor. Not sure why namespaces would get added to damn TF frames but it seems to be happening.

@MoffKalast
Copy link
Contributor

Ok yeah it seems that if I add the namespace/raspicam_sensor link to the urdf with 0,0,0 connection to the actual one, it starts to work properly. Not sure how to properly solve this one though. There must be a line in there that wrongly takes a topic name as a tf frame, but I haven't found it yet.

@MoffKalast
Copy link
Contributor

AH I found it, it's the frameId = msg->header_frame_id;. Checking the camera info topic, the frame is being published wrong by gazebo, it's not an aruco error.

All good then.

@JanezCim
Copy link
Contributor Author

JanezCim commented Mar 5, 2021

And i think that this camera frame topic in gazebo will be solved with UbiquityRobotics/magni_robot#146 (comment)

@rohbotics rohbotics deleted the bugfix-aruco-detect-relative-topics branch July 12, 2021 21:11
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

Successfully merging this pull request may close these issues.

2 participants