Search found 68 matches

by RobAtLab
24 Aug 2019, 16:26
Forum: General questions
Topic: V-REP from command line, press the "hare" button
Replies: 5
Views: 1332

Re: V-REP from command line, press the "hare" button

Thanks, that sim.setInt32Parameter(sim.intparam_speedmodifier,x) tip is exactly what I needed.
by RobAtLab
21 Aug 2019, 20:33
Forum: General questions
Topic: V-REP from command line, press the "hare" button
Replies: 5
Views: 1332

Re: V-REP from command line, press the "hare" button

The floatparam option isn't much help to me. I'm not looking to decrease the number of simulation ticks per second of sim time, I just want to do what the "hare" button does and only render a frame on a smaller fraction of those ticks.
by RobAtLab
14 Aug 2019, 17:17
Forum: General questions
Topic: V-REP from command line, press the "hare" button
Replies: 5
Views: 1332

V-REP from command line, press the "hare" button

On linux I can run V-REP from the command line using things like ../vrep.sh -g10 '/home/full/file/path/file.ttt' -s10000 -q to launch a sim which will run until 10 seconds of sim time has elapsed which quits V-REP when the sim ends, with a parameter of 10 fed in as first argument. But once running I...
by RobAtLab
07 Jun 2019, 22:12
Forum: General questions
Topic: How to enhance the speed of simulation
Replies: 2
Views: 472

Re: How to enhance the speed of simulation

Simulation itself can be made faster by using the simplified shapes to build up your physics engine enabled structures, avoiding meshes where possible and especially avoiding concave objects. You can use compounds of simple shapes to form your parts. If you disable any un-necessary proximity sensor ...
by RobAtLab
07 Jun 2019, 22:05
Forum: General questions
Topic: Learning joint dynamics
Replies: 6
Views: 795

Re: Learning joint dynamics

You can replace a joint object's callback script with something else, and you can then feed data to the joint object from another object by using something like a custom datablock. But I can't imagine why you would want to replace the simplicity of a deterministically commanded joint with a neural n...
by RobAtLab
06 Jun 2019, 20:24
Forum: General questions
Topic: Mixed controller, C and lua
Replies: 7
Views: 900

Re: Mixed controller, C and lua

That would let me call a C function from lua then, but when my C function is acting as the main part of a robot's controller code, and needs things like static variables which preserve across subsequent times the code is run, would I have problems? Does using this plugin method effectively start a w...
by RobAtLab
04 Jun 2019, 16:22
Forum: General questions
Topic: Mixed controller, C and lua
Replies: 7
Views: 900

Re: Mixed controller, C and lua

Thanks for the plugins tip, can you point me to a clear example where this method is used to allow a segment (the bit that handles the logic and "thinking") of a child script to use C while the rest (the bits of script dealing with reading sensors and writing to actuators and custom datablocks) uses...
by RobAtLab
04 Jun 2019, 01:36
Forum: General questions
Topic: Mixed controller, C and lua
Replies: 7
Views: 900

Re: Mixed controller, C and lua

When running the sims I don't want to run them on my actual robot and have it try to connect to a computer which has V-REP on it, the robot's hardware isn't too fast and wouldn't cope with this. Furthermore my work is with swarms of robots, so I need each to be able to run a V-REP child script of it...
by RobAtLab
01 Jun 2019, 20:45
Forum: General questions
Topic: Mixed controller, C and lua
Replies: 7
Views: 900

Mixed controller, C and lua

My real robots use C for their controllers. I write C code, compile it with gcc alongside a special h file full of my low level functions, then run it on the robot. In my V-REP sims I've built up some rather complex lua scripts to simulate things like sensor behaviour and actuator responses to comma...
by RobAtLab
10 Mar 2019, 01:08
Forum: General questions
Topic: Changing the speed of a "servo" from within child script
Replies: 6
Views: 1279

Re: Changing the speed of a "servo" from within child script

Thanks, all woking well now. Am passing data into the joint object via a custom datablock, I have set things up so the datablock gets set by the script of the robot's body during the actuation simulation step. Then in the simulation's sensing step the joint object reads the custom datablock and upda...