logo logo
Home arrow Forums...
Monday, 21 May 2012
 
 
 
Conscious-Robots.com Forum  


Raúl
Moderator

Moderator
Posts: 591
graph
Karma: 10  
Problem loading a terrain - 2009/11/20 19:51 Received by email:

Hello Raul,
I am working on robotics studio.I am doing a simulation for path planning for a
autonomous mars rover.I have successfully created a robot and the ground in MRDS. I
am facing a problem in loading a terrain. It will be really great if you could
suggest me something.
Code
HeightFieldEntity ground = new HeightFieldEntity(
"Ground", // name
"earth.bmp", // texture image
new MaterialProperties("ground",
0.2f, // restitution
0.5f, // dynamic friction
0.5f) // static friction
);
SimulationEngine.GlobalInstancePort.Insert(ground);

till this it works fine.

TerrainEntity terrain = new TerrainEntity(
"terrain.bmp", "terrain_tex.jpg", new
MaterialProperties("terrain", 0.2f, 0.5f, 0.5f));

SimulationEngine.GlobalInstancePort.Insert(terrain);


Post edited by: Raúl, at: 2009/11/20 19:51
Raúl Arrabales Moreno. conscious-robots.com/raul
  The administrator has disabled public write access. Please, register to participate in the forum.
Raúl
Moderator

Moderator
Posts: 591
graph
Karma: 10  
Re:Problem loading a terrain - 2009/11/20 19:57 Hi, the code you're using for creating the terrain looks good. Actually I tested it and works ok for me in MRDS 2008 R2.
If you want to use the terrain you don't need to load the ground first. The terrain will be your ground as well.

Do you still get any error message after commenting out the ground entity?

Cheers,
Raúl.
Raúl Arrabales Moreno. conscious-robots.com/raul
  The administrator has disabled public write access. Please, register to participate in the forum.





Lost Password?
No account yet? Register
 Conscious Robots RSS FeedConscious Robots RSS Feed

Find us on Facebook

Follow us on TwitterFollow us on twitter
Spotlight

Machine Consciousness Bibliography Database

 

ConsScale
The Cognitive Machine Consciousness Scale

 
Last Posts in Forum
 
CR
miel continental