regular api vs remote api

Typically: "How do I... ", "How can I... " questions
Post Reply
jjjenny
Posts: 5
Joined: 05 Aug 2021, 04:48

regular api vs remote api

Post by jjjenny »

First I learned Coppeliasim, I understanded as regular api=Lua and remote
api=other languages
but in user manual, lua is also in remote api
so I'd like to ask, what's the difference btw remote api and regular api??
may you describe me clearly??

fferri
Posts: 1216
Joined: 09 Sep 2013, 19:28

Re: regular api vs remote api

Post by fferri »

Regular API can be used in:
  • embedded scripts (Lua), which include:
    • child scripts (scripts attached to scene objects)
    • customization scripts (similar to above, but can run also when simulation is not running)
    • add-ons (scripts loaded by the application, independent of which scene is loaded)
  • plugins (C/C++)
in both cases code runs in the same process as the CoppeliaSim application.

Remote API can be used by external processes and applications (many languages are supported, including Lua = an external Lua interpreter, not the one built into the application).

jjjenny
Posts: 5
Joined: 05 Aug 2021, 04:48

Re: regular api vs remote api

Post by jjjenny »

thanks so much ! I finally understand now.

jjjenny
Posts: 5
Joined: 05 Aug 2021, 04:48

Re: regular api vs remote api

Post by jjjenny »

fferri wrote: 06 Aug 2021, 10:13 Regular API can be used in:
  • embedded scripts (Lua), which include:
    • child scripts (scripts attached to scene objects)
    • customization scripts (similar to above, but can run also when simulation is not running)
    • add-ons (scripts loaded by the application, independent of which scene is loaded)
  • plugins (C/C++)
in both cases code runs in the same process as the CoppeliaSim application.

Remote API can be used by external processes and applications (many languages are supported, including Lua = an external Lua interpreter, not the one built into the application).


thanks!!! I finally understand now

Post Reply