New in version 1.2.0

✨ Features

🛠️ Improvements

  • Overall better documentation (docstring and sphinx build system)

  • Replaced all the wildcard imports (from pyniryo import *) by explicit imports (from pyniryo import NiryoRobot)

  • The error message when a command fail now include the command name. It allow an easier debugging process

  • All the methods which were taking arrays of float to represent a joints position or a pose can also take a JointsPosition or a pyniryo.api.objects.PoseObject

  • Added .style.yapf file

  • Delete useless CMakeLists.txt

  • Added a context manager for the robot jog control

  • Added new functions: * get_conveyors_feedback()

  • Deprecate move_relative()

  • inverse_kinematics() returns a pose v1 and inverse_kinematics_v2() returns a pose v2

  • Revamped unit tests. They are now more readable and more efficient, and more independent from each other

🪲 Bugfixes

  • Replaced deprecated use of value in EnumClass by isinstance(value, EnumClass)

  • The function save_last_learned_trajectory() didn’t send name and description to the server

  • The function update_trajectory_infos() didn’t send name, new_name and new_description to the server

  • Fix bad conditional requirement on opencv in requirements.txt

  • Deleted inexistant function percentage_open_gripper

  • Fixed set_brightness(), set_contrast() and set_saturation() which were using a deprecated numpy attribute

  • Fixed the led ring functions which were returning an empty list instead of None

  • get_trajectory_saved now returns a list of JointPosition