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

moz4r

7 years 10 months ago

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

It can worky with virtualarduino too ?

 

Loaded perfectly Calamity !

 

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

GroG

7 years 10 months ago

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

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

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

7 years 10 months ago

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

dom14

7 years 10 months ago

OK perfect !

BUT:

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

i01.setMute(False) doesn't work

 

So update OK but the rest MUST be work.

I would still like to add my cart and pole to the vinMoov. Any hint with what I could start experimenting, e.g. first only adding a rotational pole at the base?

See in the code that you have 

    im.clearObject();
    im.addObject(0.0, 0.0, 0.0, 0.0, 0.0, -150.0, "base", 150.0, false);
    im.addObject("i01.torso.midStom", 150.0);
 
Is that a place where I will need the "pole" added? And I assume some other places will need entries too?

the_Z0MBiE

7 years ago

I am using MRL 1.0.2661 on a Windows 7 64-bit OS. The Virtual InMoov starts when I start the START_INMOOV.bat file. I am also able to move the 3D model around using the commands stated in the post, but when I use the sliders in the tabs for head, jaw, left arm etc. the corresponding parts do not move.

The FPS keeps fluctuating between 2-10 fps.

Thanks a lot for your help!