Commit 29e31f6e authored by seydou.faye's avatar seydou.faye
Browse files

Control spj with ZYX fixture

parent 306d4ba9
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2,3 +2,4 @@ build/

# python stuff
__pycache__/
*.exe
 No newline at end of file
+2.09 KiB

File added.

No diff preview for this file type.

+2.09 KiB

File added.

No diff preview for this file type.

+6 −6
Original line number Diff line number Diff line
from PyQt6.QtCore import Qt
from PySide6.QtCore import Qt
from frontend.ui.robot_ui import Ui_MainWindow
from spj.spj import SphericalParallelJoint, WorldPosition
from pyspj.spj import SphericalParallelJoint, WorldPosition

from PyQt6.QtWidgets import (
from PySide6.QtWidgets import (
    QApplication,  QMainWindow, QMessageBox, QFileDialog, QWidget
)

from PyQt6.QtGui import QCloseEvent, QImage, QPixmap
from PyQt6.QtCore import QObject, Qt, QThread, pyqtSignal
from PySide6.QtGui import QCloseEvent, QImage, QPixmap
from PySide6.QtCore import QObject, Qt, QThread, Signal as pyqtSignal
import time, sys
from functools import partial
from enum import Enum
@@ -52,7 +52,7 @@ class Window(QMainWindow, Ui_MainWindow):
    def __init__(self, parent = None) -> None:
        super().__init__(parent)
        self.setupUi(self)
        self.robot = CommThread("/dev/ttyACM0")
        self.robot = CommThread("COM9")
        self.__setup_signals()
        self.robot.start()
        time.sleep(0.5)
+72 −0
Original line number Diff line number Diff line
[app]
# title of your application
title = pyside_app_demo
# project directory. the general assumption is that project_dir is the parent directory
# of input_file
project_dir = C:\Users\seydou.faye\OneDrive - HE-ARC\Documents\Plavia\SphericalParallel\spherical-parallel-joint-robot\frontend
# source file path
input_file = main.py
# directory where exec is stored
exec_directory = C:\Users\seydou.faye\OneDrive - HE-ARC\Documents\Plavia\SphericalParallel\spherical-parallel-joint-robot\frontend
# path to .pyproject project file
project_file = 
# application icon
icon = C:\Users\seydou.faye\AppData\Local\pypoetry\Cache\virtualenvs\spherical-parallel-joint-robot-hik_SPnh-py3.10\Lib\site-packages\PySide6\scripts\deploy_lib\pyside_icon.ico

[python]
# python path
python_path = C:\Users\seydou.faye\AppData\Local\pypoetry\Cache\virtualenvs\spherical-parallel-joint-robot-hik_SPnh-py3.10\Scripts\python.exe
# python packages to install
# ordered-set = increase compile time performance of nuitka packaging
# zstandard = provides final executable size optimization
packages = Nuitka==2.3.2
# buildozer = for deploying Android application
android_packages = buildozer==1.5.0,cython==0.29.33

[qt]
# comma separated path to qml files required
# normally all the qml files required by the project are added automatically
qml_files = 
# excluded qml plugin binaries
excluded_qml_plugins = 
# qt modules used. comma separated
modules = Gui,Core,Widgets
# qt plugins used by the application
plugins = imageformats,xcbglintegrations,egldeviceintegrations,platformthemes,accessiblebridge,iconengines,platforms,platforminputcontexts,styles,generic,platforms/darwin

[android]
# path to pyside wheel
wheel_pyside = 
# path to shiboken wheel
wheel_shiboken = 
# plugins to be copied to libs folder of the packaged application. comma separated
plugins = 

[nuitka]
# usage description for permissions requested by the app as found in the info.plist file
# of the app bundle
# eg = extra_args = --show-modules --follow-stdlib
macos.permissions = 
# (str) specify any extra nuitka arguments
extra_args = --quiet --noinclude-qt-translations

[buildozer]
# build mode
# possible options = [release, debug]
# release creates an aab, while debug creates an apk
mode = debug
# contrains path to pyside6 and shiboken6 recipe dir
recipe_dir = 
# path to extra qt android jars to be loaded by the application
jars_dir = 
# if empty uses default ndk path downloaded by buildozer
ndk_path = 
# if empty uses default sdk path downloaded by buildozer
sdk_path = 
# other libraries to be loaded. comma separated.
# loaded at app startup
local_libs = 
# architecture of deployed platform
# possible values = ["aarch64", "armv7a", "i686", "x86_64"]
arch = 
Loading