Search found 7079 matches

by coppelia
13 Mar 2013, 20:38
Forum: General questions
Topic: Beginner Question - Get Floor and Get Robot
Replies: 8
Views: 4163

Re: Beginner Question - Get Floor and Get Robot

If you want to embed your code of the real robot, then the easiest is simply to modify your code on the real robot so that it can communicate with V-REP (and control its virtual model in V-REP). The best for that is the remote API , or you can also use the ROS interface which is more complicated. To...
by coppelia
13 Mar 2013, 20:03
Forum: General questions
Topic: Drawing in Vrep
Replies: 14
Views: 7346

Re: Drawing in Vrep

You have many possibilities: By selecting a specific filter for your vision sensor , then attaching a child script to the vision sensor, to evaluate the filter result By having a plugin evaluate your vision sensor By having an external application/robot evaluate your vision sensor via the remote API...
by coppelia
13 Mar 2013, 19:05
Forum: General questions
Topic: Drawing in Vrep
Replies: 14
Views: 7346

Re: Drawing in Vrep

If you have your robot use a vision sensor, then you can recognize patterns, or react to bright/dark colors. If this is what you mean.

Cheers
by coppelia
13 Mar 2013, 18:50
Forum: General questions
Topic: Drawing in Vrep
Replies: 14
Views: 7346

Re: Drawing in Vrep

Hello,

I am having difficulties understanding what you mean... ;)
Could you reformulate?

Cheers
by coppelia
13 Mar 2013, 18:47
Forum: General questions
Topic: Beginner Question - Get Floor and Get Robot
Replies: 8
Views: 4163

Re: Beginner Question - Get Floor and Get Robot

Hello Giordano, No, you do not need to implement a plugin . That's just one possibility, but there are easier options, for instance with a child script . Have a look at this summary page . Try also to follow the tutorials . specially the first one . You mean a custom floor? Yes, of course. The floor...
by coppelia
13 Mar 2013, 13:40
Forum: General questions
Topic: Creating a matrix of cuboids issue
Replies: 17
Views: 6604

Re: Creating a matrix of cuboids issue

If you want to turn the visibility of an object on, try: simSetObjectInParameter (objectHandle,10,255) If you want to turn the visibility of an object off, try: simSetObjectInParameter(objectHandle,10,0) given that your visibility layers for the scene are in default state (first 8 on, last 8 off). ...
by coppelia
13 Mar 2013, 12:49
Forum: General questions
Topic: IMU Viz
Replies: 1
Views: 3130

Re: IMU Viz

Hello Roberto, Make sure you have a data stream of type "Various: user-defined" in your graph . Also, make sure your data stream is named "gyroX". Then, in a non-threaded child script : if (simGetScriptExecutionCount()==0) then graphHandle=simGetObjectHandle("imugraph") end s_gyroX = simGetIntegerSi...
by coppelia
12 Mar 2013, 22:11
Forum: General questions
Topic: Creating a matrix of cuboids issue
Replies: 17
Views: 6604

Re: Creating a matrix of cuboids issue

  • bit0 --> 1
  • bit1 --> 2
  • bit2 --> 4
  • bit3 --> 8
  • etc.
Cheers
by coppelia
12 Mar 2013, 20:53
Forum: General questions
Topic: Creating a matrix of cuboids issue
Replies: 17
Views: 6604

Re: Creating a matrix of cuboids issue

If your cuboids are dynamic objects (i.e. non-static), then they will fall. If you use simSetObjectPosition on them, it will reset them from the physics engine, move them to the desired position, then add them to the physics engine again (check the documentation). And they will fall. They won't fall...
by coppelia
12 Mar 2013, 20:45
Forum: Feature requests
Topic: Encoder parameters
Replies: 2
Views: 3821

Re: Encoder parameters

Hello, Well, this might already be a little bit too specific to integrate directly into V-REP. You can reach the same functionality very easily, without the need to write a plugin : just attach a child script to your joint , do your calculations and then publish the encoder value via various means: ...