Skip to content

Releases: duburcqa/jiminy

[core/python] Custom return policy to avoid conflits with external modules.

26 Apr 21:14
c2af825
Compare
Choose a tag to compare

Small release fixing conflicts with external Boost.Python modules, along some other minor bugs.

Bug fixes

  • [core] Fix bug at Robot initialization when defining default flexible joints in the model.
  • [core/python] Fix wrong keyword arguments for 'EngineMultiRobot.reset' method.
  • [core/python] Add new Boost.Python return policy that can be used to by-pass converter registry if 'convertToPython' has been specified.

Miscellaneous

  • [python] Add some missing typing return types.

[core] Improve C++ core code quality.

24 Apr 21:00
8cc93c8
Compare
Choose a tag to compare

Minor release mainly intended to improve C++ core code quality to make it easier to read and maintain. It also fixes the last remaining issues to easily build Boost.Python extension modules when Jiminy is installed using pip.

Improvements

  • [core] Allow arbitrary large controller update period.
  • [core] Improve error reporting by printing fully qualified function name without arguments.
  • [core] Do not shuffle first iteration cycle of 'PGSolver', and initialize indices in reverse order to make convergence (hopefully) faster.
  • [gym/common/envs] Refresh action space before observation space since action could be part of observation but not conversely.
  • [gym/examples] Automatically monitor env step 'info' on Tensorboard's histograms when using RLlib backend.

Bug fixes

  • [core] Fix computation of visco-elastic coupling forces.

Miscellaneous

  • [core] Remove C-style cast, and avoid unnecessary cast.
  • [core] Remove irrelevant virtual keywords.
  • [core] Replace (u)int32_t by std::size_t/ptrdiff_t when appropriate for clarity and portability.
  • [core] Enable implicit conversion, deprecation, c-style cast, and unused variables warnings.
  • [core] Remove all dependencies to jsoncpp in core headers.
  • [core/python] Add fallback to complementary unsigned/signed type for integers for 'convertFromPython'.
  • [gym/common/wrappers] Relax argument type of 'FilteredFrameStack' for convenience.
  • [gym/common/wrappers] Rename 'FilterFrameStack' in 'FilteredFrameStack' for clarity.
  • [gym/examples] RLlib 'evaluate' helper method now returns aggregated info over episode.
  • [gym/examples] Only log data in Tensorboard format when RLlib is used, to dramatically reduce log folder size.
  • [misc] Minor update of easy install dependencies.
  • [misc] Do not install 'robotpkg-urdfdom' binaries since 'liburdom-dev' is already installed by other easy-install dependencies.
  • [misc] Relax Ubuntu version check for easy install script since it should work on any release in practice.
  • [misc] More robust Python library finding in provided CMake configuration file.
  • [misc] Check compatibility with required jiminy version if any in provided CMake configuration file.
  • [misc] Detect Numpy headers in provided CMake configuration file.
  • [misc] Add missing boost definitions in CMake configuration file.

[misc] Provide CMmake configuration file in wheels.

19 Apr 05:23
499f842
Compare
Choose a tag to compare

This release aims at making it as simple as possible to build executable and Boost.Python extension modules for Jiminy using CMake. Now it requires about 10 lines of CMake. Dynamic linking is automatically handled to ensure the generated binary works out-of-the-box.

Improvements

  • [misc] Bundle cmake configuration file in wheel.
  • [misc] Provide example of pip-based build of C++ executable using CMake.

Miscellaneous

  • [misc] Fix wheel deploy. Add project URLs to pypi project page.
  • [misc] Refactor legacy CMake Python finding to be consistent with CMake>=3.12.
  • [misc] Remove legacy compilation mode since no longer necessary.
  • [misc] Cleanup pinocchio include and move implementation include in cpp if possible.

[misc] Improve module interoperability of Boost.Python bindings.

16 Apr 21:36
ab67a29
Compare
Choose a tag to compare

This release makes it possible to build C++ executable and Boost.Python extension modules for jiminy just by installing it via pip, instead of having to clone it and build it from source. It also make sure jiminy_py is compatible with Boost.Python modules compile with different versions of Boost and different C++ ABI. Additionally, a few bugs have been fixed.

Improvements

  • [misc] Improve module interoperability by supporting old, new, and dual C++ ABI.
  • [misc] Bundle Jiminy headers and shared core library in wheels.

