change resolution of camera

Hi, I have a robot like the one shown at
http://www.cs.utexas.edu/users/jmugan/DevelopmentalAgent/

I would like to get the view of the table from the robot's perspective buy putting the main camera where the robots eyes would be. But when I do this the robot can only see a very small part of the table, presumably because the camera is too close to the table.

Is there a way to widen the viewing area at the possible cost of resolution?

I tried using a Camera object but it doesn't seem to go wide enough.

Thanks,
Jonathan

In Swarm Demo, Cam Code.

location /= | birds |.

topDiff = 0.0.

foreach item in birds: {
if topDiff < |location - (item get-location) |:
topDiff = | location - (item get-location) |.
}

# we'll try to keep the camera aimed at the center of the
# flock, and zoom in and out depending on how spread out the
# flock is. it's doesn't work very well :).

self aim-camera at location.
self zoom-camera to (.5 * topDiff) + 10.

1) location /= | birds |. general surface normal for the flock in your case center= (robot get-location /= |robot get-location|)

2) distance vector from the robot's tangent plane facing or parallel to the table, view-dist = | center - table get-location |

3) center camera on robot, aim-camera at center (of robot).

4) self(control) zoom-camera to (center - view-dist). That should be a negative offset distance of the robot view to the table.

5) Completely based on interpretation of Jon's code, with a bit of modification. Hope this helps.

How is your robot lining up its pool shoots? The tail end of the trained robot looks sharp, it's good you made it simple. In the past tried attaching a spring to an invisible object to pull the robot to its destination for training. With three dimensions and five total degrees of freedom for the combined servos, things got way off course fast. I may give it another go if time permits.

"Undue haste is waste." — US Marine Corps

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.