Skip to content

nfu-irs-lab/coppelia-sim-csharp-api

 
 

Repository files navigation

CoppeliaSim C# API

The CoppeliaSim (V-REP) remote control API for C#. Using 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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 55.4%
  • C++ 27.0%
  • C 17.6%