Search found 6261 matches

by coppelia
17 Jan 2018, 13:52
Forum: General questions
Topic: Slotting pin into hole only works when I scale up by 4
Replies: 1
Views: 5

Re: Slotting pin into hole only works when I scale up by 4

Hello, doing that kind of simulation is very tricky. It will depend on several factors (including on the physics engine you are using). But in the end, physics engines have difficulties and are slow when running with random-shaped rigid bodies. Best is to use approximations (e.g. the hole can be mod...
by coppelia
17 Jan 2018, 13:42
Forum: General questions
Topic: questions about the e-puck in v-rep
Replies: 1
Views: 5

Re: questions about the e-puck in v-rep

Hello, about your questions: 1. You'll have to select the proximity sensors in the scene hierarchy and adjust their display layer for instance. Or you can also set their other properties. 2. You can try to use a color filter and a blob detection filter. The blob detection filter will return the x/y ...
by coppelia
17 Jan 2018, 13:36
Forum: General questions
Topic: Can V-REP and Matlab be used to do automatically loop simulation?
Replies: 3
Views: 35

Re: Can V-REP and Matlab be used to do automatically loop simulation?

You mean that simxStartSimulation and/or simxStopSimulation does not work? Or does it work but the simulation content does not get back into its original state?
In the simulation settings, you can modify the Reset scene to initial state item.

Cheers
by coppelia
17 Jan 2018, 10:26
Forum: General questions
Topic: V-REP doesn't see outputs from ROS
Replies: 2
Views: 20

Re: V-REP doesn't see outputs from ROS

Hello,

it seems you are using the old ROS plugin for V-REP. Please use instead the newer and more flexible ROS interface.

Cheers
by coppelia
17 Jan 2018, 10:23
Forum: General questions
Topic: simxPackFloats in ROS
Replies: 1
Views: 3

Re: simxPackFloats in ROS

Hello,

have a look at the simxPackFloats function in the python remote API. But basically, in plain C we would have:

Code: Select all

float myFloats[]={1.222f, 2.0f, 3.55555555f, 0.0f, 0.0f, 4.0f};
char* packedFloats=(char*)myFloats;
Cheers
by coppelia
15 Jan 2018, 18:44
Forum: Bug reports
Topic: Depth Sensor Seeing Through Walls
Replies: 1
Views: 33

Re: Depth Sensor Seeing Through Walls

Hello,

this is not a bug. You can adjust the near clipping plane of your vision sensor.

Cheers
by coppelia
15 Jan 2018, 18:42
Forum: General questions
Topic: Specific objects in vision sensor
Replies: 6
Views: 792

Re: Specific objects in vision sensor

Hello, you will have to use a vision sensor with render mode: OpenGL, color coded handles . Then, you can read the image content of that vision sensor with simGetVisionSensorCharImage . Each pixel-triplet (RGB) codes the handle of the object it belongs to. If my memory serves me correctly, something...
by coppelia
15 Jan 2018, 18:37
Forum: General questions
Topic: Proximity Sensor
Replies: 1
Views: 18

Re: Proximity Sensor

Hello, did you have a look at the various demo scenes in order to try to figure out how a proximity sensor operates or is interfaced? For instance scenes proximitySensorDemo.ttt and proximitySensorDemo2.ttt . Also remember that a proximity sensor can only detect detectable objects that have their de...
by coppelia
15 Jan 2018, 18:34
Forum: General questions
Topic: simxLoadScene error
Replies: 2
Views: 21

Re: simxLoadScene error

Hello,

what is the integer returned by simxLoadScene? IF simulation is running, you won't be able to load a new scene.

Cheers