Search found 59 matches

by RobAtLab
02 Jun 2018, 17:51
Forum: General questions
Topic: Increasing length of console log
Replies: 3
Views: 630

Re: Increasing length of console log

Set by my terminal application? Just to be clear I am talking here about the console at the bottom of V-REP which is printed to using print() not the one you get to if you use print=printToConsole. I couldn't do my printing to the linux terminal using print=printToConsole because the linux terminal ...
by RobAtLab
02 Jun 2018, 01:10
Forum: General questions
Topic: Making wheeled vehicles with kinematics and no dynamics?
Replies: 9
Views: 1085

Making wheeled vehicles with kinematics and no dynamics?

I've got a simulation of a modular robot which works very nicely alone. It contains many dynamic and responable components. The key things this robot does are to drive around, dock with other robots (using dummies with dynamic overlap constraints), and hinge in the middle to lift other robots up. Du...
by RobAtLab
02 Jun 2018, 00:42
Forum: General questions
Topic: Increasing length of console log
Replies: 3
Views: 630

Increasing length of console log

I've been doing some tests but found a few buggy effects in the code (internal lua scripts) that I've written as my controllers. I've resorted to inserting lots of print statements into my code to output it to the console, this way I can diagnose where bugs in my controller code lie. But I'm finding...
by RobAtLab
19 Apr 2018, 12:09
Forum: General questions
Topic: Sensing if a light sensor is within a cone of light
Replies: 16
Views: 2024

Re: Sensing if a light sensor is within a cone of light

Thanks for the tip, I changed the IlluminationList=sim.unpackTable(IlluminationList) line (line 7) in the initialisation function to IlluminationList={} . I no longer get error messages. And yet it now seems that nothing is being written to the datablock at all. despite what is done on lines 16, 17 ...
by RobAtLab
18 Apr 2018, 15:00
Forum: General questions
Topic: Finding the # number on a parent object
Replies: 2
Views: 522

Re: Finding the # number on a parent object

Thanks, I worked something out from these. Seems to be working perfectly.
by RobAtLab
18 Apr 2018, 14:30
Forum: General questions
Topic: Sensing if a light sensor is within a cone of light
Replies: 16
Views: 2024

Re: Sensing if a light sensor is within a cone of light

I've attached a simplified file where one can move the object called "Robot" into and out of the cone cast by the proximity sensor "IR_light_cone". Depending on whether the dummy "Robot_phototransistorOne" is inside the cone or not differing messages should be printed by the object "Robot". However ...
by RobAtLab
18 Apr 2018, 12:20
Forum: General questions
Topic: Sensing if a light sensor is within a cone of light
Replies: 16
Views: 2024

Re: Sensing if a light sensor is within a cone of light

I'm using it in the context you described in post #2 or post #6. I'll make a simplified version of the .ttt file and try to upload it here so you can see the full context and error messages.

Thanks
by RobAtLab
17 Apr 2018, 18:06
Forum: General questions
Topic: Sensing if a light sensor is within a cone of light
Replies: 16
Views: 2024

Re: Sensing if a light sensor is within a cone of light

Ok, thanks for this but I seem to be having trouble with the packing and unpacking of data into tables. I had those troubles earlier with the code in your post #2 however I was able to avoid needing to use tables at that stage, as shown in my post #5. However to work with multiple cones of light as ...
by RobAtLab
17 Apr 2018, 17:34
Forum: General questions
Topic: Finding the # number on a parent object
Replies: 2
Views: 522

Finding the # number on a parent object

Ok, so I've got a child script running on an object fairly low in the hierachy of a model. I want this child script to be able to find out what the name of the highest level parent it has is, that is to say the name rather than the identifying object number. Then I want to find out what the # number...
by RobAtLab
12 Apr 2018, 15:42
Forum: General questions
Topic: Sensing if a light sensor is within a cone of light
Replies: 16
Views: 2024

Re: Sensing if a light sensor is within a cone of light

So if I have multiple proximity cones writing to the same datablock on a dummy object then they won't overwrite? If I wrote a child script for an algorithm to pick which cone or ignore detection when the dummy is detected by mul;tiple cones, what object would the child script need to be associated w...