معرفی شرکت ها


coppeliasim-zmqremoteapi-client-0.0.4


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Client for the CoppeliaSim's zmqRemoteApi
ویژگی مقدار
سیستم عامل -
نام فایل coppeliasim-zmqremoteapi-client-0.0.4
نام coppeliasim-zmqremoteapi-client
نسخه کتابخانه 0.0.4
نگهدارنده []
ایمیل نگهدارنده []
نویسنده -
ایمیل نویسنده "Federico Ferri (Coppelia Robotics)" <federico@coppeliarobotics.com>
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/coppeliasim-zmqremoteapi-client/
مجوز -
# CoppeliaSim zmqRemoteApi Python client Python client for the zmqRemoteApi. ## Installing: ```sh python3 -m pip install coppeliasim-zmqremoteapi-client ``` ## Usage ```python from coppeliasim_zmqremoteapi_client import * # create a client to connect to zmqRemoteApi server: # (creation arguments can specify different host/port, # defaults are host='localhost', port=23000) client = RemoteAPIClient() # get a remote object: sim = client.getObject('sim') # call API function: h = sim.getObject('/Floor') print(h) ``` There is also an `asyncio` version of the client. Normal `asyncio` principles apply, and all methods are async: ```python from coppeliasim_zmqremoteapi_client.asyncio import * client = RemoteAPIClient() async def main(): async with RemoteAPIClient() as client: sim = await client.getObject('sim') h = await sim.getObject('/Floor') print(h) asyncio.run(main()) ``` on Windows, if it doesn't work properly, before calling `asyncio.run(...)` call: ```python asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) ``` A note about performance of sequential requests: if performing many commands in one shot, and results will be used later, consider using `asyncio.gather` for improved throughput. E.g. getting the handles of 100 objects: ```python handles = await asyncio.gather(*[sim.getObject(f'/Object{i+1}') for i in range(100)]) ``` Also check out the examples in [`clients/python`](https://github.com/CoppeliaRobotics/zmqRemoteApi/blob/master/clients/python).


نیازمندی

مقدار نام
- cbor
- pyzmq


زبان مورد نیاز

مقدار نام
>=3.8 Python


نحوه نصب


نصب پکیج whl coppeliasim-zmqremoteapi-client-0.0.4:

    pip install coppeliasim-zmqremoteapi-client-0.0.4.whl


نصب پکیج tar.gz coppeliasim-zmqremoteapi-client-0.0.4:

    pip install coppeliasim-zmqremoteapi-client-0.0.4.tar.gz