The CoppeliaSim (V-REP) remote control API wrapper for C#, based on CoppeliaSim Legacy remote API.
- Download the DLL file from Releases. You can also build it from source code.
- Copy and paste DLL file into your runtime path, e.g.
$(ProjectDir)x64/Debug/
. - Add
using System.Runtime.InteropServices;
at the beginning of code, use[DllImport()]
attribute to import DLL functions. Example. - Write your own code. Example.
- Add
simRemoteApi.start()
into your CoppeliaSim Lua script. For example:
function sysCall_init()
simRemoteApi.start(3000) -- Start remote API server on port 3000
corout=coroutine.create(coroutineMain)
end
-- Some code here...
- Start simulation to enabling the remote API server.