-
Notifications
You must be signed in to change notification settings - Fork 392
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
Create Zed Camera Macro, use mounting hole as the camera base-link #771
Conversation
…sting URDF. Make the base-link connect to the mounting hole of the camera instead of the camera's center (makes attaching the camera to a mounting point on another URDF easier).
Any chance for a review on this PR, please? |
@civerachb-cpr I really support this change as it will make the urdf provided by this package much more usable. Also the base link at the mounting point makes a lot of sense. Regarding the mounting point I have noticed the mesh provided by this package and the step file are different (mounting hole angle to base of camera) and that the body of the camera tapers slightly towards the lenses in section. As such it seems that if the camera is mounted flush to the body it will be slightly pointing down. Maybe someone from @stereolabs (@Myzhar?) can comment. This seems like a bit of a design flaw but if true should be represented in the step file: ros mesh: |
@garyedwards we are evaluating how to better merge this PR to keep the repository as general as possible. |
Thanks for the reply @Myzhar. I assume the mounting hole is normal to the bottom surface as per the step file. How is the centre point then calculated? Is it the centre point of the outer most circle making up the mounting hole and then directly up to intersect with a XY plane through the centre of both lenses? Is their any documentation showing this clearly? |
This has not yet been decided and is part of this union request. |
@civerachb-cpr I'm finally testing the PR, but I have a problem. and I get this error that I cannot solve:
|
I tried also by calling xacro directly outside the launch file, but the error is the same:
|
@civerachb-cpr there were syntax errors in your version of I'm adding the modifications proposed by @garyedwards (base slope for ZED and ZED2, correct position of the optical frame) and I'm going to merge the PR |
This PR duplicates much of the work already done in #534, which appears to be stalled because of unresolved merge conflicts (?). If 534 gets merged feel free to close this PR without merging, but one (or both) PRs would greatly improve the usability of the Zed ROS wrapper.
The most notable difference with this PR is that I've added an additional link to the Zed model, corresponding to the mounting hole in the center-bottom of the camera. This link is now treated as the base-link for the whole camera, rather than the camera_center link. My reasoning here is that anyone attaching the camera to an existing robot is likely going to do so using that mounting hole, and using that link as the base for the camera allows the Zed to be attached flush with a mounting point already defined in the URDF (e.g. https://github.com/clearpathrobotics/lockmount_description).
For example, the following can be added to the URDF_EXTRAS parameter of a Clearpath Jackal to add a Zed camera to the robot:
Resulting in this model: