Search found 17 matches

by lpitonakova
30 Jan 2018, 11:57
Forum: General questions
Topic: Streaming video camera
Replies: 14
Views: 3282

Re: Streaming video camera

Yes, sorry to be confusing. You are right - there is the Server, which is one V-REP simulation (also a plugin runs there) and there is Renderer, which is another V-REP instance (with the plugin I have problems with). The point of having it split up is that the Renderer plugin demonstrates the Remote...
by lpitonakova
29 Jan 2018, 19:36
Forum: General questions
Topic: Streaming video camera
Replies: 14
Views: 3282

Re: Streaming video camera

Hi, the code is essentially the same as is provided in the first reply in this thread. It's spread across classes so it's difficult to show but this is roughly how it goes: [MainRendererClass] logger->Log("Getting image data..."); simUChar* imageData = CameraControl::Instance()->GetRemoteVisionSenso...
by lpitonakova
29 Jan 2018, 18:35
Forum: General questions
Topic: Using simxGetObjectGroupData to obtain object names
Replies: 3
Views: 838

Re: Using simxGetObjectGroupData to obtain object names

Thanks for your answer, it definitely got me on the right track! However, the offset always increased by the same amount, which was the length of the 1st returned string. The following code worked correctly for me though: int offset=0; for (int i=0;i<namesHandlesCount;i++) { std::string name = names...
by lpitonakova
16 Jan 2018, 20:04
Forum: General questions
Topic: Streaming video camera
Replies: 14
Views: 3282

Re: Streaming video camera

Hi, I am using the method of streaming described in this thread (slightly altered) but I see some strange behaviour. The first 15-20 seconds stream just fine, but then the streaming image freezes or is very slow, while the simulation instance is running fine. I am using localhost, so network speed i...
by lpitonakova
15 Jan 2018, 18:32
Forum: General questions
Topic: How to get handles of object subcomponents when multiple object copies exist
Replies: 3
Views: 1129

Re: How to get handles of object subcomponents when multiple object copies exist

Thanks. I think I found a slighly more general solution, where only a single script has to exist in the whole scene, with a function that can be called via simxCallScriptFunction: -- -- Returns handle of an object that is named like inStrings and is a child of inInts[1] -- where inInts[1] is a handl...
by lpitonakova
09 Jan 2018, 17:34
Forum: General questions
Topic: How to get handles of object subcomponents when multiple object copies exist
Replies: 3
Views: 1129

How to get handles of object subcomponents when multiple object copies exist

I have a scene with multiple robots of the same type. In the robot model, there are two joints: leftMotor and rightMotor. When I paste the robot into the scene, a myRobot instance is created that has leftMotor and rightMotor. However, when I paste another instance of the model in, myRobot#0 is creat...
by lpitonakova
09 Jan 2018, 17:18
Forum: General questions
Topic: Using simxGetObjectGroupData to obtain object names
Replies: 3
Views: 838

Using simxGetObjectGroupData to obtain object names

Hi, I am trying to obtain an array of object names via the RemoteAPI. What I am doing is this: int namesHandlesCount; int* namesObjectHandles; int dataCount; simxChar* namesStringData; if (simxGetObjectGroupData(serverId,sim_object_visionsensor_type,0,&namesHandlesCount,&namesObjectHandles,NULL,NULL...