Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • ostasse/dynamic-graph-python
  • gsaurel/dynamic-graph-python
  • stack-of-tasks/dynamic-graph-python
3 results
Show changes
Commits on Source (280)
# pre-commit run -a (Guilhem Saurel, 2022-07-27)
db4d991c9d727b8454695ce8d88948b948c6b36f
include: http://rainboard.laas.fr/project/dynamic-graph-python/.gitlab-ci.yml
[submodule "cmake"] [submodule "cmake"]
path = cmake path = cmake
url = git://github.com/jrl-umi3218/jrl-cmakemodules.git url = https://github.com/jrl-umi3218/jrl-cmakemodules.git
[submodule ".travis"]
path = .travis
url = git://github.com/jrl-umi3218/jrl-travis
exclude: tests/test_python-syntax_error.py
ci:
autoupdate_branch: 'devel'
repos:
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v14.0.6
hooks:
- id: clang-format
args: [--style=Google]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: check-yaml
- id: debug-statements
- id: destroyed-symlinks
- id: detect-private-key
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 22.8.0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
hooks:
- id: flake8
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.13
hooks:
- id: cmake-format
Subproject commit 4e78d6f1ece19639c6ebdda18b2f081c784e3d04
language: cpp
sudo: required
compiler:
- gcc
- clang
env:
global:
- secure: ECiHIh0aT5ml/MdKifvFIM2UpDWiPsJPEZpafLYM8U0VAPYThSfUe8JWhMsky8amOwm38akbSbr6C7iBKVpzjAqpgNdOdufO1RUZ6pUvtlVXiXTw2KlqPqbDVlD3QroVDhnX/rIRcg5ezEHAIb594uEaHdf8tlikhjdTc3aAgMA=
- APT_DEPENDENCIES="doxygen doxygen-latex libboost-all-dev libeigen3-dev liblapack-dev libblas-dev gfortran python-dev python-sphinx"
- GIT_DEPENDENCIES="proyan/dynamic-graph"
- LCOV_IGNORE_RULES="*unitTesting*"
allow_failures:
- compiler: clang
notifications:
email:
- hpp-source@laas.fr
branches:
only:
- master
- debian
script: ./.travis/run build
after_success: ./.travis/run after_success
after_failure: ./.travis/run after_failure
before_install: ./.travis/run before_install
matrix:
allow_failures:
- compiler: clang
tests/test_python-syntax_error.py
Authors:
# Copyright 2010, 2011, Florent Lamiraux, Thomas Moulard, JRL, CNRS/AIST # Copyright 2010-2020, Florent Lamiraux, Thomas Moulard, Olivier Stasse, Guilhem
# # Saurel, JRL, CNRS/AIST, LAAS-CNRS
# This file is part of dynamic-graph-python.
# dynamic-graph-python is free software: you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public License
# as published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# dynamic-graph-python is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Lesser Public License for more details. You should have
# received a copy of the GNU Lesser General Public License along with
# dynamic-graph-python. If not, see <http://www.gnu.org/licenses/>.
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
INCLUDE(cmake/base.cmake)
INCLUDE(cmake/boost.cmake)
INCLUDE(cmake/eigen.cmake)
INCLUDE(cmake/pthread.cmake)
INCLUDE(cmake/cpack.cmake)
include(cmake/header.cmake)
SET(PROJECT_NAME dynamic-graph-python)
SET(PROJECT_DESCRIPTION "Dynamic graph library Python bindings")
SET(PROJECT_URL "http://github.com/jrl-umi3218/dynamic-graph-python")
SET(CUSTOM_HEADER_DIR "dynamic-graph/python")
# Headers list.
SET(${PROJECT_NAME}_HEADERS
include/dynamic-graph/python/interpreter.hh
include/dynamic-graph/python/api.hh
include/dynamic-graph/python/exception-python.hh
cmake_minimum_required(VERSION 3.1)
# Project properties
set(PROJECT_ORG stack-of-tasks)
set(PROJECT_NAME dynamic-graph-python)
set(PROJECT_DESCRIPTION "Dynamic graph library Python bindings")
set(PROJECT_URL "https://github.com/${PROJECT_ORG}/${PROJECT_NAME}")
# Project options
option(SUFFIX_SO_VERSION "Suffix library name with its version" ON)
# Project configuration
set(PROJECT_USE_CMAKE_EXPORT TRUE)
set(CUSTOM_HEADER_DIR "dynamic-graph/python")
set(CXX_DISABLE_WERROR TRUE)
set(DOXYGEN_USE_MATHJAX YES)
# JRL-cmakemodule setup
include(cmake/base.cmake)
include(cmake/boost.cmake)
# Project definition
compute_project_args(PROJECT_ARGS LANGUAGES CXX)
project(${PROJECT_NAME} ${PROJECT_ARGS})
check_minimal_cxx_standard(14 ENFORCE)
# Project dependencies
set(PYTHON_COMPONENTS Interpreter Development NumPy)
add_project_dependency(dynamic-graph 4.4.0 REQUIRED)
add_project_dependency(eigenpy 2.7.10 REQUIRED)
set(PYTHON_EXPORT_DEPENDENCY_MACROS
"list(APPEND PYTHON_COMPONENTS ${PYTHON_COMPONENTS})\n${PYTHON_EXPORT_DEPENDENCY_MACROS}"
) )
if(BUILD_TESTING)
find_package(Boost REQUIRED COMPONENTS unit_test_framework)
endif(BUILD_TESTING)
if(Boost_VERSION GREATER 107299 OR Boost_VERSION_MACRO GREATER 107299)
# Silence a warning about a deprecated use of boost bind by boost >= 1.73
# without dropping support for boost < 1.73
add_definitions(-DBOOST_BIND_GLOBAL_PLACEHOLDERS)
endif()
SET(PKG_CONFIG_ADDITIONAL_VARIABLES plugindir ${PKG_CONFIG_ADDITIONAL_VARIABLES}) # Main Library
set(${PROJECT_NAME}_HEADERS
include/${CUSTOM_HEADER_DIR}/api.hh
include/${CUSTOM_HEADER_DIR}/convert-dg-to-py.hh
include/${CUSTOM_HEADER_DIR}/dynamic-graph-py.hh
include/${CUSTOM_HEADER_DIR}/fwd.hh
include/${CUSTOM_HEADER_DIR}/interpreter.hh
include/${CUSTOM_HEADER_DIR}/module.hh
include/${CUSTOM_HEADER_DIR}/python-compat.hh
include/${CUSTOM_HEADER_DIR}/signal.hh
include/${CUSTOM_HEADER_DIR}/signal-wrapper.hh)
SETUP_PROJECT() set(${PROJECT_NAME}_SOURCES
src/interpreter.cc src/dynamic_graph/python-compat.cc
src/dynamic_graph/entity-py.cc src/dynamic_graph/convert-dg-to-py.cc)
# Trigger dependency to dynamic-graph. add_library(${PROJECT_NAME} SHARED ${${PROJECT_NAME}_SOURCES}
ADD_REQUIRED_DEPENDENCY("dynamic-graph >= 3.0.0") ${${PROJECT_NAME}_HEADERS})
target_include_directories(${PROJECT_NAME} PUBLIC $<INSTALL_INTERFACE:include>)
target_link_libraries(${PROJECT_NAME} PUBLIC dynamic-graph::dynamic-graph)
modernize_target_link_libraries(
${PROJECT_NAME}
SCOPE
PUBLIC
TARGETS
Python${PYTHON_VERSION_MAJOR}::Python
LIBRARIES
${PYTHON_LIBRARIES}
INCLUDE_DIRS
${PYTHON_INCLUDE_DIRS})
target_link_boost_python(${PROJECT_NAME} PUBLIC)
# Add dependency toward dynamic graph library in pkg-config file. if(SUFFIX_SO_VERSION)
PKG_CONFIG_APPEND_LIBS("dynamic-graph-python") set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION ${PROJECT_VERSION})
endif(SUFFIX_SO_VERSION)
# Search for Boost. target_compile_definitions(${PROJECT_NAME}
SET(BOOST_COMPONENTS python filesystem system thread program_options unit_test_framework) PRIVATE PYTHON_LIBRARY="${PYTHON_LIBRARY}")
SEARCH_FOR_BOOST()
SEARCH_FOR_EIGEN()
ADD_SUBDIRECTORY(src) install(
ADD_SUBDIRECTORY(include) TARGETS ${PROJECT_NAME}
ADD_SUBDIRECTORY(doc) EXPORT ${TARGETS_EXPORT_NAME}
ADD_SUBDIRECTORY(unitTesting) DESTINATION lib)
SETUP_PROJECT_FINALIZE() add_subdirectory(src)
if(BUILD_TESTING)
add_subdirectory(tests)
endif(BUILD_TESTING)
install(FILES package.xml DESTINATION share/${PROJECT_NAME})
GNU LESSER GENERAL PUBLIC LICENSE BSD 2-Clause License
Version 3, 29 June 2007
Copyright (c) 2011-2019, CNRS
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> Author: Stack of Tasks Development Team
Everyone is permitted to copy and distribute verbatim copies All rights reserved.
of this license document, but changing it is not allowed.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public * Redistributions of source code must retain the above copyright notice, this
License, supplemented by the additional permissions listed below. list of conditions and the following disclaimer.
0. Additional Definitions. * Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
As used herein, "this License" refers to version 3 of the GNU Lesser and/or other materials provided with the distribution.
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
"The Library" refers to a covered work governed by this License, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
other than an Application or a Combined Work as defined below. DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
An "Application" is any work that makes use of an interface provided DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
by the Library, but which is not otherwise based on the Library. SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
Defining a subclass of a class defined by the Library is deemed a mode CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
of using an interface provided by the Library. OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".
The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.
The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.
1. Exception to Section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.
2. Conveying Modified Versions.
If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:
a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or
b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.
3. Object Code Incorporating Material from Library Header Files.
The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:
a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license
document.
4. Combined Works.
You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:
a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.
c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.
d) Do one of the following:
0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.
1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)
5. Combined Libraries.
You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:
a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.
b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.
6. Revised Versions of the GNU Lesser General Public License.
The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.
If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.
CHANGELOG
----------------------
[Current]
* Synchronize
* Allow iterable instead of only tuple in signal value affectation.
* Synchronize.
* Fix compilation on Ubuntu 10.04 (32 bits).
* Fix Ubuntu 12.04 (64 bits) portability issues.
* Corrected the #include problem.
* Modify SignalBase.value.
[v2.5.3]
* Update ChangeLog.
* Fix pb with filesystem version.
[v2.5.2]
* Make runCommand without error messages deprecated.
* Changes std::cout to dgDEBUG.
* Add test to detect statement in evaluation.
* Synchronize cmake
* Robustify the python interpreter when some python objects cannot be stringified.
* Synchronize.
* Correct the link with boost on Ubuntu 11.04.
* Keep track of entities created via python.
* Document entity class types with the output of C++ getDocString method.
* In command Entity.help (), first print __doc__ if any.
* Make bindings more robust to exceptions.
* Make sure that Boost.Filesystem v2 is used.
* Revert "Add appropriate flag. file_system::file_string is deprecated since boost 1.46."
* Synchronize cmake submodule.
* Catch exceptions in getValue of signal-base-py.cc
* Add appropriate flag. file_system::file_string is deprecated since boost 1.46.
* Synchronize.
* Win32: Remove wrong LoadLibrary.
* Correct the handling of python modules
* Correct the link with boost for Mac systems
* Add missing dependency in python
* Correct the link with the plugins for the wrap
* Correct the Python_module handling
* Correct link and dependencies
* Clean cmake files by using the routines in cmake/python.cmake
* Win32: correct the library load
* Win32: Correct the API of exception-python.hh
* Revert "Correct the link with lapack"
* Correct the link with lapack
* Correct the link with boost libraries
* Python object SignalBase can be constructed only with a SignalBase C++ object.
* Revert "Modify SignalBase.value."
* Modify SignalBase.value.
[v2.5.1]
* Update NEWS.
* Add python binding for writing graph.
* Make error message more expressive.
* Enforce compatibility with python3.
* Replace dl module by DLFCN.
* More search for boost earlier in file.
* Synchronize and fix definition of PYTHON_SITELIB.
* Add dynamicgraph namespace to make VP_DEBUG mode compile.
* Minor changes in matlab display. Add a functor member to explicit the callable of optionalparentethis.
* Add tools.py file containing addTrace.
[v2.5]
* Replace call to g_caster by call to SignalCaster::getInstance static method.
* FactoryStorage and PoolStorage are now singletons.
* Homogeneize error messages.
* Fix bug in getCommandDocstring.
* Changed the factory to enable heritage for Entity py-classes.
* Return a python error instead of throwing C++ exception.
* Merge branches 'topic/jrl-mal' and 'topic/jrl-mal' of ssh://github.com/jrl-umi3218/dynamic-graph-python into topic/jrl-mal
* Correct a bug in parsing vector commands with integer value.
* Finished to correct the name of the DG error.
* Replace two remaining error by dgpyError.
* Correct exception throwing from C++ to rely raise something in the interpreter.
* Systematically catch std::exception abstract in python bindings.
* Corrected a wrong cast for specialized type in signal value accessor.
* Add method intepreter::python with stdout and stderr returned along with result.
* Make error message more specific whenever Entity.__getattr__ fails.
* Added a protection to avoid erasing signal name when setting a new value to the signal.
* Added the decorator optionalparentheses.
* Corrected a syntax error in an exception raising + remove the shortcut .m from the class basic definition.
* Corrected minor bug in command return.
* Added the entity.sigs shortcuts.
* Reorganize the command bindings of the entity classes. Remove the script shortcuts from the basic definition of Entity.
* Added the setattrpath function to handle for command name with . inside, like: robot.periodicCall.addSignal.
* Display repr() output instead of str() when command is successful.
* Do not add current directory in sys.path.
* Added a proper factory for pyEntities.
* Modify the "runFile" function that was not working, at create a new function to call for the shell.
* Changed the call to create_entity: when the required creation names already exists, check is the existing object is of the same class. If it is, returns the existing object instead of creating a new oine.
* IVIGIT.
* Added an exception to handle error while creating an object.
* Dynamically load libpython.so before initializing python interpreter.
* Add an accessor to get the global dictionary.
* Account for singleton rewriting of g_caster.
* Added a wrapper for entities of dg.
* Added display and displayDep in entity and signal.
* Bind SignalBase<T, int>::setTime.
* Revert "Set version number as 1.99."
* Fix --libs output of pkg-config and link boost and python with library.
* Added missing convert.cc in the makefile.
* Added some specific convertion for vector, matrix and double signal, from C to Python (to avoid unnecessary convertion through strings.
* IVIGIT: passes some conveertion code from entity-py to the new files, for mutualisation.
* Added exception.hh in the files to install.
* IVIGIT.
* Install and include in interpreter.hh api.hh.
* Fix installation of header file.
* Set version number as 1.99.
* Enable conversion from int to float and double in argument of bound functions.
* Added the display method, py-bound in __str__.
* Added a method to bound all new commands.
* Added a method to bound new commands dynamically.
* Define function display.
* Enable reading an int as a float when parsing a matrix.
* Added shortcuts in the entity and signal-base api to help debuging during online script execution.
* Added the unplug python function as a member of the signal-base class.
* Set sys.argv to [''] at initialization.
* Implement on-board python interpreter
* Added build and ~ in the gitignoe.
* Update docstring of Entity.signals().
* Bind SignalBase.display() and implement Entity.displaySignals() in python.
* Fix typo.
* Fix warnings.
* Save temporary changes to get list of signals of an entity.
* Synchronize cmake submodule.
* Raise exception when PyCObject_Check fails.
* Fix warnings.
* Switch to submodule.
* Do not destroy C++ entity when destroying python binding object.
* In Entity class, each signal gives rise to an attribute returning the signal.
* Change the error message when an attribute does not exist.
* Add a method getName in python class SignalBase
* Added the signals in the attribute of the entity class.
* With the doc.
* Added an helper to get the commands list and doc.
* Set error message in function w_plug when arguments are of wrong types.
* Add a function to get the list of type names registered for signals.
* Catch exception in SignalBase::recompute().
* Rename method display_signals -> displaySignals.
* Add recompute method in SignalBase python class.
* Add a function to get the list of type names registered for signals.
* Rename error
* Rewrite enableTrace command without using commandLine.
* Handle entity type as input to signal_base.value setter.
* Catch std::exception instead of dynamicgraph::ExceptionFactory.
* Remove debug output.
* Fix a bug in conversion of tuple of tuple python object to matrix.
* Rewrite stringToTuple and stringToMatrix in a simpler way.
* Set flags of dynamic loader so that symbols are global.
* Check that argument is string when string is expected in command.
* Catch std::exception when executing command
* Comply with jrl-mal syntax for vectors and matrices.
* Replace object member by obj in classes
* Rename method in python module
* When building python Entity classes, populate methods with docstrings.
* Use autotools substitution rule.
* Use submodule cmake to generate python documentation
* Add documentation generation using sphinx.
* Add submodule cmake
* Re-inforce type checking.
* Allow SignalBase.value to take typed arguments
* Remove debug output
* Remove debug output
* Implement tupleToString function
* Fix typo.
* Switch arguments of command plug.
* Fix a bug in handling of new types
* Support more types in command parameters
* Add a function to convert a string to a tuple
* Fix memory issue
* Remove trailing white spaces.
* Bind Entity commands as method in python classes
* Get rid of warning message
* Bind method Entity::getNewStyleCommandMap()
* Add a class attribute to store whether command methods have been created.
* Register Entity classes in modules from which they are imported
* Implement a function that creates a python class for for each entity C++ class
* Implement return value for commands.
* Fix a memory bug
* Add some debug output
* Implement binidings for commands
* Use factory to create entities.
* Bind method Entity::listEntities.
* Fix comment
* Make classes derive from object and re-introduce getter and setter decorators
* Remove registration of new ublas vector type.
* Call plug with right order for signals: plug (sigIn, sigOut).
* Rewrite dynamic_graph.plug.
* Use class InterpreterHelper instead of Interpreter.
* Catch exceptions in signal set and get value methods.
* Catch exceptions in signal set and get value methods.
* Do not use sophisticated setter and getter for the moment
* Change signal access method name in Entity python class
* Adapt to dynamic-graph change of interface
* Implement set and get signal value
* Fix constructor of python class SignalBase.
* Implement bindings for Entity and SignalBase C++ classes.
* Raise a python exception upon c++ exception in plug command
* Implement binding python for plug.
* Fix compilation of python module
* Bindings python for dynamic_grapĥ.
#
# Copyright
#
Installation instructions for library dynamic-graph-python
----------------------------------------------
It is recommended to create a specific directory to install this package.
mkdir build
cd build
cmake [Options] ..
make
make install
Options:
-DCMAKE_INSTALL_PREFIX=...
specifies the directory where to install the package.
-DCMAKE_BUILD_TYPE=[none|debug|release|relwithdebinfo|MinSizeRel]
specifies to type of compilation (release, debug, ...)
New in version 2.5.1 - 2011-12-07
* Move search for boost earlier in CMakeLists.txt,
* Use PyObject_IsTrue to test a boolean C/Python API,
* Replace deprecated python module dl module by DLFCN,
* use print as a function for python 3 compatibility,
* Modification of signal management for vector and matrix data,
* Python files are now installed in site-packages instead of dist-packages,
* Add tools.py file containing addTrace.
New in version 2.5 - 2011-06-21
dynamic-graph-python # dynamic-graph-python
====================
[![Build Status](https://travis-ci.org/stack-of-tasks/dynamic-graph-python.png?branch=master)](https://travis-ci.org/stack-of-tasks/dynamic-graph-python) [![Building Status](https://travis-ci.org/stack-of-tasks/dynamic-graph-python.svg?branch=master)](https://travis-ci.org/stack-of-tasks/dynamic-graph-python)
[![Coverage Status](https://coveralls.io/repos/stack-of-tasks/dynamic-graph-python/badge.png)](https://coveralls.io/r/stack-of-tasks/dynamic-graph-python) [![Pipeline status](https://gitlab.laas.fr/stack-of-tasks/dynamic-graph-python/badges/master/pipeline.svg)](https://gitlab.laas.fr/stack-of-tasks/dynamic-graph-python/commits/master)
[![Coverage report](https://gitlab.laas.fr/stack-of-tasks/dynamic-graph-python/badges/master/coverage.svg?job=doc-coverage)](http://projects.laas.fr/stack-of-tasks/doc/stack-of-tasks/dynamic-graph-python/master/coverage/)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/stack-of-tasks/dynamic-graph-python/master.svg)](https://results.pre-commit.ci/latest/github/stack-of-tasks/dynamic-graph-python)
Python bindings for dynamic-graph. Python bindings for dynamic-graph.
...@@ -13,52 +15,19 @@ submodules][git-submodules]. Please clone this repository using the ...@@ -13,52 +15,19 @@ submodules][git-submodules]. Please clone this repository using the
repository, you can run `git submodule init && git submodule update` repository, you can run `git submodule init && git submodule update`
to retrieve the submodules. to retrieve the submodules.
## Documentation
Documentation [Online](https://gepettoweb.laas.fr/doc/stack-of-tasks/dynamic-graph-python/master/doxygen-html/)
-------------
To get started with this library, please read the [online Doxygen
documentation][doxygen-documentation].
It can also be generated locally by running the `make doc` ## Getting Help
command. After the package is installed, the documentation will be
located in the `$prefix/share/doc/dynamic-graph` directoy where
`$prefix` is your installation prefix (`/usr/local` by default).
Getting Help
------------
Support is provided through: Support is provided through:
* the HPP mailing-list: hpp@laas.fr * the [issue tracker](https://github.com/stack-of-tasks/dynamic-graph-python/issues)
* the following HipChat room: http://www.hipchat.com/gh4wQrZeV * the matrix room [#stack-of-tasks:laas.fr](https://matrix.to/#/#stack-of-tasks:laas.fr)
How can I install dynamic-graph?
--------------------------------
### Installing dependencies
The matrix abstract layer depends on several packages which
have to be available on your machine.
- Libraries:
- [Boost][] (>= 1.40)
Its detection is controled by the `BOOST_ROOT` variable, see next section
for more information.
- [Lapack][] library
Use the generic purpose `CMAKE_CXX_FLAGS` and `CMAKE_EXE_LINKER_FLAGS`
to insert the flags required for the compiler to find your Lapack library
if it is installed in a non-standard directory.
- [jrl-mal][] library
- [dynamic-graph][] library
- System tools:
- [CMake][] (>=2.6)
- [pkg-config][]
- usual compilation tools (GCC/G++, make, etc.)
If you are using Ubuntu, these tools are gathered in the `build-essential` package.
## How can I install dynamic-graph?
### Compiling and installing the package ### Compiling and installing the package
...@@ -67,24 +36,21 @@ The manual compilation requires two steps: ...@@ -67,24 +36,21 @@ The manual compilation requires two steps:
1. configuration of the build and generation of the build files 1. configuration of the build and generation of the build files
2. compilation of the sources and installation of the package 2. compilation of the sources and installation of the package
dynamic-graph uses [CMake][] to generate build files. It is dynamic-graph uses CMake to generate build files. It is
recommended to create a separate build directory: recommended to create a separate build directory:
```sh ```sh
mkdir _build # (1) Create a build directory mkdir build
cd _build # (2) Go to the newly created build directory cd build
cmake [options] .. # (3) Generate the build files cmake ..
``` ```
Options which can be passed to CMake are detailed in the next section.
```sh ```sh
make # (4) Compile the package make
make test # (5) Execute the package tests make test
make install # (6) Install the package into the prefix (see step 3) make install
``` ```
### Options ### Options
Additional options can be set on the command line through the Additional options can be set on the command line through the
...@@ -108,14 +74,8 @@ Available options are: ...@@ -108,14 +74,8 @@ Available options are:
The test suite can be run from your build directory by running: The test suite can be run from your build directory by running:
```sh ```sh
make test make test
``` ```
Please open a ticket if some tests are failing on your computer, it Please open a ticket if some tests are failing on your computer, it
should not be the case. should not be the case.
Credits
-------
This package authors are credited in the [AUTHORS](AUTHORS) file.
Subproject commit 8e9b46446f92899025173f047b3950fcd21b89f4 Subproject commit 08c2c18b9033c2f0a86b885b589f4fa63a163caf
python-dynamic-graph (3.0.0-0ubuntu1ppa0~precise3) precise; urgency=low
* Update package dependencies
-- Rohan Budhiraja <budhiraja.rohan@gmail.com> Fri, 27 May 2016 18:51:23 +0200
python-dynamic-graph (3.0.0-0ubuntu1ppa0~precise2) precise; urgency=low
* Update package dependencies
-- Rohan Budhiraja <budhiraja.rohan@gmail.com> Fri, 27 May 2016 18:41:23 +0200
python-dynamic-graph (3.0.0-0ubuntu1ppa0~precise1) precise; urgency=low
* Initial release
-- Rohan Budhiraja <budhiraja.rohan@gmail.com> Wed, 04 May 2016 14:34:08 +0200
8
Source: python-dynamic-graph
Section: python
X-Python-Version: 2.6,2.7
Priority: extra
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Build-Depends: debhelper (>= 8.0.0),
cmake (>=2.6),
doxygen (>=1.6.3),
pkg-config (>=0.22),
python (<<2.8),
python (>=2.7),
python-sphinx (>=1.1),
libdynamic-graph-dev (>=3.0.0),
libboost-dev (>=1.46),
libboost-filesystem-dev (>=1.46),
libboost-python-dev (>=1.46),
libboost-system-dev (>=1.46),
libboost-test-dev (>=1.46),
libboost-thread-dev (>=1.46),
libboost-program-options-dev (>=1.46),
libeigen3-dev (>=3.0.5)
Standards-Version: 3.9.7
Homepage: http://stack-of-tasks.github.io/
Vcs-Git: git://github.com/proyan/dynamic-graph-python.git
Package: python-dynamic-graph-dev
Architecture: any
Suggests: python-dynamic-graph-doc
Depends: libdynamic-graph-python3.0.0 (= ${binary:Version}),
${misc:Depends}
Description: Python bindings for dynamic-graph library - Development Files
The dynamic graph library allows the representation of data-flow in C++.
It provides fast graph evaluation and a simple script language to manipulate
the graph actions.
.
This package contains dynamic-graph development files.
Package: python-dynamic-graph
Architecture: any
Suggests: python-dynamic-graph-doc
Provides: ${python:Provides}
Depends: libdynamic-graph-python3.0.0 (= ${binary:Version}), ${shlibs:Depends}, ${python:Depends}, ${misc:Depends}
Description: Python bindings for dynamic-graph library
The dynamic graph library allows the representation of data-flow in C++.
It provides fast graph evaluation and a simple script language to manipulate
the graph actions.
.
This package contains modules that allow you to use dynamic-graph from Python.
Package: libdynamic-graph-python3.0.0
Architecture: any
Suggests: python-dynamic-graph-doc
Pre-Depends: ${misc:Pre-Depends}
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Python bindings for dynamic-graph library (Binary and shared libraries)
The dynamic graph library allows the representation of data-flow in C++.
It provides fast graph evaluation and a simple script language to manipulate
the graph actions.
.
This package contains binaries and shared libraries.
Package: python-dynamic-graph-doc
Architecture: all
Section: doc
Depends: ${misc:Depends}
Description: Python bindings for dynamic-graph library (common documentation)
The dynamic graph library allows the representation of data-flow in C++.
It provides fast graph evaluation and a simple script language to manipulate
the graph actions.
.
This is the common documentation package
\ No newline at end of file
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0
Upstream-Name: dynamic-graph-python
Upstream-Contact: HPP mailing list <hpp@laas.fr>
Source: https://github.com/proyan/dynamic-graph-python
Files: *
Copyright: 2010-2016 JRL, CNRS/AIST.
License: LGPL-3
See `/usr/share/common-licenses/LGPL-3'.
Files: debian/*
Copyright: 2016 Rohan Budhiraja
License: LGPL-3
See `/usr/share/common-licenses/LGPL-3'.
\ No newline at end of file
NEWS
README.md