Functions to allow C# control of purple robot in controlTypeExamples.ttt#1
Functions to allow C# control of purple robot in controlTypeExamples.ttt#1neuronz wants to merge 1 commit intoHWiese1980:masterfrom
Conversation
…controlTypeExamples.ttt
|
Here is the C# code that can be used to to replace the C++ remote bubbleRob client for the purple robot in the v-rep controlTypeExamples.ttt scene. It should be built as a C# Console application with a Platform target of x86 (and of course referencing remoteApiNETWrapper) and launched (in place of the existing C++ bubbleRobClient exe) from the purple robot's remoteApiControlledBubbleRob child script. +++ // Make sure to have the server side running in V-REP! using System; namespace bubbleRobClientCS } +++ |
|
Well, you could implement simw wrapper functions for all the imported simx functions, however my idea for the simw wrappers was to simplify the interface. You can still invoke the simx functions directly, thus, no simw functions are really necessary for the user of the wrapper library to be able to call the V-REP functions. Sorry to say so, but I'd rather not merge this pull request in its current state, as long as the simw functions do nothing more than encapsulating the call to the corresponding simx function. The reason is, once the library is starting to be used by others, it will be much more difficult to change the signature of the simw functions without the possibility of breaking code compatibility. If you implement the simw functions as simplifications (return the desired value instead of using a ref or an IntPtr and throw an exception in case of an error instead of returning the error), I'll happily merge it. I'm going to rework my own simw wrapper functions for that purpose, too. Regardless of these requirements I totally appreciate your work and effort, thanks a lot! Keep it up! |
This is the first time I've used GitHub so please let me know if all is ok.
I've also created a c# version of the bubbleRobClent to run these new functions against if you're interested?