Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
H3D.org Feeds

Forum Index


Board index » All Posts (Markus)




Re: Capture force exerted by user
#1
Webmaster
Webmaster


Hello,

Exactly what do you mean with "the force the user exerts"? I assume this is not the same force as the force that is rendered on the haptics device. If that is what you want then the DeviceLog class might be useful to you.

If you set it up so that you only have passive forces which reacts to the users input then you could probably fake a direct mapping. Such as using a SpringEffect to measure the force the user inputs. You still would have to account for things like gravity perhaps to get a better measurement though.

Posted on: 10/12 9:44
Top


Re: H3D Programmers! Introduce yourself
#2
Webmaster
Webmaster


Much welcome to the forum.

Posted on: 8/9 7:39
Top


Re: Remove a node from python
#3
Webmaster
Webmaster


Hello,

If you have a reference to the group node in python and that reference is named g then simply do:
g.children.clear()

Posted on: 8/9 7:38
Top


Privacy Policy
#4
Webmaster
Webmaster


Dear Forum users,

We are updating our Privacy Policy for you to understand what information we collect and why we collect it.

If you have added your Real Name to your profile on the H3DAPI.org website, please be aware that we have removed it. If you add it back into your profile, it means that you consent to it being shared with other users on the website. Please see the link to our privacy policy below for how your personal data that you may enter will be used. You can also find this policy on our website at: http://www.h3dapi.org/modules/gdpr/privacy_policy.php.

If you have any questions or concerns about this privacy policy, please don’t hesitate to contact us at support@sensegraphics.com.

Posted on: 5/24 14:56
Top


Re: Running H3D window on second screen
#5
Webmaster
Webmaster


In H3DViewer it is implemented in H3DViewerApp.cpp in the
MyApp::OnInit function.

Also double check H3DLoad command lines so I am not completely out of the blue, but I can't find anything in the code regarding this.

Posted on: 5/24 7:42
Top


Re: Running H3D window on second screen
#6
Webmaster
Webmaster


We have a task in our backlog (not the public one) about unifying the command line options for H3DLoad/H3DViewer.
For H3DViewer you can set the position/size (at least if you build the latest trunk).
For H3DLoad I am afraid it looks like only size can be set. If you are not opposed to modifying this yourself you could just add a similar option to your H3DLoad as the one that is in H3DViewer.

Posted on: 5/22 9:09
Top


Re: RuntimeError: UnableToCreatePythonField: fieldAsPythonObject()
#7
Webmaster
Webmaster


It looks like you are mixing concepts a bit.

traverseSG is using the update function of the class Trial which kind of looks like an class that should inherit from the field types in H3DInterface and should be using the routing system.

Whichever system you are using ( traverseSG or the other setup with fields and routes) does not really matter but it was a bit confusing to me at first.

If this code is correct, then the first time traverseSG will be called the cylinder will change to the new color. Which color are you actually seeing when you start the program (maybe it changes so fast that you do not notice).

And finally, this really looks like some kind of recursive issue.
If your x3d file is called Trials.x3d then you can see that it includes the python script file Trials.py which then loads Trials.x3d which then loads Trials.py and I really do not know what to expect in this case (the module should only load once, but it is still quite weird).
You can either use the references field to give the node you are interested in to python or use getNamedNode() function in python.

Posted on: 5/14 9:10
Top


Re: How can I update SmoothSurface stiffness with python?
#8
Webmaster
Webmaster


UpdateStiffness is a wrapper name. Look at the base class for this particular field and you can see that it inherits from SFFloat. The field itself is inputOutput so you can treat it as an SFFloat field just fine.

The purpose of this particular field is to properly transfer the value it is set to into the haptic loop at some point.

Posted on: 5/2 8:15
Top


Re: HDEV proxyPosition not generating events
#9
Webmaster
Webmaster


Sounds like you might have already figured out the reason.

Due to lazy evaluation the update function will only be run if getValue is done on the field somewhere in the chain. Such as being done directly on the field or if it is routed to a field which someone is trying to get the value of. If you use the decorators AutoUpdate or PeriodicUpdate you have a different behaviour though as you have noticed. For most cases I would recommend PeriodicUpdate over AutoUpdate but it does depend a bit on what the field is supposed to be used for.

Posted on: 5/2 8:12
Top


Re: getValueByIndex() not compatible with MFVec3f ?
#10
Webmaster
Webmaster


You nailed it. It is about the documentation.

There are two sets of class documenation for H3D. One for C++ and one for the python level.

Please refer to this one for python for 2.3 release:
http://www.h3dapi.org/uploads/api/H3D ... b/doc/html/annotated.html


Or this one if you use trunk:
http://www.h3dapi.org/uploads/api/Tru ... I/lib/doc/html/index.html

If I remember correctly there is no version for it in python. You have to do yourfield.getValue()[your_index]

Posted on: 4/20 10:23
Top



TopTop
(1) 2 3 4 ... 249 »






(C) 2012 SenseGraphics AB    ---    Powered by XOOPS