Skip to content

Commit 3a10f8b

Browse files
committed
Merge branch 'master' of github.com:compas-dev/compas_fab into robots_planning_scene_docs
2 parents 5697c2e + 97f17dd commit 3a10f8b

31 files changed

+391
-206
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.10.2
2+
current_version = 0.11.0
33
message = Bump version to {new_version}
44
commit = True
55
tag = True

.deepsource.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version = 1
2+
3+
test_patterns = ["*/tests/**"]
4+
5+
[[analyzers]]
6+
name = "python"
7+
enabled = true
8+
9+
[analyzers.meta]
10+
runtime_version = "3.x.x"
11+
12+
[[analyzers]]
13+
name = "test-coverage"
14+
enabled = true

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ _Put an `x` in the boxes that apply. You can also fill these out after creating
1515

1616
- [ ] I added a line to the `CHANGELOG.rst` file in the `Unreleased` section under the most fitting heading (e.g. `Added`, `Changed`, `Removed`).
1717
- [ ] I ran all tests on my computer and it's all green (i.e. `invoke test`).
18-
- [ ] I ran lint on my computer and there are no errors (i.e. `invoke lint`) .
18+
- [ ] I ran lint on my computer and there are no errors (i.e. `invoke lint`).
1919
- [ ] I added new functions/classes and made them available on a second-level import, e.g. `compas_fab.robots.Configuration`.
2020
- [ ] I have added tests that prove my fix is effective or that my feature works.
2121
- [ ] I have added necessary documentation (if appropriate)

.travis.yml

Lines changed: 67 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,84 @@
1-
# Base language is Python, but that does not work on macOs & Windows builds
2-
language: python
1+
# Based on https://docs.travis-ci.com/user/languages/python/#running-python-tests-on-multiple-operating-systems
2+
language: python # this works for Linux but is an error on macOS or Windows
33

4-
matrix:
4+
jobs:
55
include:
6-
- name: "Python 2.7: Windows"
7-
os: windows
8-
language: shell
9-
before_install:
10-
- choco install python2 vcredist2008
11-
- choco install --ignore-dependencies vcpython27
12-
env:
13-
- PATH=/c/Python27:/c/Python27/Scripts:$PATH
14-
- TRAVIS_PYTHON_VERSION=2.7
15-
- name: "Python 3.7: Windows"
16-
os: windows
17-
language: shell
18-
before_install:
19-
- choco install python3 --version=3.7.4
20-
env:
21-
- PATH=/c/Python37:/c/Python37/Scripts:$PATH
22-
- TRAVIS_PYTHON_VERSION=3.7
23-
- name: "Python 3.7: Xenial Linux"
24-
python: 3.7
25-
dist: xenial
26-
# Pytest doctests are only enabled for Linux
27-
# because they are integration tests and need ROS running on Docker
6+
# Latest python releases on all 3 OSes
7+
- name: "Python 3.8 on Xenial Linux"
8+
python: 3.8 # this works for Linux but is ignored on macOS or Windows
289
env:
29-
- TRAVIS_PYTHON_VERSION=3.7
30-
- PYTEST_ADDOPTS=--doctest-modules
10+
- TRAVIS_RUN_LINTER=true
11+
- TRAVIS_RUN_INTEGRATION_TESTS=true
3112
- TRAVIS_GENERATE_DOCS=true
13+
- TRAVIS_PYTHON_IMPLEMENTATION="cpython"
3214
services: docker
33-
before_install:
15+
before_script:
3416
- docker run -p 19997:19997 --name vrep_rfl -d gramaziokohler/vrep-rfl
3517
- docker-compose -f "docs/backends/files/ur5-demo/docker-compose.yml" up -d --build
3618
- docker ps -a
3719
after_script:
3820
- docker-compose -f "docs/backends/files/ur5-demo/docker-compose.yml" down
3921
- docker rm -f vrep_rfl
40-
- name: "Python 3.7: macOS"
22+
- name: "Python 3.7 on macOS"
4123
os: osx
42-
osx_image: xcode11.2
24+
osx_image: xcode11.2 # Python 3.7.4 running on macOS 10.14.4
25+
language: shell # 'language: python' is an error on Travis CI macOS
26+
env:
27+
- TRAVIS_PYTHON_IMPLEMENTATION="cpython"
28+
- name: "Python 3.8 on Windows"
29+
os: windows # Windows 10.0.17134 N/A Build 17134
30+
language: shell # 'language: python' is an error on Travis CI Windows
31+
before_install:
32+
- choco install python --version=3.8.0
33+
- pip3 install --user --upgrade pip
34+
- pip3 install cython --install-option="--no-cython-compile"
35+
env:
36+
- PATH=/c/Python38:/c/Python38/Scripts:$PATH
37+
- TRAVIS_PYTHON_IMPLEMENTATION="cpython"
38+
# Older Python releases
39+
- name: "Python 3.6 on Xenial Linux"
40+
python: 3.6
41+
env:
42+
- TRAVIS_PYTHON_IMPLEMENTATION="cpython"
43+
# IronPython monstrosity
44+
- name: "IronPython 2.7: Windows"
45+
os: windows
4346
language: shell
44-
env: TRAVIS_PYTHON_VERSION=3.7
47+
before_install:
48+
- choco install ironpython --version=2.7.8.1
49+
- ipy -X:Frames -m ensurepip
50+
- ipy -X:Frames -m pip install --no-deps compas roslibpy
51+
- ipy -X:Frames -m pip install ironpython-pytest
52+
script:
53+
- ipy tests/ipy_test_runner.py
54+
env:
55+
- TRAVIS_PYTHON_IMPLEMENTATION="ironpython"
56+
- IRONPYTHONPATH=$TRAVIS_BUILD_DIR/src
57+
58+
59+
# all three OSes agree about 'pip3'
60+
before_install:
61+
- if [[ "$TRAVIS_PYTHON_IMPLEMENTATION" == "cpython" ]]; then
62+
pip3 install --upgrade pip;
63+
pip3 install cython --install-option="--no-cython-compile";
64+
fi
4565