Bug fixes

  • [core] Fixes segfault when calling some methods on uninitialized objects.
  • [core] Fix HDF5 export of empty string constants.
  • [misc] Fix telemetry variables memory overflow (again).
  • [misc] Fix Boost python error handling at import.

Miscellaneous

  • [misc] Refactor binary distribution to mimic numpy.
  • [misc] Remove C++17 features breaking compatibility with gcc-6 to build wheels for manylinux_2_24.

[core] Support update period for registered force profiles.

13 Apr 08:11
1113669
Compare
Choose a tag to compare

This release mainly enables to register discrete force profiles. It is especially useful to reduce computational cost when implementation is done in Python. It is also necessary to apply filters or hysteresis. In addition, many convenience features have been added to the viewer, and stability and performance have been significantly improved (especially mesh loading time). Finally, a few annoying but not critical bugs have been fixed.

New features

  • [core] Enable to specify update period of registered force profiles.
  • [python/viewer] It is now possible to add custom 'markers', automatically updated at refresh.

Improvements

  • [python/viewer] Greatly improve mesh loading speed.
  • [python/viewer] Enable to zoom very close in 'panda3d' without seeing through the model.
  • [python/viewer] Add 'cone' and 'arrow' primitives to 'panda3d' rendering backend.
  • [python/viewer] Add methods 'move_node' and 'set_scale' to move and rescale a single node in 'panda3d'.
  • [python/viewer] More natural shadow casting in 'panda3d'.
  • [python/viewer] Move named color support from 'replay' module to 'viewer'. Improved default color cycle.
  • [python/viewer] 'set_color' now set colors of both visual and collision meshes.
  • [python/viewer] 'set_color' disables texture if specified, and reset original color and texture otherwise.
  • [python/viewer] Fallback to offscreen rendering if opening 'panda3d' graphical window is impossible.
  • [python/viewer] Wheel click can be used to move camera lookup point forward and backward in 'panda3d'.

Bug fixes

  • [core] Fix system states not cleared at reset.
  • [core] Make it impossible to register external forces to the universe itself.
  • [core/python] Automatically reset to Zero the return variable of functors returning that are supposed to return by value in C++.
  • [python/viewer] Increase meshcat opening timeout to avoid false positive on low-end hardware.
  • [python/viewer] Fix viewer not properly closed in some cases, and internal state not cleaned-up.
  • [python/viewer] Fix viewer instance of simulator wrongly detected as still available after closing environment.
  • [python/viewer] Fix delete-on-close for panda3d.
  • [misc] Fix C++ error message not showing properly on Windows.
  • [misc] Fix inter-operability with custom eigenpy/hppfcl/pinocchio install.

Miscellaneous

  • [core] Increase constants + variable names memory size to align with common use-cases. Clearer error message in case of overflow.
  • [python/viewer] Default rendering backend is now 'panda3d' systematically for non-interactive mode.
  • [python/viewer] Only display relevant error messages (if possible) when starting panda3d.
  • [misc] Check if Python executable provided to Cmake is valid.
  • [misc] Make sure OpenGL is installed by 'easy_install_deps_ubuntu.sh' script.

[python/viewer] Performance improvement and Qt integration.

08 Apr 04:58
862d2da
Compare
Choose a tag to compare

This release focuses on performance improvements of Jiminy Viewer for 'Panda3d' backend. Firstly, most of the redundant computations and unnecessary rendering refresh have been removed. Secondly, 'av' video writer library is used in place of 'cv2', which supports 'h264' codec, resulting in faster generation (~40s for 1min simulation duration), smaller file (~15MB for 1min instead of ~50MB), and web-compatibility. In addition, a new rendering backend 'panda3d-qt' is now available, enabling to embed Jiminy Viewer in custom Qt graph, allowing complex interactions.

New features

  • [python/viewer] Initial support of 'panda3d-qt' rendering backend.
  • [python/viewer] Add method to update robot color on-the-fly (only supported by panda3d).
  • [python/dynamics] Add XYZQuat to XYZRPY position and velocity converters.

Improvements

  • [python/viewer] Use 'av' package instead of 'cv2' to export 'panda3d'/'gepetto-gui' video: faster, smaller, and support 'h264'.
  • [python/viewer] Improve video recording speed even further by disabling panda3d framerate limit during recording.
  • [python/viewer] Update collision geometry placement only once and only if necessary.
  • [python/viewer] Improve frame capture speed (and thereby video recording) by refreshing 'panda3d' scene only if needed.
  • [python/viewer] 'capture_frame' as raw data is now available for 'panda3d'.

