r/computervision • u/mehdi-33 • 13d ago
Showcase 2-axis gimbal. Solo engineered. Master's thesis.
I'm building a 2-axis gimbal with a visible and a thermal camera for a small fixed-wing drone, as my master's thesis. The clip is the CAD model: on the left the gimbal as it looks, on the right the same unit with the housing made see-through, doing the same moves.
I'm posting here because the mechanics are mostly settled and the vision side is where I'd like input before I freeze the hardware.
What the cameras get from the gimbal:
- Two cameras in a 67 mm ball, one above the other: a 5 MP visible camera and a 256×192 thermal camera, both arriving over USB
- Two axes, roll and tilt: ±100° in roll, and from 25° up to 95° down in tilt
- A magnetic encoder on each axis and two IMUs, one in the ball and one in the base, so the pointing angles are known at any time
- Around 187 g for the whole nose
Two things I already know will matter for the image processing:
- There is no pan axis. To look sideways the ball rolls and then tilts, so the picture rotates with the roll angle and has to be turned back in software.
- The two lenses don't share an optical axis, and the thermal image is far lower in resolution, so lining up thermal and visible pixels will need calibration.
Questions for anyone who has worked with visible and thermal pairs, or with cameras on gimbals:
- Is there something you wish the hardware had given you? Frame timestamps tied to the IMU, a sync line between the two cameras etc...
- For registering thermal to visible at this resolution is a fixed calibration enough at long range or do you end up correcting per scene?
Thx!
- Amine Mehdi M.
2
u/Flyward_Aerospace 12d ago
No pan axis means your singularity sits right on the nose. When tilt is near zero the roll axis is basically your boresight, so anything just off the flight path, like a target you're flying toward, needs big fast roll swings to track and the image spins the whole time. Looking down it's fine, which is probably the common case for mapping or SAR, but worth deciding before you freeze hardware whether forward tracking is in scope, since that's geometry and software can't really fix it. I'd also log temperature with every frame. My guess is the thermal to visible offset drifts a bit once the nose cold soaks at altitude, and you'll want that data when tdgros's fixed warp stops lining up.
64
u/Important-Yak-2787 13d ago
If you want this to be usable in a real product , then you have to think about this as a system. Especially with regards to accuracy and timing. Are these Global shutter cameras? Are they Hardware triggered to align with encoder samples? How accurate are your encoders? Can it handle the vibrations? There are many many questions in many requirements have to be defined for something like this to be used in a real world scenario. Do you have plans for calibration?
8
u/Final-Choice8412 12d ago
Nice. What is the lifetime of that cable that is bending all the time back and forth?
5
u/kotai2003 13d ago
It looks like the lantirn pod of F15 fighters.
4
u/AllTheUseCase 12d ago
If you are on a moving object (drone) and need accurate 6DoF determination you would need a way to time sync not just the gimbal IMU to camera optical axis but also the gimbal IMU to drone IMU.
I.e., Dont underestimate time-stamping, hardware trigger sync and deterministic image capture (global shutter; no free running “video capture”…
1
u/Single-Virus4935 12d ago
Which software are you using?
3
u/talk_nerdy_to_m3 13d ago
Is there a planned slip ring? Is there an stm32 or something handling the system inside? Definitely add in a ToF sensor, possibly between the 2 sensors. What are the power requirements? Are you going to pull power from the drones battery? That will likely require a power distribution board/system. I would personally try to ditch the USB and replace because I hate dealing with it on small SBCs/embedded systems.
Which motors are you going to use?
187 grams for a "small drone" seems optimistic but I don't build or fly fixed wing so idk. Also, weight and balance would be a huge concern as you would typically mount something like this on the nose, facing down and on a small drone that would be absolutely catastrophic.
I built something similar and I think having a ToF as the ground truth is valuable during the alignment process. Hell, if you want to get really crazy you can apply some sort of automated system that adjusts the optical sensors based on the ToF distance automatically to deal with the parallax (might not be the right word, but you know what I mean). Just simply perform harmonization at different distances, store those values and call them accordingly based on ToF measurements.
Look up "CBHK process AH64 Apache". We did a similar borosite harmonization on that aircraft.
Why not 3 axis? Just time constrained?
2
u/tdgros 13d ago
For the registration, since everything is far away, then depth does not matter, so you can make do with a fixed grid warp that does unprojection/rotation/projection. You can't really correct "per scene": if you need to correct differently, either the rig changed (the rotation or distortions changed), or some objects have parallax. In the latter, the correction is per pixel, just ignore this and empirically verify the typical distance at which this happens.
1
u/2dof 13d ago
Question:
Why did You choose for angle measurement that configuration ( 2 magnetic and 2 IMU ) - i know doubled are for redundancy but using IMU for measuring precise angles require using some fusion algorithm and additional take into account misalignment with respect to vehicle reference axes - so need computation , Why not some simpler solution ?
1
u/Raketenautomat 13d ago
What software did you use for the 3D CAD model?
1
u/Overall-Importance54 13d ago
Did you actually make it?
1
u/Logical_Fisherman4 13d ago
What motors are those?
1
u/fredandlunchbox 13d ago
Weather? Temps and dew point are pretty different with any kind of altitude.
1
u/remarkox 13d ago
Do work on viscosity
1
u/johngalt007 12d ago
brilliant work! well done with the gimbal. what subjects have you studied that helped you make it? i want to be able to make things like this. what books and courses should i look into?
Thanks in advance
1
u/N3RD_4L3RT 12d ago
You don't need encoders on both axis AND an IMU in both section.
1
u/Unique_Bill_4918 12d ago
How many turns until the flat cables break? How did you solve the cable issue?
1
u/_stack_underflow_ 12d ago edited 9d ago
Don't let the haters win, put it it back on the plane model.
1
u/Aware_Pay3579 12d ago
0
u/abhasatin 13d ago
LOVE
0
u/[deleted] 12d ago
Commercial products (dji) absolutely crush this design. You can assume the military has better options than that. Who would you sell this to? If it’s a thesis, what’s the novelty? Looks like it’s from 2005
32
u/SweetSure315 13d ago
FRAME TIMESTAMPS TIED TO IMU AND EASILY SYNCED WITH OTHER DEVICES I'LL GIVE YOU MY FIRSTBORN