Search found 12 matches

by Nathan Timmers
Thu Mar 19, 2020 4:35 am
Forum: SCONE
Topic: About ScriptController parameter model
Replies: 2
Views: 322

Re: About ScriptController parameter model

If I am correct you can find the actuator just by using the actuated dof's name, thus: target_actuator = model:find_actuator("ankle_r") Another way to check which actuators are present, you can loop over the actuators in a lua script and display the names scone.debug("\nActuators:") for i = 1, model...
by Nathan Timmers
Wed Mar 04, 2020 12:39 am
Forum: SCONE
Topic: flat fitness when loading lua module
Replies: 6
Views: 996

Re: flat fitness when loading lua module

nice! :D
by Nathan Timmers
Tue Mar 03, 2020 8:50 am
Forum: SCONE
Topic: Access leg state in Lua
Replies: 5
Views: 970

Re: Access leg state in Lua

I was thinking more in terms of separate ScriptControllers during different phases of the gait. Do they also not have any access to each other's data? I am not sure whether I really need it, but just out of curiosity so that I know what is possible.
by Nathan Timmers
Tue Mar 03, 2020 8:48 am
Forum: SCONE
Topic: Optimization variables
Replies: 2
Views: 409

Re: Optimization variables

Thanks for the explanation!
by Nathan Timmers
Tue Mar 03, 2020 3:44 am
Forum: SCONE
Topic: Optimization variables
Replies: 2
Views: 409

Optimization variables

Hi, I was wondering how the optimization variables definition works exactly. I extracted this, as an example, from the ControllerGH2010: MuscleReflex { target = iliopsoas source = hamstrings delay = 0.005 KL = ~-4.0<-10,10> L0 = ~0.85<0,2> From the Standing High Jump tutorial I got that the optimiza...
by Nathan Timmers
Tue Mar 03, 2020 12:58 am
Forum: SCONE
Topic: Access leg state in Lua
Replies: 5
Views: 970

Re: Access leg state in Lua

Computing my own state is indeed what I did first and that works great, but I thought that it would be nice if it could be accessed. Making the controller part of the GaitStateController is a nice way of implementing as well. Just one thing I was wandering, are the global variables declared in that ...
by Nathan Timmers
Mon Mar 02, 2020 4:12 am
Forum: SCONE
Topic: Access leg state in Lua
Replies: 5
Views: 970

Access leg state in Lua

Hi Thomas,

I was wondering if it is possible to access the leg state in Lua, because the leg is not a body that you can access.
The reason of asking is that I want a specific part of my code to work only during certain phases of the gait.

Kind regards,
Nathan
by Nathan Timmers
Thu Feb 27, 2020 4:42 am
Forum: SCONE
Topic: SCONE crashes when using LuaDof:is_actuated()
Replies: 2
Views: 478

SCONE crashes when using LuaDof:is_actuated()

It seems that there is a bug with the is_actuated method(). SCONE crashes when trying to check if a DOF is actuated through the is_actuated() method Scone file: CmaOptimizer { signature_prefix = DATE_TIME SimulationObjective { max_duration = 20 # Model used in simulation OpenSimModel { model_file = ...
by Nathan Timmers
Wed Feb 19, 2020 6:47 am
Forum: SCONE
Topic: PerturbationController
Replies: 2
Views: 604

Re: PerturbationController

Hi Niels,

If you use the tutorial files provided through the installation then it should work straight away. At least with me it did, and it should.

Kind regards,
Nathan
by Nathan Timmers
Fri Feb 14, 2020 3:07 am
Forum: SCONE
Topic: flat fitness when loading lua module
Replies: 6
Views: 996

Re: flat fitness when loading lua module

I tried adding the absolute path of the 'require' files using a solution found on the internet: package.path = package.path .. ";<... absolute path ....>/data/lua_files/?.lua;" which solved the issue of flat fitness. However, this approach seems to mess with the optimizer as well, since the model no...