Skip to content

Commit 92b6945

Browse files
authored
Merge pull request #152 from compas-dev/bump-compas-0.15
Bump dependency to COMPAS 0.15.6
2 parents 8a8f9e7 + aea3d81 commit 92b6945

File tree

18 files changed

+268
-169
lines changed

18 files changed

+268
-169
lines changed

.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

CHANGELOG.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Unreleased
2020

2121
**Changed**
2222

23+
* Updated to ``COMPAS 0.15``
2324
* Construct ``full_configuration`` with ``values``, ``types``, ``joint_names`` in ``Robot`` rather than in ``MoveItPlanner``
2425
* ``MoveItPlanner`` returns ``start_configuration`` with set ``joint_names``
2526
* Removed parameter ``names`` from ``RobotArtist.update``
@@ -54,7 +55,7 @@ Unreleased
5455

5556
**Changed**
5657

57-
* Updated to COMPAS 0.13
58+
* Updated to ``COMPAS 0.13``
5859

5960
0.10.1
6061
----------
@@ -96,14 +97,14 @@ Unreleased
9697

9798
**Changed**
9899

99-
* Updated to COMPAS 0.11
100+
* Updated to ``COMPAS 0.11``
100101

101102
0.8.0
102103
----------
103104

104105
**Changed**
105106

106-
* Updated to COMPAS 0.10
107+
* Updated to ``COMPAS 0.10``
107108
* Add better support for passive joints on IK, Cartesian and Kinematic planning
108109

109110
**Fixed**
@@ -221,7 +222,7 @@ Unreleased
221222

222223
**Changed**
223224

224-
* Updated to COMPAS 0.4.10
225+
* Updated to ``COMPAS 0.4.10``
225226

226227
0.3.0
227228
----------
@@ -235,7 +236,7 @@ Unreleased
235236
**Changed**
236237

237238
* Renamed ``UrdfImporter`` to ``RosFileServerLoader``
238-
* Updated to COMPAS 0.4.8
239+
* Updated to ``COMPAS 0.4.8``
239240

240241
0.2.1
241242
----------
@@ -251,7 +252,7 @@ Unreleased
251252

252253
* First open source release!
253254
* V-REP and ROS clients
254-
* Updated to COMPAS 0.3.2
255+
* Updated to ``COMPAS 0.3.2``
255256

256257
0.1.0
257258
-----

docs/examples/01_fundamentals/02_coordinate_frames.rst

Lines changed: 1 addition & 1 deletion
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]

docs/examples/03_backends_ros/files/02_forward_kinematics.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@
88

99
print("Frame in the world coordinate system")
1010
print(frame_WCF)
11+
12+
assert str(frame_WCF.point) == 'Point(0.300, 0.100, 0.500)'

docs/examples/04_backends_vrep/01_simulation_with_vrep.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ that there is at least one valid configuration to reach the goal pose.
9292
with VrepClient() as client:
9393
robot = rfl.Robot('B')
9494
configs = client.inverse_kinematics(robot, goal_pose)
95+
96+
assert len(configs) > 0, 'No IK solution found'
9597
print('Found valid configuration: ', str(configs[-1]))
9698
9799
Basic path planning example

docs/examples/04_backends_vrep/files/01_complete_path_planning_example.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,5 @@
3636
shallow_state_search=fast_search)
3737

3838
print('Found path of %d steps' % len(path))
39+
40+
assert len(path) > 0, 'Path should not be empty'

docs/examples/04_backends_vrep/files/01_grasshopper_basic_example.ghx

Lines changed: 18 additions & 18 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)