Failed to open the shared memory "/LocalVREP_REMOTE_API00001"
-
- Posts: 10
- Joined: 09 Jan 2018, 17:14
Failed to open the shared memory "/LocalVREP_REMOTE_API00001"
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"
Hello,
which platform are you running on?
Cheers
which platform are you running on?
Cheers
-
- Posts: 10
- Joined: 09 Jan 2018, 17:14
Re: Failed to open the shared memory "/LocalVREP_REMOTE_API00001"
Linux - Ubuntu 17.10
Trying to connect Java client through shared memory to V-REP
Trying to connect Java client through shared memory to V-REP
Re: Failed to open the shared memory "/LocalVREP_REMOTE_API00001"
Please try following:
Cheers
- in programming/remoteApiBindings/Java/Java/simpleTest.java, replace 19999 with 19997 on line 23
- Launch V-REP, and then run simpleTest.java.
- 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.
Cheers
-
- Posts: 10
- Joined: 09 Jan 2018, 17:14
Re: Failed to open the shared memory "/LocalVREP_REMOTE_API00001"
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
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
-
- Posts: 10
- Joined: 09 Jan 2018, 17:14
Re: Failed to open the shared memory "/LocalVREP_REMOTE_API00001"
it worked! Thanks!!