Search found 65 matches

by RobAtLab
07 Jun 2019, 22:12
Forum: General questions
Topic: How to enhance the speed of simulation
Replies: 2
Views: 319

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: 504

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: 615

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: 615

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: 615

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: 615

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: 1067

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...
by RobAtLab
10 Mar 2019, 01:03
Forum: Bug reports
Topic: Signal 11 error on linux Mint MATE 19
Replies: 4
Views: 1082

Re: Signal 11 error on linux Mint MATE 19

This seems fixed in version 3.6, the Ubuntu 18.04 edition. Downloaded a copy a few minute ago, first time I tried to do "./vrep.sh" I got a signal 11 error again, but there was a helpful print statement just beforehand advising me to run "sudo apt install libgl1-mesa-dev". I installed libgl1-mesa-de...
by RobAtLab
27 Feb 2019, 16:07
Forum: General questions
Topic: Changing the speed of a "servo" from within child script
Replies: 6
Views: 1067

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

Any more details on this, I can't see to find any clear tutorial telling me how to put a custom callback script onto a joint, even thought there is plenty of info about what the script should be like once it is there. Also, will using that script on the webpage, with thre addition of some sort of cu...
by RobAtLab
27 Feb 2019, 16:04
Forum: General questions
Topic: Making the floor "invisible" to proximity sensors
Replies: 1
Views: 451

Making the floor "invisible" to proximity sensors

Ok, so in the real world I have a robot with a reflection based IR sensor, the stronger the intensity of modulated pulsed IR that comes back is the closer and/or largr an obstacle is. In the real world this sees the floor as a base level of reflection and I can recognise objects by seeing values gre...