Skip to content

Commit 6deeb06

Browse files
author
Jose Luis Rivero
authored
Prepare version 6.3.1 (#617)
* Prepare version 6.3.1 * Implement github actions for sdf6 branch Signed-off-by: Steve Peters <scpeters@openrobotics.org> Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
1 parent 41a2c3c commit 6deeb06

7 files changed

Lines changed: 108 additions & 4 deletions

File tree

.github/ci/after_make_test.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/sh -l
2+
3+
set -x
4+
5+
BUILD_DIR=`pwd`
6+
7+
# Install
8+
make install
9+
10+
# Compile examples
11+
cd ../examples
12+
mkdir build;
13+
cd build;
14+
cmake ..;
15+
make;
16+
./simple ../simple.sdf;
17+
18+
cd $BUILD_DIR

.github/ci/packages.apt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
libignition-math4-dev
2+
libignition-tools-dev
3+
libboost-system-dev
4+
libtinyxml-dev
5+
python-psutil
6+
ruby-dev

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Ubuntu
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
bionic-ci:
7+
runs-on: ubuntu-latest
8+
name: Ubuntu Bionic CI
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v2
12+
- name: Compile and test
13+
id: ci
14+
uses: ignition-tooling/action-ignition-ci@bionic
15+
with:
16+
codecov-enabled: true
17+
focal-ci:
18+
runs-on: ubuntu-latest
19+
name: Ubuntu Focal CI
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v2
23+
- name: Compile and test
24+
id: ci
25+
uses: ignition-tooling/action-ignition-ci@focal

.github/workflows/macos.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: macOS latest
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
8+
env:
9+
PACKAGE: sdformat6
10+
runs-on: macos-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Set up Homebrew
14+
id: set-up-homebrew
15+
uses: Homebrew/actions/setup-homebrew@master
16+
- run: brew config
17+
18+
- name: Install base dependencies
19+
run: |
20+
brew tap osrf/simulation;
21+
brew install --only-dependencies ${PACKAGE};
22+
23+
- run: mkdir build
24+
- name: cmake
25+
working-directory: build
26+
run: cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/${PACKAGE}/HEAD
27+
- run: make
28+
working-directory: build
29+
- run: make test
30+
working-directory: build
31+
env:
32+
CTEST_OUTPUT_ON_FAILURE: 1
33+
- name: make install
34+
working-directory: build
35+
run: |
36+
make install;
37+
brew link ${PACKAGE};
38+
- name: Compile example code
39+
working-directory: examples
40+
run: |
41+
mkdir build;
42+
cd build;
43+
cmake ..;
44+
make;
45+
./simple ../simple.sdf;

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ set (SDF_PROTOCOL_VERSION 1.6)
2929

3030
set (SDF_MAJOR_VERSION 6)
3131
set (SDF_MINOR_VERSION 3)
32-
set (SDF_PATCH_VERSION 0)
32+
set (SDF_PATCH_VERSION 1)
3333

3434
set (SDF_VERSION ${SDF_MAJOR_VERSION}.${SDF_MINOR_VERSION})
3535
set (SDF_VERSION_FULL ${SDF_MAJOR_VERSION}.${SDF_MINOR_VERSION}.${SDF_PATCH_VERSION})

Changelog.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
## SDFormat 6.0
22

3-
### SDFormat 6.X.X (20XX-XX-XX)
3+
### SDFormat 6.3.1 (2021-07-06)
4+
5+
1. Fix flattening logic for nested model names
6+
* [Pull request 597](https://github.com/osrf/sdformat/pull/597)
7+
8+
1. Translate poses of nested models inside other nested models
9+
* [Pull request 596](https://github.com/osrf/sdformat/pull/596)
10+
11+
### SDFormat 6.3.0 (2021-06-21)
412

513
1. Move recursiveSameTypeUniqueNames from ign.cc to parser.cc and make public.
614
* [Pull request 580](https://github.com/osrf/sdformat/pull/580)

test/integration/frame.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1297,7 +1297,8 @@ TEST(Frame, IncludeFrameWithSubmodel)
12971297
*/
12981298
sdf::ElementPtr modelElem = worldElem->GetElement("model");
12991299
EXPECT_EQ(modelElem->Get<std::string>("name"), "top_level_model");
1300-
sdf::ElementPtr modelPoseElem = modelElem->GetElement("link")->GetElement("pose");
1300+
sdf::ElementPtr modelPoseElem =
1301+
modelElem->GetElement("link")->GetElement("pose");
13011302
EXPECT_EQ(modelPoseElem->Get<ignition::math::Pose3d>(),
13021303
ignition::math::Pose3d(5, 5, 0, 0, 0, 0));
13031304
/* submodel: pose from parent is translated to model. links are the same
@@ -1310,7 +1311,8 @@ TEST(Frame, IncludeFrameWithSubmodel)
13101311
* </model>
13111312
*/
13121313
sdf::ElementPtr subModelElem = modelElem->GetElement("model");
1313-
EXPECT_EQ(subModelElem->Get<std::string>("name"), "box_with_submodel::submodel_of_box_with_submodel");
1314+
EXPECT_EQ(subModelElem->Get<std::string>("name"),
1315+
"box_with_submodel::submodel_of_box_with_submodel");
13141316
sdf::ElementPtr subModelPoseElem = subModelElem->GetElement("pose");
13151317
EXPECT_EQ(subModelPoseElem->Get<ignition::math::Pose3d>(),
13161318
ignition::math::Pose3d(5, 5, 0, 0, 0, 0));

0 commit comments

Comments
 (0)