Search found 51 matches

by RobAtLab
17 Apr 2018, 17:34
Forum: General questions
Topic: Finding the # number on a parent object
Replies: 2
Views: 419

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

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...
by RobAtLab
11 Apr 2018, 16:35
Forum: General questions
Topic: Sensing if a light sensor is within a cone of light
Replies: 16
Views: 1670

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

The solution you most recently proposed, if I had multiple sensor cones operating and the dummy found itself within their overlap what would happen? In the real world with the infrared system actually in use each emitter sends pulsed IR signals in a really brief time period, so a sensor sitting in t...
by RobAtLab
06 Apr 2018, 17:16
Forum: General questions
Topic: Sensing if a light sensor is within a cone of light
Replies: 16
Views: 1670

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

Thanks, with a tiny bit of code modification this is working great, but if I have multiple proximity sensor cones, each of which is doing this and each of which is deliberately writing a differently named (in your example the sensor names the custom data blocks as 'detected' ) custom data block to t...
by RobAtLab
05 Mar 2018, 15:50
Forum: General questions
Topic: Sensing if a light sensor is within a cone of light
Replies: 16
Views: 1670

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

Given those "getObjectsInTree" bits wouldn't this code only work if the dummy and the proximity cone are children of the same object, which in my case they definitely won't be? Also, how would the child script of the robot which carried the light sensor go about determining whether each one was seei...
by RobAtLab
03 Mar 2018, 22:11
Forum: General questions
Topic: Sensing if a light sensor is within a cone of light
Replies: 16
Views: 1670

Sensing if a light sensor is within a cone of light

In the real world I have an infrared LED in the base of a conical shield shinging out light into a conical "field of view" of a precise angle, and on another robot I have a number of IR light sensors each of which can detect whether it is illuminated (and hence somewhere within the geometric volume ...
by RobAtLab
20 Feb 2018, 16:47
Forum: General questions
Topic: Joint (acting as position control motor) only works at fast speeds
Replies: 4
Views: 726

Re: Joint (acting as position control motor) only works at fast speeds

Neither ODE, nor newton, nor other versions of the Bullet than 2.78 seemed to work very weel. I've yet to try downloading and installling vortex. But I've been playing aound with moments of inertia, I realise that earlier I'd only been fiddling with masses, and I seem to be having some success. Than...
by RobAtLab
19 Feb 2018, 13:11
Forum: General questions
Topic: Joint (acting as position control motor) only works at fast speeds
Replies: 4
Views: 726

Re: Joint (acting as position control motor) only works at fast speeds

Sorry, I don't think I quite understand your answer, I'm pretty new to V-REP. My issue seems to be something affecting any situation in which I try to have a series of modules connected and then want a joint in one of them, or an external force acting on one of them, to transmit forces through to th...
by RobAtLab
15 Feb 2018, 15:26
Forum: General questions
Topic: Joint (acting as position control motor) only works at fast speeds
Replies: 4
Views: 726

Joint (acting as position control motor) only works at fast speeds

I've got a robot weighing about 13kg in my simulation* using the bullet 2.78 physics engine and V-REP 3.5 latest version, which has a child object (amongst other child objects) of a joint with motor enabled and control loo-p enabled, I set this joint to have a max torque of around 8e4 Nm to give ple...
by RobAtLab
05 Feb 2018, 21:40
Forum: General questions
Topic: collision only with the floor
Replies: 3
Views: 1647

Re: collision only with the floor

I've just found myself in a similar situation to this. I have objects that need to be able to go through each other but must respond to the floor, ad I have far more thsn the mask method can handle. Should that contact callback script method still work for the latest V-REP versions? Are there any ot...