Simple navigation for pet robots
To make the experience fit your profile, pick a username and tell us what interests you.
We found and based on your interests.
After the last snafu with the leash, a lot of timelapses finally got made. It was arguably more stable after the last round of PID calibrating with the rear view glasses.
https://www.youtube.com/@Trissb1988--/videos
The goog finally recommended some videos from a vision guided copter which were suitable for timelapses. For the 1st time, we could see how good machine vision was.
The mane problem is he doesn't go very straight, but in the limited sections he does go straight, the machine vision looks really impressive. Who knows if they actively dealt with an oscillation problem or if the stability was a natural result of the copter not having to deal with mechanical steering linkages. It also locked in the distance measurement. A ground camera would be dealing with adverse lighting, looking up.
Also noted with 3 animals, the copter stayed locked on just the 1. This kind of tracking algorithm has become really basic. Still suspect it's an animal detector with semantic segmentation & histogram feature extraction to identify different animals by color. Lions just can't afford $300 for just that. For the low power vehicle lions are using, the range would be drastically reduced by the computing. For a copter, the power used in computing is nothing. There's no way anything but a leash can track for 3 hours.
Of all the things which need to work to get stable pointing of the camera, the dependence on the mechanical steering system was a surprise. The truck got a new steering module & the leash started oscillating again.
The mane thing which changed was tighter fitting ball links to try to extend their life. They eventually wear out & fall off.
The next leash footage immediately oscillated. There was much firmware & controller troubleshooting to try to knock out the new oscillation.
https://hackaday.io/project/199156-rear-view-glasses
Rear view glasses got developed to aid in debugging leash mode. While they're good at detecting large errors, they can't detect subtle enough motion that ruins camera footage. Unlike the rear view glasses from China, these could be precisely aimed for looking down.
Better results were coming from having a really high gain in high frequencies, but it only worked by timing the oscillations to match the timelapse period. There has long been a theory that the ideal leash would respond very slowly, washing out subtle errors in direction. The reality has been always oscillation unless it responds as fast as possible. A large object like a rocket has a larger moment of inertia making it less prone to oscillation, so it can respond slower. A small RC truck is a lot more prone to oscillation so it needs faster response.
The affair eventually narrowed in on the ball links. They didn't look stiff when driven by the servo but they were slightly stiff when pawing them. Heating them to make them looser got the leash oscillation to subside, especially with the latest gains. It's surprising there was no way for software to overcome a mechanical deficiency that minor. It still wasn't as good as the old days, because of a desire to make the ball links last longer. It looked more accurate on camera than in the glasses.
Smart leash had a lot of problems & finally got a lot of upgrades in 2024. The mane evolution was a frictionless ball bearing system with hall effect angle sensor.
This requires making a lookup table to convert the imprecise analog readings to angles.
The frictionless angle sensor introduced a new problem of the structure flapping at a certain resonant frequency. Defeating the flapping required detuning the frequency response of the steering controller around the resonant frequency.
The result was a steering controller which responded less to .4Hz than 1Hz & a better tool for plotting the frequency response. That made it track very accurately.
Other attempts to reduce the amount of mass being swung around were failures.
It needed another control law where sharper turns would be performed at minimum speed, with a ramping to full speed as the turn angle decreased. That keeps it from running away.
It got a braking algorithm where retraction would cause it to apply reverse proportionally to the amount the wheels turned beyond where the leash was retracted.
Instead of responding to angle & length, it needed to convert to X & Y. Then steering would respond to X while speed would respond to Y. This allowed it to follow with a sideways offset & get better video. The trick with a sideways offset is distance & angle feedback cross into each other. Converting to XY made it easier to defeat the crosstalk but it also created the problem of a minimum following distance required to detect X. Below the minimum distance, it can't steer. There's a complicated algorithm for transitioning in & out of minimum following distance. It involves certain resets of the steering controller to allow it to do minimum speed turns while not running away. It's still a bit problematic.
Another evolution was being able to change the sideways offset with the paw controller.
That allows better camera angles.
The leash evolved to a more complicated & robust user interface than younger lion imagined.
Problems remane with dirt building up inside the spool & the cable not always winding evenly. Dirt buildup & cross windings are the mane causes of failures to retract. When this happens, the mane symptom is loss of steering control. The cable has to stay tensioned in order to detect angle. Fortunately, the problem has only been when its moving slowly & it quickly unsticks. The sound of the servo behaving erratically is the 1st sign of the retraction starting to get stuck because of dirt.
A very daring exercise to be sure. Oscillation proved unavoidable but bearable. Noted the leash vibrating & wondered if aliases of the vibration could be oscillating the steering, but it's accepted that stiction of the pot is the reason. The locked down stability of the stick controller is quite conspicuous. It only got that stable after installing a more rigid steering plate & tightening the servo saver.
Got another glitch where it was retracted to several ft & reset to 0. Saw the 0 point on the phone. When it retracts further, the truck firmware clamps it at 0. Other ideas are the power switch glitching, a bad cable, or static electricity from retraction.
The leash logic in the truck is ponderous & had an unrelated bug.
Reducing oscillation has been long & hard. With very low P, I & relatively high D, it's surprising just how damped the leash can get, purely based on input from the leash & not any gyro. It takes a lot of deflection to make it turn but it doesn't oscillate. In a few places, it doesn't respond in time to avoid the curb. Maybe it would be more responsive without oscillating if it used the truck gyro to detect turn rate instead of the leash pot.
Then again, the truck gyro doesn't detect a turn until after the leash detects a turn & commands the servo to move. There is a scenario where a gyro is stuffed on the leash board. Then it just detects the difference in rate between the leash gyro & truck gyro. This would give the fastest rate updates but absolute heading would be prone to drifting. The pot would always be necessary to anchor the gyro.
Reduced P yielded another problem where fully deflecting right or left can cause it to run away. It won't turn enough to retract the leash, instead extending it when it moves. In the fully deflected mode, you have to slow down. 1 idea is reducing maximum speed proportionally to the turn angle. This might allow higher maximum speeds than it can currently reach.
The speed limit is only to keep it from running away. If it's going forward, it'll run into the lion or it'll deflect sideways before it runs away. If it's going sideways, it'll go in a circle. If it completely breaks & only detects maximum forward, it could run away. Reduce the speed too much & it'll erratically lock the wheels, losing steering control.
The 1st kaboom case since day 1, an unfortunate side affect of the leash is every failure of the control mechanism results in full throttle until it runs into something. Usually, it eventually settles into going in a circle like a control line airplane. Pull the leash in until it hits you or falls over. In the worst case, the leash could get pulled completely off the truck, disconnect from the serial port, & the mane confuser would kill the motors after 1 second. Let the leash go & maybe it'll fully retract, killing the motor. Maybe it'll get hung up & run forever.
Another stress point was revealed. A standoff also broke off. That standoff is in a difficult position. Another model & another step up in robustness followed. More functional than visually appealing.
Leash failure in traffic is still a real possibility. Lions avoid using it in traffic. 1 mitigation has been to limit the maximum speed to 9 min/mile, but it makes the rear camera angle difficult. Another mitigation would be a kill switch on the leash, but it makes the leash heavier. There could be a kill switch as a separate dongle. Finally, the operator could carry around the paw controller at all times. The paw controller could override the leash whenever it was on. It would be hard to access the paw controller. The startup time for any RF system is quite long.
The new leash is a translucent beast designed for observing how everything fits & surviving more bashes. It has more plastic than the other 2 designs.
Sadly, the leash has a glitch problem whereby its measured distance either resets to 0 or errors low for some reason. This has happened only twice. It could be the micro resetting. In both cases, the glitch happened after it was rewound to 0 & extended again. The only way to recover it was to retract it & power cycle it. It could be static electricity.
Another glitch is where it's fully deflected & ends up oscillating between full deflection right & left. It has to be retracted & extended again when in the center.
Efforts at using the leash to point a camera were successful failures. The mane requirement is eliminating oscillation.
Installed a full PID controller which eliminated most of the oscillation, thus causing attention to be drawn to 1 body part instead. It still requires a perfectly flat surface to be the most stable. It needs a smaller integral limit. It might use a smaller D. It's never going to be perfect since the task of picking the heading is done by a transducer mounted on a shaky platform. The transducer is finicky.
The mane problem is centering on the 1 body part isn't the most entertaining composition. The body part is extra large compared to other animals. Defishing deemphasizes that body part. Defish can emphasize the sky or the ground.
Those of us enamored with snapping the leash back were disappointed to find the paperclip getting destroyed by the snapping back. It has to be gently rewound. There's unlikely to be a better system than the paperclip. Maybe there can be a backup paperclip in case the mane one gets smashed. There could be a 2nd piece of string joining the missing bit, but it would be quite a mess.
Noted the upper bearing shedding a lot of PLA so another random idea was to add a washer. That instantly got it to drive a lot straighter. It still isn't perfect, but it was an amazing improvement for a washer. It might even be able to handle the neighbor's landscaping. The next step might be to try a smaller washer & silicone grease.
The washer wasn't expected to make any difference in tracking because it still has to rub against the big old pot in the lower bearing. What might have degraded tracking were the large horizontal surfaces being pressed together in the upper bearing. The lower bearing has just enough clearance to avoid rubbing, but it might use another .5mm.
Finally, the most life altering improvement was using a paperclip for farstening it to the animal. That eliminated the waist strap & made it really easy to farsten to clothing. Just clip & unclip to feed the lion.
It's believed integral feedback would further improve tracking. The mane problem an integral would overcome is the offset between the leash pot & the servo. This would entail moving the feedback to a full PID controller.
The lion kingdom continually searches for a more compact retractable string, but this may be the only thing strong enough to forcibly overpower a steering failure.
By meal 3, the lion didn't drop any food while driving. The oscillation still seems to be from friction in the steering. Steering gain might have to be lower. Meal 2 confirmed it was impossible to pour the food while holding the leash without the robot speeding up & getting ahead. Meal 3 was the 1st with the waist strap.
It might be a pain in the mane to put on, but having 2 free paws while driving is a game changer. An animal could probably leave the waist strap assembed & step into it rather than threading the cord lock. You can't feel the robot when using the waist strap. It provides more confidence than pulling by paw. Lions are prone to move their paws in unpredictable ways.
If it drives ahead of the lion, the steering deflects erratically & it goes out of control. This is the 1 kaboom case. It could happen going downhill. There's some braking, but not enough to stop it from rolling down a hill. It could happen in a case where the retraction broke & all of the leash extended. Maybe another animal could run into the leash & pull it out.
Being on the subject of leashes, what most animals use are these folding wagons.
https://www.amazon.com/Sincely-Folding-Utility-Portable-Capacity/dp/B09HBJYKSX
As far as lions can tell, it doesn't have any steering or brakes. The handle is on a separate gimbal from the wheels. Forget about pulling it 20 miles. It's not paw free like the waist leash. It could form the basis of an off road robot.
Create an account to leave a comment. Already have an account? Log In.
Become a member to follow this project and never miss any updates