Skip to content

Commit

Permalink
Merge branch 'devel' into pin3
Browse files Browse the repository at this point in the history
  • Loading branch information
nim65s committed May 30, 2024
2 parents 38c9551 + 61674a1 commit e889327
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [Unreleased]

* Exported version for Python in https://github.com/loco-3d/crocoddyl/pull/1254
* Added pinocchio 3 preliminary support in https://github.com/loco-3d/crocoddyl/pull/1253
* Updated CMake packaging in https://github.com/loco-3d/crocoddyl/pull/1249
* Fixed ruff reported error in https://github.com/loco-3d/crocoddyl/pull/1248
Expand Down
3 changes: 2 additions & 1 deletion bindings/python/crocoddyl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
import numpy as np
import pinocchio

from .libcrocoddyl_pywrap import * # noqa
from .libcrocoddyl_pywrap import *
from .libcrocoddyl_pywrap import __raw_version__, __version__


def rotationMatrixFromTwoVectors(a, b):
Expand Down
6 changes: 4 additions & 2 deletions bindings/python/crocoddyl/crocoddyl.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
///////////////////////////////////////////////////////////////////////////////
// BSD 3-Clause License
//
// Copyright (C) 2019-2021, LAAS-CNRS, University of Edinburgh, INRIA,
// Copyright (C) 2019-2024, LAAS-CNRS, University of Edinburgh, INRIA,
// Heriot-Watt University
// University of Oxford Copyright note valid unless otherwise stated in
// individual files. All rights reserved.
///////////////////////////////////////////////////////////////////////////////
Expand All @@ -17,7 +18,8 @@ namespace python {
namespace bp = boost::python;

BOOST_PYTHON_MODULE(libcrocoddyl_pywrap) {
bp::scope().attr("__version__") = printVersion();
bp::scope().attr("__version__") = crocoddyl::printVersion();
bp::scope().attr("__raw_version__") = bp::str(CROCODDYL_VERSION);

eigenpy::enableEigenPy();

Expand Down

0 comments on commit e889327

Please sign in to comment.