Bug fixes

  • [python/viewer] Fix panda3d screenshot wrongly removing alpha channel for '.png'.
  • [gym/common/envs] Fix opening onscreen window at env reset if offscreen window is already available.
  • [misc] Fix support of Ninja Cmake generator.
  • [misc] Fix support of Cmake 3.20 on windows.

Breaking API changes

  • [python/viewer] Reorder and remove some keyword arguments of Viewer.__init__ and 'play_trajectories'.
  • [python/viewer] Rename 'urdf_rgba' to 'robot_color' for clarity. Add 's' suffix to list arguments.
  • [python/viewer] Replace 'window_name' argument by static 'Viewer' attribute.

Miscellaneous

  • [python/viewer] Raise warning if 'enable_clock' is true and 'panda3d' backend is not used.
  • [python/viewer] Raise helpful exception if 'replay' called with wrong urdf color.
  • [misc] Avoid copying irrelevant files when build wheels.
  • [misc] Clearer Cmake warnings for Ubuntu 18 legacy mode.
  • [misc] To need to install wheels twice anymore thanks to new pip dependency resolver.
  • [misc] Update dependencies to latest version available.

[misc] Bug fixes and API consistency improvements.

01 Apr 07:45
c011ba6
Compare
Choose a tag to compare

A few not critical bugs have been addressed and the API has been slightly simplify to avoid common mistakes while being less restrictive when possible. In addition, a few guards has been added to explicitly forbid wrong practices.

Improvements

  • [core] Add Engine methods to remove registered impulse and profile forces, and all forces (including coupling) at once.
  • [core] Throw error when calling addSystem/removeSystem for 'Engine' instead of 'EngineMultirobot'.
  • [core] Get read-only access to global random seed.
  • [core|python] Move log data cached buffer from python simulator to core engine.
  • [core/python] Make log data non writable.
  • [python/simulator] Merge 'run' and 'simulate' methods together and keep only 'simulate'.
  • [python/simulator] Avoid unnecessary viewer refresh at init.
  • [python/viewer] Enable forwarding by adding unused keyword arguments support.
  • [python|gym] Setup viewer for new model at env level instead of simulation to avoid edge cases.
  • [python|gym] Move 'BaseJiminyObserverController' from 'jiminy_py' to 'gym_jiminy.envs.internal' as incompatible with 'Simulator.simulate'.
  • [gym/common/envs] Only check if initial observation is consistent with observation space, not if out-of-bounds.

Bug fixes

  • [core] Make sure random number genetators are initialized at Engine level.
  • [core] Reset random number genetors if desired seed has changed when calling 'setOptions'.
  • [core/python] Fix dangling collision_data dangling reference in python because Model was deleting it by mistake.
  • [python/viewer] Fix legend support for meshcat.
  • [python/viewer] Fix custom urdf color support for panda3d.

Miscellaneous

  • [core] Use C++ inheritence method hiding to deter usage of specialized 'EngineMultirobot' methods in 'Engine'.
  • [core/python] Rename Engine 'remove_forces' method in 'remove_all_forces', which now only removes forces without calling 'reset' method.
  • [core/python] Make private '_ControllerFunctor' and not initializable from Python. It is only used to convert C++ ControllerFunctor back to Python. 'BaseControllerFunctor' must be used instead in Python.
  • [python|gym] Project architecture refactoring.
  • [misc] Automatically detect pinocchio submodules at import instead of hard-coded procedure for maintainability.

[core] Add random process generators.

26 Mar 06:27
fb13fef
Compare
Choose a tag to compare

Several random process generators have been added, namely PeriodicGaussianProcess, PeriodicFourrierProcess, PeriodicPerlinProcess and RandomPerlinProcess. They are designed to be used as basis to implement external force profiles. In this context, they have been optimized to computational efficiency rather than mathematical correctness. On a completely unrelated note, Python bindings are now more "pythonic", and registered external forces are now properly removed at reset.

New features

  • [core] Add random process utilities.
  • [core|core/python] Add getter for impulse, profile, and coupling forces.

