Driving a Forklift in VR mode

Driving a Forklift in VR mode

sri_vikas_k
Not applicable
33 Views
25 Replies
Message 1 of 26

Driving a Forklift in VR mode

sri_vikas_k
Not applicable

[ FlexSim 23.0.1 ]

Hi @Phil BoBo

I have watched a video in YouTube, Where the Transporter is being driven in VR mode. Can I get a demo model of it.

Please watch the link below for detailing.

https://youtu.be/_xhFXM29nIA

0 Likes
Accepted solutions (1)
34 Views
25 Replies
Replies (25)
Message 2 of 26

ralf_gruber
Collaborator
Collaborator

This model has been built by @Felix Möhlmann in Germany. But he cannot see this post because of you setting it to private.

0 Likes
Message 3 of 26

sri_vikas_k
Not applicable
Hi @Felix Möhlmann
Could you please send me the demo model.
0 Likes
Message 4 of 26

moehlmann_fe
Observer
Observer
Accepted solution

Hi,

we are currently working on updating the model to work with version 23.0 and still need to test some things and update the documentation.

For now I can attach the original model build in version 20.0. I will update the post once the new version is finished.

VR_Forklift_ProSim.zip

Message 5 of 26

sri_vikas_k
Not applicable

Thanks for the response @Felix Möhlmann

0 Likes
Message 6 of 26

moehlmann_fe
Observer
Observer

Here is the updated model for the 23.0 version. Instead of replacing the "defaultview" file, you now have to place a module folder inside the respective folder in the installation directory (which will then replace the code which was previously done by the "defaultview" file).

VR_Forklift_23_0.zip

0 Likes
Message 7 of 26

sri_vikas_k
Not applicable
0 Likes
Message 8 of 26

sri_vikas_k
Not applicable
Hi @Felix Möhlmann

When I check the model in Vive Pro I am not able to make interaction with the pommels.

0 Likes
Message 9 of 26

moehlmann_fe
Observer
Observer

I don't know why this would be the case. According to the command documentation I would suspect that the grip-trigger should return either 0 or 1 and thus fulfill the conditions in the code that are set to >= 0.5 and < 0.5 for the analog input of the Rift.

capture1.png

Maybe try printing the stick() output to the console to check if the button presses are actually registered.

0 Likes
Message 10 of 26

philboboADSK
Autodesk
Autodesk

Make sure you are pushing the grip button and not the trigger button:

1681825802064.png

This model uses the grip button for interacting with the levers.

About the VIVE controllers



Phil BoBo
Sr. Manager, Software Development
Message 11 of 26

sri_vikas_k
Not applicable
Hi @Felix Möhlmann

Hope you are doing good.

You suggested to print the stick() output to console to check if the buttom presses are actually registered. How to do this?

I have been checking with grip trigger button only as @Phil BoBo said.

0 Likes
Message 12 of 26

jason_lightfootVL7B4
Autodesk
Autodesk

Run this to edit the code for the open perspective view:

applicationcommand("codeeditor", views().find("active>Documents/Perspective/1+/~>eventfunctions/TouchInput"));
0 Likes
Message 13 of 26

sri_vikas_k
Not applicable

Hi @Felix Möhlmann and @Jason Lightfoot

When I run the code touch input code window popped up.

2023-05-23.png

In that window there is no grip STICK_VR_GRIP_TRIGGER was not registered.

Did I observe correct?

0 Likes
Message 14 of 26

jason_lightfootVL7B4
Autodesk
Autodesk

Sorry - I pointed you to the usual touch input location.

You can add something similar to the following script to the user commands

  • ModelOnPreDraw,
  • getHandCollisionSphere
  • getHandGripPosition
#define LEFT 0
#define RIGHT 1
print(stick(RIGHT, STICK_VR_GRIP_TRIGGER));
0 Likes
Message 15 of 26

sri_vikas_k
Not applicable

@Jason Lightfoot

I have added those lines to the following user commands:

1. ModelOnPreDraw

2. getHandCollisionSphere

3. getHandGripPosition

Though I was not able to make interaction with the model..

0 Likes
Message 16 of 26

jason_lightfootVL7B4
Autodesk
Autodesk

What grip trigger values are you getting?

0 Likes
Message 17 of 26

sri_vikas_k
Not applicable

When I debug it, it is showing like this for me!

1686037447720.png

0 Likes
Message 18 of 26

jason_lightfootVL7B4
Autodesk
Autodesk

The idea behind the print statement was to press the grip and look at the output console to see what values are being registered.

0 Likes
Message 19 of 26

moehlmann_fe
Observer
Observer

In order to see the valuse of print() you have to open the output console. Then press some buttons on the controllers and see if any output appears.

1686039976307.png

Message 20 of 26

sri_vikas_k
Not applicable

Hi @Felix Möhlmann & @Jason Lightfoot

I tried printing the values on Output console, it is coming like this from me!

1686137192301.png

I have added those lines to the following codes,

1. ModelOnPreDraw

2. getHandCollisionSphere

3. getHandGripPosition

and interacted the controllers with the stick and no value came in the output console.

0 Likes