Skip to main content

ARCOR2 library for manipulation with 3D mouse

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

arcor2_3d_mouse-1.1.0.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

arcor2_3d_mouse-1.1.0-py311-none-any.whl (15.6 kB view details)

Uploaded Python 3.11

File details

Details for the file arcor2_3d_mouse-1.1.0.tar.gz.

File metadata

  • Download URL: arcor2_3d_mouse-1.1.0.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for arcor2_3d_mouse-1.1.0.tar.gz
Algorithm Hash digest
SHA256 3ae4c0a0bd27ea461d523a632b9ace7763221e0d49b465b1f20700f36868ce49
MD5 ae206b4350b10850600ea37e9dfc325a
BLAKE2b-256 2c2f7af18ba2a0430dea4f246080ca4671f2317df8e5df3d512a0f5fed3dfbdf

See more details on using hashes here.

File details

Details for the file arcor2_3d_mouse-1.1.0-py311-none-any.whl.

File metadata

File hashes

Hashes for arcor2_3d_mouse-1.1.0-py311-none-any.whl
Algorithm Hash digest
SHA256 3e90ded7cc6135921ccc1bd356508a24a11f6e35e4efcfa5c613c8cfb84b1c29
MD5 231ca0dfe52e56e42a79271239a22aa9
BLAKE2b-256 3b9fe87de0cec70c72032cb3352900716496c32b324eef17d412ed5576ad27b1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page