GitHunt
ZI

ziteh/coppelia-sim-csharp-wrapper

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

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

Languages

C#45.7%C++22.2%Lua17.6%C14.5%

Contributors

BSD 2-Clause "Simplified" License
Created November 24, 2021
Updated December 25, 2024