Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instalar API en Python #1

Open
TnTivanTnT opened this issue May 6, 2024 · 7 comments
Open

Instalar API en Python #1

TnTivanTnT opened this issue May 6, 2024 · 7 comments
Assignees

Comments

@TnTivanTnT
Copy link

No description provided.

@TnTivanTnT
Copy link
Author

Guía:
https://github.com/rozum-robotics/Rozum-Servo-Drives-API/blob/master/python/README.md

Explica que hay que conectar el motor y ver el com en "System Settings - Devices - Bluetooth and other devices". En mi caso sale "ServoBox" no el com entonces lo he visto en el administrador de dispositivos

Librería:
Rozum-Servo-Drives-API-master.zip

Comprobar en el taller

@TnTivanTnT
Copy link
Author

Compila read_servo_max_velocity.py pero al probar para que se mueva el motor no funciona (Probado 2/3/2024).
Rozum-Servo-Drives-API-master1.zip

@TnTivanTnT
Copy link
Author

En la guía inicial pone: "pip install rdrive -i https://pip.rozum.com/simple", hay q hacer sólo "pip install rdrive".
Comporbar funcionanmiento con el motor

@TnTivanTnT
Copy link
Author

Prueba 1 de read_servo_max_velocity.py en el motor:
image
Buscar que es Generic Error

@TnTivanTnT
Copy link
Author

Guía: https://rozum.com/documentation/servomotors/rdrive-60/user-manual/
(Comienza en la página 17)

Pasamos a linux:

Instalación de python: sudo apt install python3 python3-pip

Instalación de Rdrive: pip install rdrive (-i https://pip.rozum.com/simple) -> Da error con el enlace

Encontrar el CAN interface name: ls /dev/serial/by-id/

Image

Encontrar el CAN ID del motor conectado:

Falta encontrar donde se guarda las librerías de python en linux

Ejecutar un tutorial de la carpeta examples (se habrá descargado en: "equipo/usr/lib" en mi caso y me aparecen las versiones 2.7, 3, 3.10 y 3.11)
python3 ..\userapi\python\examples\read_servo_max_velocity.py --
interface /dev/serial/by-id/usb-Rozum_Robotics_USB-
CAN_Interface_301-if00 --servo_1_id 32

@TnTivanTnT
Copy link
Author

Reset:
Windows C, referencias:
https://rozum.com/support/servo-api/c/docs/
https://github.com/rozum-robotics/Rozum-Servo-Drives-API/tree/master/c

Instalar Cygwin, en la setup incluir "mingw64-i686-pthreads" "make" "doxygen"

@TnTivanTnT
Copy link
Author

Ubuntu, referencias:
https://rozum.com/documentation/servomotors/rdrive-60/user-manual/

Image

Para que pueda abirr el puerto correctamente, hay que poner lo de la guía, se usa "/dev/ttyAMC0"

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants