Page 1 of 1

Failed to open the shared memory "/LocalVREP_REMOTE_API00001"

Posted: 16 Feb 2018, 01:50
by davicarnauba84
Can't communicate with VREP using shared memory. The connection fails when using a negative port.

Re: Failed to open the shared memory "/LocalVREP_REMOTE_API00001"

Posted: 16 Feb 2018, 03:07
by coppelia
Hello,

which platform are you running on?

Cheers

Re: Failed to open the shared memory "/LocalVREP_REMOTE_API00001"

Posted: 13 Mar 2018, 18:52
by davicarnauba84
Linux - Ubuntu 17.10
Trying to connect Java client through shared memory to V-REP

Re: Failed to open the shared memory "/LocalVREP_REMOTE_API00001"

Posted: 14 Mar 2018, 07:57
by coppelia
Please try following:
  • in programming/remoteApiBindings/Java/Java/simpleTest.java, replace 19999 with 19997 on line 23
  • Launch V-REP, and then run simpleTest.java.
Does above work? If yes, try following:
  • in programming/remoteApiBindings/Java/Java/simpleTest.java, replace 19997 with -3 on line 23
  • in V-REP-folder/remoteApiConnections.txt, replace 19997 with -3.
  • Launch V-REP, and then run simpleTest.java.
What about now?

Cheers

Re: Failed to open the shared memory "/LocalVREP_REMOTE_API00001"

Posted: 14 Mar 2018, 14:08
by davicarnauba84
not working...

output:
Mouse position x: 897
Mouse position x: 897
Mouse position x: 897
Mouse position x: 897
Mouse position x: 897
Mouse position x: 897
Mouse position x: 897
Mouse position x: 897
davi@davi-X550CA:~/V-REP_PRO_EDU_V3_5_0_Linux/programming/remoteApiBindings/java/java$ javac simpleTest.java
davi@davi-X550CA:~/V-REP_PRO_EDU_V3_5_0_Linux/programming/remoteApiBindings/java/java$ java -Djava.library.path=../lib/Linux/64Bit/ simpleTest
Program started
Connect (0): Failed to open the shared memory "/LocalVREP_REMOTE_API00003"
Failed connecting to remote API server
Program ended

Re: Failed to open the shared memory "/LocalVREP_REMOTE_API00001"

Posted: 14 Mar 2018, 15:14
by davicarnauba84
it worked! Thanks!!