Search for Means to Detect Slope of Floor

Typically: "How do I... ", "How can I... " questions
Post Reply
Luis Nieto
Posts: 49
Joined: 26 Oct 2021, 01:35

Search for Means to Detect Slope of Floor

Post by Luis Nieto »

Hello!

Is there anyway in Coppeliasim to configure objects so that they can detect the angle of inclination of the floor they are over, like for instance a moving robot being able to detect how inclined the floor they are moving over is?

Thank you in advanced

fferri
Posts: 1216
Joined: 09 Sep 2013, 19:28

Re: Search for Means to Detect Slope of Floor

Post by fferri »

This:

Code: Select all

--lua
alpha,beta,gamma=unpack(sim.getObjectOrientation(objectHandle,floorHandle))
will give you all the three (Euler) angles of the first (objectHandle) object's orientation with respect to the second object (floorHandle).

Post Reply