viewing your virtual inMoov in 3d implemented in inMoov service

I add the possibility to view a virtual 3d InMoov from the inMoov service.

To view it, you have to add in your inMoov script

i01.startVinMoov()

and

i01.stopVinMoov()

to stop viewing it.

The 3d model should mimic what your real inMoov is doing.
The model probably still needs some adjustment but is looking good.
The fingers and eyes are not working yet

 

Add some control to move the view of the model

left mouse -> rotate clockwise

right mouse -> rotate counterclockwise

mouse wheel / key Q / Key E -> Zoom in/out

Key A / left arrow

Key D / right arrow

Key W / up arrow

key S / down arrow

will move the model around


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
moz4r's picture

Wahoo wahoo that's a great

Wahoo wahoo that's a great functionality and it seem simple to use it, thank for it !

It can worky with virtualarduino too ?

calamity's picture

I have not try it, but if

I have not try it, but if virtualArduino work the same for the servo as the real arduino, it will work

GroG's picture

Excited to try it Calamity !

Excited to try it Calamity !

calamity's picture

there was a problem with the

there was a problem with the repo files, I hope it's fixed now

GroG's picture

WAHOOO !

 

Loaded perfectly Calamity !

 

i01 = Runtime.start('i01','InMoov')
v1 = Runtime.start('v1', 'VirtualArduino')
v1.connect('COM91')
i01.startRightArm('COM91')
i01.startVinMoov()
GroG's picture

Started a VirtualArduino and

Started a VirtualArduino and started the right arm .. I can see data flying back and forth, but no movement .. 
Great start though !! - probably very close :D

calamity's picture

The jmeApp need to get feed

The jmeApp need to get feed with servoEvent to update the model position. I will have to verify if the virtual arduino properly output the servoEvent. I'm pretty sure it's related to that

calamity's picture

I fix virtualArduino so the

I fix virtualArduino so the 3d model can work with it

On the side note, the model expect to have a map setting for the servo as Gael use (0,180, min, max) or as I use (physical angle map to position of the servo to have those angle). The default setting of the inMoov services (setMinMax) don't seem to work properly. I will have to fix that

Sometime the model may start on a strange position, it's because it need to have a msg from the servo before it position properly. After a servo move, it will position at the right place

GroG's picture

FYI - I marked InMoov3DApp as

FYI - I marked InMoov3DApp as transient since gson goes into an infinite loop trying to serialize it

dom14's picture

OK perfect

OK perfect !

BUT:

i01.loadGestures('path') doesn't work

i01.setMute(False) doesn't work

 

So update OK but the rest MUST be work.

GroG's picture

Worky ! .. Look he want's to

Worky ! .. Look he want's to shake your hand for all your great work Calamity ! 

juerg's picture

really great - and so

really great - and so detailed! 

 

moz4r's picture

 I can't launch it anymore, I

 I can't launch it anymore, I have this error just after jmonkey init . I use a corei7 16gb computer to test . any idea ?

moz4r's picture

[forgot to edit previous post

[forgot to edit previous post : java64 vas the solution]

Do you think it is possible to ajust vinmoov speed, based on servos velocity ?

calamity's picture

Yes, the vinMoov can use the

Yes, the vinMoov can use the speed setting of the servo.

I have not test the velocity specifically on the virtualArduino, but it look to work fine.