Skip to content

Control the robot in CoppeliaSim (V-REP) with C#

License

Notifications You must be signed in to change notification settings

ziteh/coppelia-sim-csharp-wrapper

Repository files navigation

CoppeliaSim C# Wrapper

The CoppeliaSim (V-REP) remote control API wrapper for C#, based on CoppeliaSim Legacy remote API.

Demo

Demo video (YouTube)

Usage

Client Side (i.e. C# Application)

  1. Download the DLL file from Releases. You can also build it from source code.
  2. Copy and paste DLL file into your runtime path, e.g. $(ProjectDir)x64/Debug/.
  3. Add using System.Runtime.InteropServices; at the beginning of code, use [DllImport()] attribute to import DLL functions. Example.
  4. Write your own code. Example.

Server Side (i.e. CoppeliaSim)

  1. 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...
  1. Start simulation to enabling the remote API server.

Reference

Dependency