Skip to main content

arcor2_3D_mouse

Structure

mouse_controller.py
  • contains classes necessary to read inputs from the 3D mouse
mouse_program.py
  • contains main body of the program

Usage

For users

The application is used for fast and intuitive programming with arcor2 system.

Upon opening the application it goes to the waiting mode. In waiting mode it reads messages from the server, waiting for a project to be opened and started. In this state, the user can exit the application by pressing the right mouse button.

If a project has been opened and the scene started, the app is in a robot-choosing state, in this state user chooses which robot should be doing new action. User can move through a list of robots by moving the mouse to the left and to the right. To select a robot the user has to press the left mouse button. To exit the app the user has to press the right mouse button.

When a robot has been selected, the app goes to the action-choosing state. In this state, the user chooses which action should be added. User can move through a list of actions by moving the mouse to the left and to the right. To select an action the user has to press the left mouse button. To choose a different robot the user has to press the right mouse button.

When action has been selected, the app goes to the movement state. In this state, all movements done by the mouse are directly sent to the chosen robot. To select a place, where new action has to be added, the user has to press the left mouse button. To choose different action, the user has to press the right mouse button.

When the place for new action is chosen, new action is added and the program goes back to the action-choosing state. Previously selected robot stays selected.

For developers

The program is prepared by making an instance of mouse_program.MouseProgram class. Optional parameters are connecton_string and timeout. The Connection string is in the following format "ws://ip:port". Ip and port are of active arcor2 server running on a connected network. Timeout chooses the time, in which the app expects a response from the server. It is recommended to keep it under 1 sec.

After init user is expected to call class method register_user, with a chosen user name. If a username, that is already used is picked, the program will raise an exception.

The program itself starts after calling class method program_loop.

Because the program uses multiple threads, it is recommended to set interrupt and termination signals to class method close_program.

[1.1.0] - 2024-04-11

Changed

  • Updated dependencies, switched to Python 3.11.

[1.0.0] - 2023-05-05

Release

  • First version of application

Metadata

Release files for arcor2-3d-mouse 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for arcor2-3d-mouse 1.1.0
File Size Uploaded Provenance
arcor2_3d_mouse-1.1.0.tar.gz 15.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for arcor2-3d-mouse 1.1.0
File Interpreter ABI Platform
arcor2_3d_mouse-1.1.0-py311-none-any.whl Python 3.11 none any Details

Total release size: 31.2 kB

Release files / arcor2_3d_mouse-1.1.0.tar.gz

Download URL arcor2_3d_mouse-1.1.0.tar.gz
Size 15.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3ae4c0a0bd27ea461d523a632b9ace7763221e0d49b465b1f20700f36868ce49
BLAKE2b-256 checksum
How to use checksums
2c2f7af18ba2a0430dea4f246080ca4671f2317df8e5df3d512a0f5fed3dfbdf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / arcor2_3d_mouse-1.1.0-py311-none-any.whl

Download URL arcor2_3d_mouse-1.1.0-py311-none-any.whl
Size 15.6 kB
Tags Python 3.11
SHA-256 checksum
How to use checksums
3e90ded7cc6135921ccc1bd356508a24a11f6e35e4efcfa5c613c8cfb84b1c29
BLAKE2b-256 checksum
How to use checksums
3b9fe87de0cec70c72032cb3352900716496c32b324eef17d412ed5576ad27b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Security for arcor2-3d-mouse 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page