Scolring - Forum

Entraides et échanges autour de la technologie Scol - Informations and exchanges on the Scol technology

Vous pouvez changer la langue de l'interface une fois inscrit - You can change the language once registered

You are not logged in.

#1 22-Jul-2017 07:07:46

paul.ichim
Member
Registered: 2-Jun-2017
Posts: 5

Orientation sensor components

Hi
A newbie question here, how can one get the components (yaw, pitch and roll) from the orientation sensor plugit?


I'm trying to get a spirit level application on android that is zeroed on touch.

Many thanks,
Paul

Offline

#2 22-Jul-2017 09:28:14

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: Orientation sensor components

Hello and welcome!

orientation sensor plugit have a "orientation" event that gives x y z rotation in degree.
to get yaw pitch roll then use $1, $2, or $3 value the the link parameter.
Yaw Pitch Roll correspond to $2 $1 $3.

If you mean relative values on rotation you can add a ticket on redmine.scolring.org, I'll try to add this in the plugit before the release next week

Offline

#3 23-Jul-2017 12:00:46

Funshock
Member
From: India
Registered: 8-Jan-2016
Posts: 167
Website

Re: Orientation sensor components

arkeon wrote:

If you mean relative values on rotation you can add a ticket on redmine.scolring.org, I'll try to add this in the plugit before the release next week


Any hint on next release new features.

Offline

#4 24-Jul-2017 05:48:26

paul.ichim
Member
Registered: 2-Jun-2017
Posts: 5

Re: Orientation sensor components

Hi Arkeon,

Thanks for this; however I have difficulties isolating YPR in separate variables.
Basically for the app there is a cube that shows the orientation of the device that zero on touch. To zero I need to read the orientation of the device and then orient the cube with the realtime value of the orientation of the device minus the orientation recorded on touch.

I have done something similar in Unity but its read of the orientation is unstable, I have found that OS3D is far more replicable.

Any thoughts or advice on how I can do this?

Cheers,
Paul

Offline

#5 24-Jul-2017 08:45:46

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: Orientation sensor components

Hello I can add a feature to allow this.
a simple action "set zero" for example

Offline

#6 24-Jul-2017 09:52:37

paul.ichim
Member
Registered: 2-Jun-2017
Posts: 5

Re: Orientation sensor components

That would be great smile Merci beaucoup
I assume there's no workaround at the moment?

Offline

#7 24-Jul-2017 10:15:27

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: Orientation sensor components

Well yes you can use the var or vector plugIT to keep the current value and then add the current sensor orientation to this value with vector add or operator plugIT.

But it will be more simple if the plugit manage it directly.
Just wait some days and the release should be out with this feature.

Offline

#8 24-Jul-2017 11:27:55

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: Orientation sensor components

Offline

#9 24-Jul-2017 11:38:54

paul.ichim
Member
Registered: 2-Jun-2017
Posts: 5

Re: Orientation sensor components

That looks impressive!!
I'm working on a AR for dental use, I'm using Epson BT300 smartglasses and need to link them to a series of peripherals and sensors using bluetooth (preferrable) or wifi.
Not having a coding background, after a short affair with Unity I have found OS3D easier to use and intuitive for non-programmer.
Looking forward to seeing the update smile

Offline

#10 24-Jul-2017 13:34:48

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: Orientation sensor components

Happy to hear that smile

BT300 are Android smart glasses ?
Actually only one serial bluetooth device can be used at a time (arduino or whatever)

Offline

#11 25-Jul-2017 10:27:28

paul.ichim
Member
Registered: 2-Jun-2017
Posts: 5

Re: Orientation sensor components

yes, it's running a customised android 5.1 on an Intel atom cpu. One device connection  should suffice at the moment.
they're pretty cool, light and the marker tracking done with OS3D seems to be working fine from what I could figure out.
On a different note, is it possible for OS3D to access other sensors on the Android device separately, such as gyro or accelerometer?
Gyro would be good for head gestures to control the content on the glasses, e. g. scrolling through menus etc.

Offline

#12 25-Jul-2017 10:59:59

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: Orientation sensor components

Hello,

yes accelerometer, have a plugit too.
What you should try is to use FPS navigation plugIT with orientation sensor.
then link orientation sensor.control -> fps navigation.control

and that's it the camera moves with the head just like google cardboard

Offline

#13 25-Jul-2017 12:16:00

shahbiz8
Member
From: Malaysia
Registered: 25-Feb-2016
Posts: 340

Re: Orientation sensor components

Hello Arkeon,

I look at history.txt that "AR marker" plugIT is updated.
Can I know what improvements that you make?
thanks

Offline

#14 25-Jul-2017 12:54:48

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: Orientation sensor components

Just added a translation event on this one

Offline

Board footer

Powered by FluxBB