4666
install:
47-
- pip3 install cython --install-option="--no-cython-compile" || pip install cython --install-option="--no-cython-compile"
48-
- pip3 install --no-cache-dir -r requirements-dev.txt || pip install --no-cache-dir -r requirements-dev.txt
67+
- if [[ "$TRAVIS_PYTHON_IMPLEMENTATION" == "cpython" ]]; then
68+
pip3 install --no-cache-dir -r requirements-dev.txt;
69+
fi
4970

5071
script:
51-
# The following syntax with || is taken directly from Travis CI documentation:
52-
# https://docs.travis-ci.com/user/languages/python/#running-python-tests-on-multiple-operating-systems
53-
# 'python' points to Python 2.7 on macOS but points to Python 3.8 on Linux and Windows
54-
# 'python3' is a 'command not found' error on Windows but 'py' works on Windows only
55-
- python3 -c "import compas_fab" || python -c "import compas_fab"
56-
- python3 -c "import compas_fab.backends" || python -c "import compas_fab.backends"
57-
- python3 -c "from compas_fab.backends.vrep.remote_api import vrep" || python -c "from compas_fab.backends.vrep.remote_api import vrep"
58-
- python3 -c "import compas_fab.robots" || python -c "import compas_fab.robots"
59-
- python3 -c "import compas_fab.utilities" || python -c "import compas_fab.utilities"
60-
- if [[ "$TRAVIS_PYTHON_VERSION" == "3.7" ]]; then
61-
python3 -m invoke lint || python -m invoke lint;
62-
fi
63-
- python3 -m invoke test || python -m invoke test
64-
- if [[ "$TRAVIS_GENERATE_DOCS" == "true" ]]; then
65-
python3 -m invoke docs || python -m invoke docs;
66-
fi
72+
- if [[ "$TRAVIS_RUN_LINTER" == "true" ]]; then
73+
invoke lint;
74+
fi
75+
- if [[ "$TRAVIS_RUN_INTEGRATION_TESTS" == "true" ]]; then
76+
invoke test --doctest --codeblock;
77+
else
78+
invoke test;
79+
fi;
80+
81+
after_success:
82+
- if [[ "$TRAVIS_GENERATE_DOCS" == "true" ]]; then
83+
invoke docs;
84+
fi