Improvements

  • [core] Change naming convention for consistency, aka 'registerForce[TYPE]'.
  • [core/python] Full-featured std::vector wrapping.
  • [core/python] Expose global random generator reset method.
  • [core/python] Initialize random number generator when load python bindings.
  • [core/python] Improve docstring signature type and keywords inference.
  • [python/simulator] Make sure destructor cannot raise exception.

Bug fixes

  • [gym/common/envs] Fix registered forces not automatically removed at reset.

Miscellaneous

  • [core] Split utilities in multiple files.
  • [core] Use unique_ptr to reduce header dependencies and speed-up compilation.
  • [core] Remove some useless includes in core.
  • [python/viewer] Enable EGL fallback for panda3d, since it will be provided with Panda3d>=1.10.9.
  • [gym/common/utils] Remove Python native implementation of 'PeriodicGaussianProcess'.

[python/plot] More versatile plotting tools.

20 Mar 18:51
3b8d2f1
Compare
Choose a tag to compare

Add new generic tabbed figure plotting tools supported by any Matplotlib backend, including offscreen 'agg' and Jupyter notebooks. It brings several additional features, such as synchronize time in every tabs and export of all tabs in pdf. Its overall performance has been significantly improved.

New features

  • [python|gym] Add generic tabbed figure tool.

Improvements

  • [core|python] Add support of non-contiguous temporary to 'register_variables'.
  • [core/python] Allow registering 2D numpy arrays to the telemetry.
  • [python|gym] Move '_log_data' from gym env to simulator.
  • [python/dynamics] 'update_quantities' method update every quantity but the jacobians by default.
  • [python/simulator] Enable argument forwarding for 'plot' method.
  • [gym/common/envs] Log generic action automatically.

Bug fixes

  • [python/dynamics] Fix 'update_quantities' not calling forward kinematics when necessary.
  • [python/simulator] Fix log backup cleanup.
  • [gym/common/pipeline] Fix controller wrapper not updating env action and not calling env 'compute_command'.
  • [misc] Fix ipython tutorial.

Miscellaneous

  • [misc] Remove force install 'numba==0.53.0rc3' on CI since 0.53 is now available.
  • [misc] Consistent use of 'resource_filename' to access models data.
  • [misc] Add Atlas in Readme instead of Anymal.

[gym/envs] Add Cassie robot learning environment.

16 Mar 22:17
5538708
Compare
Choose a tag to compare

This release improves support of closed kinematic chains by adding analytical distance constraint between frames. It illustrates this new feature, Cassie robot learning environment is now provided. Apart from that, a few minor bug fixes mainly related to the viewer has been fixed, and overall performance has been slightly improved.

New features

  • [core] Add DistanceConstraint to enforce constant distance between frames.
  • [gym/envs] Add Cassie robot example (Closed-kinematic chains).

Improvements

  • [core] Improve performance by avoiding unnecessary copies and redundant computations.
  • [python/dynamics] Add some RPY converters.
  • [python/dynamics] Add options to use theoretical model when computing freeflyer with fixed frame.
  • [python/robot] Add convenience property to get robot name.
  • [python/simulator] Add 'command' tab to 'plot' method.
  • [python/simulator|gym/common/envs] Replace attribute '_is_viewer_available' by public property to avoid redundancy.
  • [gym/common/envs] Do not extract log if no terminal reward.
  • [gym/examples/rllib] Do not return 'log_root_dir' at init because it is redundant.
  • [gym/examples/rllib] Add option to record video periodically during training.

Bug fixes

  • [core] Make sure application time of impulse forces are positive (not strictly).
  • [python/viewer] Fix terminate viewer backend process when closing.
  • [python/viewer] Fix error when closing viewer without waiting for init to finish.
  • [python/viewer/meshcat] Increasing timeout to avoid false negative on low-end configurations.
  • [python/viewer|gym/common/envs] Make sure viewer is properly closed after simulation replay whenever requested.
  • [gym/common/envs] 'compute_command' method no longer update the internal action buffer.
  • [gym/examples] Add missing examples tools.
  • [misc] Fix wheel generation process corrupting png files.

Miscellaneous

  • [core] Move Gauss-Siedel LCP solver in dedicate folder since several may be implemented.
  • [core/python] Define meaningful argument names for constructors.
  • [misc] Allow executing 'easy_install_deps_ubuntu.sh' multiple times without significant side effects.
  • [misc] Make sure *.png files are processed by binary files by git.
  • [misc] Increase Pagefile on Windows CI to avoid unit test failure when loading Panda3d.