I had briefly touched on this in one of my other threads.... Anyway, I thought of a good idea (well, I think so anyway) for a plugin or new feature for the camera control... Click steer.... So what it would do is if you have a pan and tilt setup with the ezb4 camera you would be able to click on an area of the camera image the x and y servo would move to centre in on the area you clicked.... For example you click on the top left corner of your camera's image, the x and y servo would attempt to centre the camera on the top left corner of the image...
Also, you can use the same principal to steer the robot while it is moving forward... Click left on the camera image and the robot will steer proportionally to the left depending how far left in the image you clicked... And of course same for the right... So steering the robot using your mouse and camera image...
I could probably hack something up using the plugin Remote mouse... However that would mean I could never move the camera control or it would throw everything off...
Upgrade to ARC Pro
Get access to the latest features and updates with ARC Early Access edition. You'll have everything that's needed to unleash your robot's potential!
Wouldn't be too hard Give it a shot!
You would need to publish it as a new plugin if you wish to share it with others. Either way, it requires a unique guid, etc..
Thia is very similar to something I want to achieve, although more autonomous. I want to recognize an object. By a combination of pan/tilt and robot poaition adjustments drive towards it, adjusting the camera as I get closer so it is always centered in view. When the camera position indicates I have reached the object, execute an AutoPosition action to have an arm pick up the object.
I have been struggling with how to script this, and now think a plugin may be the way to go.
I do the first part of this with the camera controls. I have my InMoov robot look for an object, I use a red ball, by panning left and right. Once the object is centered , the robot moves toward the object and it keeps it centered, it stops moving when it can no longer see it. It would be easy then to have it reach out and take on object handed to it. I haven't tried to get it to pick up the object off of a table but it think it is doable. I can do it with my robotic arm. It will search for, say a red object, once it finds and centers it in the camera, it reaches out and picks it up.
That will get me started.
below is my code to do what is shown in the video
I didn't test it yet - because i don't have any robots at my house, believe it or not! Isn't that weird? The source code is published in the plugin if you want to see how i did it. It's pretty quick and simple.
Nice touch: Docking successful !
What kind of kit is that, is the docking included too ?
Charging circuit, did you built any electronic to manage the charging process ?
I'll give you a hint. There's a class called EZ_Builder.EZBManager.Ezbs.Movement
And in there is a .Forward() and .Right() etc....
That's how you make the robot execute its direction of the added movement panel.
Your get the hang of it. Most are based around C so some commands are easy to grasp. It's the switching between languages for long periods at a time that can get you confused for a bit. Heck even commenting can have a different syntex, -- // /* */.