vehicle demo steering, raycasting, and video streaming

Physics APIs, Physics file formats, Maya, Max, XSI, Cinema 4D, Lightwave, Blender, thinkingParticles™ and other simulation tools, exporters and importers
Post Reply
v48h
Posts: 3
Joined: Tue Jan 09, 2007 3:07 am

vehicle demo steering, raycasting, and video streaming

Post by v48h »

Hello,

I am considering using bullet / blender game engine as a simulator for a small robotics project. However I am running into a few problems that need to be resolved before continuing...

I tried converting the raycast vehicle to a wheelchair and was pretty impressed with how well it worked except for one thing... it can't make zero radius turns. Even if I modify the back wheels to turn or set opposing motor forces on opposing wheels, it still has trouble doing this... Is there any way to get around this?


http://www.geocities.com/v48h/wheelchair5.zip


I initially tried building the wheelchair out of the 4x4 demo but had a hard time keeping it as stable as the raycast vehicle.

Also I had a question about raycasting... if possible I'd like to get depth information using a python script. The reason is that I'd like to make a SICK laser sensor (180 lasers spaced 1 degree apart) and the best way I could figure out how to do this is to make 180 empties with ray sensors attached to them... needless to say this is a little time consuming to figure out the order they are connected in the logic editor! Is there any way to just set the position / orientation of a ray and measure the depth using a python script?

Another, perhaps unrelated but interesting question is video streaming in Blender. I'd like to create a camera sensor that could be used in the game engine to feed camera data to an outside program. The best (vaguely planned out) way I have figured out how to do this so far is to use glReadPixels() to read data from and stream it over TCP or through shared memory... if there are any OpenGL gurus out there I'd like to figure out how to do this.

Thanks in advance!
Chris
v48h
Posts: 3
Joined: Tue Jan 09, 2007 3:07 am

Post by v48h »

Ok I think I know how to do the ray casting now almost. Is there any way to import the KX_RaySensor class into a script? I'm not sure if I am able to import anything other than GameLogic and PhysicsConstraints.

Thanks,
Chris
zjl19870808
Posts: 21
Joined: Tue Nov 03, 2009 8:33 am

Re: vehicle demo steering, raycasting, and video streaming

Post by zjl19870808 »

Hi, I am doing something similar to yours.I want to download your wheelchair5.zip, but I failed, so could you give it to me by sending an emai? Thank you very much! And I think we will communicate more with each other in the later time.
My email is : zjl19870808@163.com
Jet
Post Reply