Custom Viper SCM Demo (Terrain Issue)

66 views
Skip to first unread message

Vanessa Hernandez-Cruz

unread,
Jul 5, 2023, 11:17:56 AM7/5/23
to ProjectChrono
Hello, 

I am trying to add a .obj file as the terrain in the demo_ROBOT_Viper_SCM.cpp file that was downloaded along with Chrono. I have tried changing the "terrain.SetPlane..." line in the code; however, that does not change the terrain's orientation. I am attaching some screenshots that show part of my code (ObjFileTerrain), how the visualization first comes up (ViperChrono), and the visualization again after some time (ViperChrono2). I have not altered the original code in the .cpp file besides the terrain and adding a "driver->SetSteering(steering_des)" where steering_des is a double set to 10. Please let me know how I can correct the terrain's orientation. Thank you!
ObjFileTerrain.png
ViperChrono2.png
ViperChrono.png

Thomas LIANG

unread,
Jul 17, 2023, 12:55:41 AM7/17/23
to ProjectChrono
Hi,

You need to modify your obj such that the up axis is Y. 

Best,
Thomas

Reply all
Reply to author
Forward
0 new messages