c#

Requests or suggestions for new features
Post Reply
paul24
Posts: 20
Joined: 22 Mar 2013, 10:33

c#

Post by paul24 »

hi, i like be able to program robot with c# with visual studio. can u implement this? and also examples and tutorials? thanks.

coppelia
Site Admin
Posts: 10339
Joined: 14 Dec 2012, 00:25

Re: c#

Post by coppelia »

Hi,

Have a look here.

Cheers

paul24
Posts: 20
Joined: 22 Mar 2013, 10:33

Re: c#

Post by paul24 »

hi, thanx for answer. but sorry, this is not what i want to do: call c from c#? i just want program robots with c#. i don't anderstand how call c from c# can me help? can u better explain please?

coppelia
Site Admin
Posts: 10339
Joined: 14 Dec 2012, 00:25

Re: c#

Post by coppelia »

Sorry, forgot some additional infos:

Using the link I provided you can call remote API functions to connect to V-REP and control a model or simulation.

Cheers

paul24
Posts: 20
Joined: 22 Mar 2013, 10:33

Re: c#

Post by paul24 »

hi, i tried that but no avail. it dozen't work. can u send me template visualstudio file with c# example please?

SeveQ
Posts: 34
Joined: 25 Jul 2013, 20:46

Re: c#

Post by SeveQ »

I'm currently writing a .NET wrapper DLL for the remoteApi.dll. It's pretty easy, once you've figured out how. Just a diligent but routine piece of work...

Here's how you can provide a remoteApi.dll function to C#:

Code: Select all

        [DllImport("remoteApi.dll")]
        public static extern int simxStart(string ip, int port, bool waitForConnection, bool reconnectOnDisconnect, int timeoutMS, int cycleTimeMS);
All you have to do is have the remoteApi.dll in the same directory like your executable (and your wrapper DLL in case you build one too).

Post Reply