AUTHORS.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ If you use COMPAS FAB in a project, please use the following citation:
2222
},
2323
howpublished={https://github.com/compas-dev/compas\_fab/},
2424
note={Gramazio Kohler Research, ETH Z\"{u}rich},
25-
year={2018}
25+
year={2018},
26+
doi={10.5281/zenodo.3469478},
27+
url={https://doi.org/10.5281/zenodo.3469478},
2628
}
2729
2830
Authors

CHANGELOG.rst

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,27 @@ Unreleased
1313

1414
**Added**
1515

16+
**Changed**
17+
18+
**Fixed**
19+
20+
**Deprecated**
21+
22+
**Removed**
23+
24+
0.11.0
25+
----------
26+
27+
**Added**
28+
1629
* Added optional ``joint_names`` to ``Configuration``
1730
* Added ``Configuration.scaled``
1831
* Added ``full_joint_state`` to ``Robot.inverse_kinematics``
1932
* Added ``Semantics.get_all_configurable_joints``
2033

2134
**Changed**
2235

36+
* Updated to ``COMPAS 0.15``
2337
* Construct ``full_configuration`` with ``values``, ``types``, ``joint_names`` in ``Robot`` rather than in ``MoveItPlanner``
2438
* ``MoveItPlanner`` returns ``start_configuration`` with set ``joint_names``
2539
* Removed parameter ``names`` from ``RobotArtist.update``
@@ -36,15 +50,11 @@ Unreleased
3650
* :meth:`compas_fab.robots.CollisionMesh.scale` now takes a scale factor
3751
instead of a :class:`compas.geometry.Scale` instance as an argument.
3852

39-
**Removed**
40-
4153
**Fixed**
4254

4355
* Convert constraints on inverse kinematics and cartesian planner to ROS messages
4456
* Fix support for trajectory constraints on kinematic planner
4557

46-
**Deprecated**
47-
4858
0.10.2
4959
----------
5060

@@ -54,7 +64,7 @@ Unreleased
5464

5565
**Changed**
5666

57-
* Updated to COMPAS 0.13
67+
* Updated to ``COMPAS 0.13``
5868

5969
0.10.1
6070
----------
@@ -96,14 +106,14 @@ Unreleased
96106

97107
**Changed**
98108

99-
* Updated to COMPAS 0.11
109+
* Updated to ``COMPAS 0.11``
100110

101111
0.8.0
102112
----------
103113

104114
**Changed**
105115

106-
* Updated to COMPAS 0.10
116+
* Updated to ``COMPAS 0.10``
107117
* Add better support for passive joints on IK, Cartesian and Kinematic planning
108118

109119
**Fixed**
@@ -221,7 +231,7 @@ Unreleased
221231

222232
**Changed**
223233

224-
* Updated to COMPAS 0.4.10
234+
* Updated to ``COMPAS 0.4.10``
225235

226236
0.3.0
227237
----------
@@ -235,7 +245,7 @@ Unreleased
235245
**Changed**
236246

237247
* Renamed ``UrdfImporter`` to ``RosFileServerLoader``
238-
* Updated to COMPAS 0.4.8
248+
* Updated to ``COMPAS 0.4.8``
239249

240250
0.2.1
241251
----------
@@ -251,7 +261,7 @@ Unreleased
251261

252262
* First open source release!
253263
* V-REP and ROS clients
254-
* Updated to COMPAS 0.3.2
264+
* Updated to ``COMPAS 0.3.2``
255265

256266
0.1.0
257267
-----

CONTRIBUTING.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ introduction/examples/usage documentation or API documentation in docstrings.
6060
Documentation is written in `reStructuredText <http://docutils.sourceforge.net/rst.html>`_
6161
and use `Sphinx <http://sphinx-doc.org/index.html>`_ to generate the HTML output.
6262

63+
The project uses Numpy style docstrings, see
64+
`Sphinx extension Napoleon's documentation <https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_numpy.html>`_
65+
for examples.
66+
6367
Once you made the documentation changes locally, run the documentation generation::
6468

6569
invoke docs

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
year = '2018'
3030
author = 'Gramazio Kohler Research'
3131
copyright = '{0}, {1}'.format(year, author)
32-
version = release = '0.10.2'
32+
version = release = '0.11.0'
3333

3434
pygments_style = 'sphinx'
3535
show_authors = True

docs/examples/01_fundamentals/02_coordinate_frames.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ before sending it as a target pose to the robot.
103103
104104
robot = Robot(robot_model)
105105
106-
print("robot coordinate frame", robot.get_RCF())
106+
print("robot coordinate frame (base)", robot.get_base_frame())
107107
108108
point = [6.0, 4.0, 2.0]
109109
xaxis = [-1.0, 0.0, 0.0]
@@ -122,5 +122,4 @@ Links
122122
=====
123123

124124
* `ROS REP-105: Coordinate Frames for Mobile Platforms <http://www.ros.org/reps/rep-0105.html#id15>`_
125-
* `ABB: What is a coordinate system? <http://developercenter.robotstudio.com/blobproxy/devcenter/RobotStudio/html/4eac08e9-c42c-446f-bbd4-228e523dd2d5.htm>`_
126125

docs/examples/03_backends_ros/01_ros_examples.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ First step
1717
The first step is to connect to ROS to verify that the system is working.
1818

1919
Copy and paste the following example into any Python environment
20-
(a standalong script, a CAD environment, etc) and run it, you should
20+
(a standalone script, a CAD environment, etc) and run it, you should
2121
see the output ``Connected: True`` if everything is working properly:
2222

2323
.. code-block:: python
@@ -95,7 +95,7 @@ Open a command prompt and start the talker:
9595

9696
::
9797

98-
python 01_ros_hello_world_listener.py
98+
python 01_ros_hello_world_talker.py
9999

100100

101101
Now open a second command prompt and start the listener:

0 commit comments

Comments
 (0)