Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

10 ➡️ master #462

Merged
merged 111 commits into from
Jan 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
111 commits
Select commit Hold shift + click to select a range
f7dcdd7
Properly handle the requirement of C++17 at the CMake exported target…
traversaro Apr 28, 2020
ed963ac
Collision: don't load Surface without <surface> (#268)
scpeters May 7, 2020
e3d8745
[sdf8] Changelog links to BitBucket backup (#239)
chapulina May 7, 2020
53653c3
[sdf9] Changelog links to BitBucket backup (#240)
chapulina May 8, 2020
4bdfb0a
Add sdf9 changelog entries for #240, #251, #268
scpeters May 15, 2020
e33839f
Observe the CMake variable BUILD_TESTING if it is defined (#269)
traversaro May 15, 2020
6ba0bbe
Param_TEST: test parsing +Inf and -Inf
scpeters May 13, 2020
b6f73d9
Add sdf9 changelog entries for #269, #277.
scpeters May 18, 2020
3f0d34b
Changelog links to BitBucket backup (#233)
chapulina Apr 13, 2020
7b31989
hgignore -> gitignore (#247)
mjcarroll Apr 21, 2020
966e472
changelog: Use terminology from README (#250)
EricCousineau-TRI Apr 28, 2020
3eef00b
Add github action CI for uploading to codecov (#255)
scpeters May 1, 2020
4ea8779
Simplify data embedding (#270)
jwnimmer-tri May 7, 2020
4b00ac7
Properly handle the requirement of C++17 at the CMake exported target…
traversaro Apr 28, 2020
55ce079
Collision: don't load Surface without <surface> (#268)
scpeters May 7, 2020
a439b6c
[master] Update BitBucket links
chapulina Apr 17, 2020
ba27c91
Don't install deprecated parser_urdf.hh header
scpeters May 11, 2020
4f4ee17
Fix cmake warning about newlines
scpeters May 11, 2020
6d1def8
Add sdf9 changelog entries for #240, #251, #268
scpeters May 15, 2020
8bb2614
Changelog: Explicitly cite "Custom elements and attributes" proposal …
EricCousineau-TRI May 16, 2020
1e21388
Make parsing of values syntactically more strict with bad values gene…
azeey Jun 4, 2020
7774b69
Prepare for release 10.0.0~pre1
j-rivero Jun 22, 2020
7630c8f
Remove redundant pre1 suffix in patch
j-rivero Jun 22, 2020
83eb29e
Enforce minimum/maximum values specified in SDFormat description file…
azeey Jun 25, 2020
50406fd
Remove deprecated Pose(), PoseFrame() functions from sdf10 (#308)
scpeters Jun 30, 2020
33d24e6
Backport bionic actions CI to sdf9 (#311)
scpeters Jun 30, 2020
7b7e533
Backport bionic actions CI to sdf8 (#310)
scpeters Jun 30, 2020
2968b25
Fix Actor.cc copy operators and restructure tests (#301)
luca-della-vedova Jul 1, 2020
45f9a0b
Observe the CMake variable BUILD_TESTING if it is defined (#269)
traversaro May 15, 2020
5a19c5b
Param_TEST: test parsing +Inf and -Inf
scpeters May 13, 2020
bd119e5
Add sdf9 changelog entries for #269, #277.
scpeters May 18, 2020
db28ef2
Migrate to using TinyXML2 (#264)
mjcarroll Jul 17, 2020
0f92607
Link privately to TinyXML2 (#321)
chapulina Jul 25, 2020
91b454f
Find python3 in cmake, fix warning (#328)
scpeters Aug 6, 2020
99b7d9f
Changelog for #328
scpeters Aug 6, 2020
de8b1f5
Find python3 in cmake, fix warning (#328)
scpeters Aug 6, 2020
39aad2b
Changelog for #328
scpeters Aug 6, 2020
99b5bbe
Changelog for #321
scpeters Aug 7, 2020
5b53e44
Normalize joint axis xyz vector when parsing from SDFormat (#312)
azeey Aug 7, 2020
7319836
[sdf9] Support nested models in DOM and frame semantics (#316)
scpeters Aug 17, 2020
436a848
bump to 9.3.0~pre1 (#337)
scpeters Aug 17, 2020
6ea6ae6
[sdf9] Support nested models in DOM and frame semantics (#316)
scpeters Aug 17, 2020
e25074d
sdf10: bump to 10.0.0~pre2 (#340)
scpeters Aug 18, 2020
d800d1c
Fix Actor.cc copy operators and restructure tests (#301)
luca-della-vedova Jul 1, 2020
c1376c8
Fix Actor.cc copy operators and restructure tests (#301)
luca-della-vedova Jul 1, 2020
8388f27
Support implicit nested canonical links (#341)
scpeters Sep 2, 2020
d506bf3
Support implicit nested canonical links (#341)
scpeters Sep 2, 2020
e9939a5
Store material file path information (#349)
nkoenig Sep 3, 2020
91a0bd8
Store material file path information (#349)
nkoenig Sep 3, 2020
fb50d22
Find python3 in cmake, fix warning (#328)
scpeters Aug 6, 2020
805a185
Add cmake option to disable console logfile (#348)
scpeters Sep 4, 2020
d03dba2
Store material file path information (#349)
nkoenig Sep 3, 2020
c62d8a3
Add collection labeler (#347) (#362)
chapulina Sep 7, 2020
a71d22b
Add collection labeler (#347) (#364)
chapulina Sep 7, 2020
be2b10d
Add collection labeler (#347) (#363)
chapulina Sep 7, 2020
94055d1
SearchForStuff: add logic to find urdfdom without pkg-config (#245)
traversaro Sep 7, 2020
e27010b
Changelog for 9.3.0 release (#368)
scpeters Sep 7, 2020
246d978
⬆️ 8.9.0 (#361)
chapulina Sep 8, 2020
7819366
Define PATH_MAX for Debian Hurd system (#369)
j-rivero Sep 9, 2020
b6c761b
Changelog for 8.9.0 (#361)
chapulina Sep 8, 2020
8bf7c92
SearchForStuff: add logic to find urdfdom without pkg-config (#245)
traversaro Sep 7, 2020
ef0c3be
Changelog for 9.3.0 release (#368)
scpeters Sep 7, 2020
adbfd16
Define PATH_MAX for Debian Hurd system (#369)
j-rivero Sep 9, 2020
be36f78
Changelog for 8.9.0 (#361)
chapulina Sep 8, 2020
b59e868
CMake fixes (#358)
joxoby Sep 7, 2020
095d88a
Add tinyxml2 to Config names (#360)
joxoby Sep 9, 2020
784eb19
Fix whitespace preservation behavior with TinyXML2 (#359)
mjcarroll Sep 10, 2020
5b02ffe
Return positive infinity instead of -1 for boundless positive values …
scpeters Sep 14, 2020
ca4eb5d
Bump to 10.0.0~pre3 and update changelog (#374)
scpeters Sep 14, 2020
bc8f413
JointAxis: remove UseParentModelFrame methods (#379)
scpeters Sep 29, 2020
7dc0866
Bump to 10.0.0, prepare for stable release (#377)
scpeters Sep 30, 2020
2917733
Fix supported shader types (normal_map_X_space) (#383)
chapulina Oct 9, 2020
dd7ce2e
Fix supported shader types (normal_map_X_space) (#383)
chapulina Oct 9, 2020
050d78d
Fix supported shader types (normal_map_X_space) (#383)
chapulina Oct 9, 2020
6094b9d
Make labeler work with PRs from forks (#390)
chapulina Oct 15, 2020
f9c31c9
Move list of debian dependencies to packages.apt (#392)
chapulina Oct 21, 2020
cfbae18
Prefix nested model names when flattening (#399)
scpeters Oct 30, 2020
d619e0a
Move list of debian dependencies to packages.apt (#392)
chapulina Oct 21, 2020
33bf356
Cherry-pick #392 to sdf10: Move list of debian dependencies to packag…
chapulina Oct 21, 2020
efd1a7f
Remove custom element warning/error (#402)
jennuine Nov 6, 2020
0d47aeb
Enable tests for #202 on macOS with Xcode 12+, add catalina workflow …
scpeters Nov 8, 2020
0e77816
Enable tests for #202 on macOS with Xcode 12+, add catalina workflow …
scpeters Nov 8, 2020
d0014d2
Add Sky DOM (#397)
iche033 Nov 16, 2020
c1e703d
Add <double_sided> to material spec (#410)
iche033 Nov 17, 2020
8cef85f
Test included model folders missing model.config (#422)
scpeters Nov 23, 2020
f5c8bd9
Prefix nested model names when flattening (#399)
scpeters Oct 30, 2020
a0d4807
Add Sky DOM (#397) (#417)
iche033 Nov 25, 2020
9995007
Decrease far clip lower bound (#435)
nkoenig Dec 14, 2020
940eb3b
Re-disable tests for #202, since they are broken (#438)
scpeters Dec 15, 2020
ef4a397
Decrease far clip lower bound. Forward port of #435 to sdf10 (#437)
nkoenig Dec 15, 2020
4805742
Add <double_sided> to material spec (#410)
iche033 Nov 17, 2020
66d934f
Update Migration guide
scpeters Nov 25, 2020
0ab54cf
Enable tests for #202 on macOS with Xcode 12+, add catalina workflow …
scpeters Nov 8, 2020
68bb12e
Make labeler work with PRs from forks (#390)
chapulina Oct 15, 2020
2f00ecf
Test included model folders missing model.config (#422)
scpeters Nov 23, 2020
79fe254
Re-disable tests for #202, since they are broken (#438)
scpeters Dec 15, 2020
5558a53
Update Migration guide
scpeters Nov 25, 2020
5e46adb
Add lightmap to 1.7 spec and PBR material DOM (#429)
iche033 Dec 15, 2020
7dbf121
Prepare for 10.1.0 (#442)
nkoenig Dec 15, 2020
48eb0ed
Merge branch 'sdf8' into sdf9
scpeters Dec 22, 2020
0bca996
Merge pull request #445 from scpeters/merge89
scpeters Dec 23, 2020
8063f0c
Added render_order to material (#446)
ahcorde Dec 28, 2020
32d96a6
Add Heightmap class (#388)
chapulina Jan 5, 2021
1be644d
Disable ign tests on Windows (sdf10) (#456)
j-rivero Jan 8, 2021
7abf3fb
9 ➡️ 10
chapulina Jan 12, 2021
2cf2c8c
Merge pull request #458 from osrf/chapulina/9_to_10
scpeters Jan 12, 2021
d3e318f
Merge remote-tracking branch 'upstream/sdf10' into 10_to_master_merge
azeey Jan 12, 2021
96bf374
Fix version
azeey Jan 13, 2021
fa7043a
Removed unused files
azeey Jan 13, 2021
5547921
Fix use of deprecated functions
azeey Jan 13, 2021
f87be50
Remove linux-ubuntu-bionic workflow file
azeey Jan 13, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: macOS latest

on: [push, pull_request]

jobs:
build:

env:
PACKAGE: sdformat10
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
- run: brew config

- name: Install base dependencies
run: |
brew tap osrf/simulation;
brew install --only-dependencies ${PACKAGE};

- run: mkdir build
- name: cmake
working-directory: build
run: cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/${PACKAGE}/HEAD
- run: make
working-directory: build
- run: make test
working-directory: build
env:
CTEST_OUTPUT_ON_FAILURE: 1
- name: make install
working-directory: build
run: |
make install;
brew link ${PACKAGE};
- name: Compile example code
working-directory: examples
run: |
mkdir build;
cd build;
cmake ..;
make;
./simple ../simple.sdf;
2 changes: 1 addition & 1 deletion .github/workflows/pr-collection-labeler.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: PR Collection Labeler

on: pull_request
on: pull_request_target

jobs:
pr_collection_labeler:
Expand Down
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ set(sdf_import_target_name ${PROJECT_EXPORT_NAME}::${sdf_target})
set(sdf_target_output_filename "${sdf_target}-targets.cmake")


OPTION(SDFORMAT_DISABLE_CONSOLE_LOGFILE "Disable the sdformat console logfile" OFF)

if (USE_FULL_RPATH)
# use, i.e. don't skip the full RPATH for the build tree
set(CMAKE_SKIP_BUILD_RPATH FALSE)
Expand Down
86 changes: 82 additions & 4 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,83 @@

### libsdformat 10.X.X (202X-XX-XX)

### libsdformat 10.0.0 (202X-XX-XX)
### libsdformat 10.1.0 (2020-12-15)

1. Normalize joint axis xyz vector when parsing from SDFormat
1. Fix supported shader types (`normal_map_X_space`)
* [Pull request 383](https://github.com/osrf/sdformat/pull/383)

1. Prefix nested model names when flattening
* [Pull request 399](https://github.com/osrf/sdformat/pull/399)

1. Move list of debian dependencies to packages.apt
* [Pull request 392](https://github.com/osrf/sdformat/pull/392)

1. Remove custom element warning/error.
* [Pull request 402](https://github.com/osrf/sdformat/pull/402)

1. Add Sky DOM.
* [Pull request 397](https://github.com/osrf/sdformat/pull/397)

1. Add `<double_sided>` to material spec.
* [Pull request 410](https://github.com/osrf/sdformat/pull/410)

1. Decrease far clip lower bound.
* [Pull request 437](https://github.com/osrf/sdformat/pull/437)

1. Enable/disable tests for issue #202, add macOS workflow.
* [Pull request 414](https://github.com/osrf/sdformat/pull/414)
* [Pull request 438](https://github.com/osrf/sdformat/pull/438)
* [Issue 202](https://github.com/osrf/sdformat/issues/202)

1. Make labeler work with PRs from forks.
* [Pull request 390](https://github.com/osrf/sdformat/pull/390)

1. Test included model folder missing model.config
* [Pull request 422](https://github.com/osrf/sdformat/pull/422)

1. Add lightmap to 1.7 spec and PBR material DOM
* [Pull request 429](https://github.com/osrf/sdformat/pull/429)

### libsdformat 10.0.0 (2020-09-28)

1. Return positive `INF` instead of `-1` in DOM API for unbounded symmetric joint limits.
* [Pull request 357](https://github.com/osrf/sdformat/pull/357)

1. Add cmake option to disable console logfile.
* [Pull request 348](https://github.com/osrf/sdformat/pull/348)

1. CMake fixes: include CMakePackageConfigHelpers and use modern cmake target for ignition math.
* [Pull request 358](https://github.com/osrf/sdformat/pull/358)

1. Cmake: add tinyxml2 to Config names.
* [Pull request 360](https://github.com/osrf/sdformat/pull/360)

1. Define `PATH_MAX` for Debian Hurd system.
* [Pull request 369](https://github.com/osrf/sdformat/pull/369)

1. Normalize joint axis xyz vector when parsing from SDFormat.
* [Pull request 312](https://github.com/osrf/sdformat/pull/312)

1. Migrate to using TinyXML2.
* [Pull request 264](https://github.com/osrf/sdformat/pull/264)
* [Pull request 321](https://github.com/osrf/sdformat/pull/321)
* [Pull request 359](https://github.com/osrf/sdformat/pull/359)

1. Enforce minimum/maximum values specified in SDFormat description files.
* [Pull request 303](https://github.com/osrf/sdformat/pull/303)

1. Make parsing of values syntactically more strict with bad values generating an error.
* [Pull request 244](https://github.com/osrf/sdformat/pull/244)

1. Don't install deprecated parser_urdf.hh header file, fix cmake warning about newline file, fix cmake warning about newlines.
1. Don't install deprecated parser\_urdf.hh header file, fix cmake warning about newline file, fix cmake warning about newlines.
* [Pull request 276](https://github.com/osrf/sdformat/pull/276)

1. Remove deprecated Pose(), PoseFrame() functions from DOM objects.
* [Pull request 308](https://github.com/osrf/sdformat/pull/308)

1. Remove deprecated UseParentModelFrame methods from JointAxis DOM.
* [Pull request 379](https://github.com/osrf/sdformat/pull/379)

1. Changed the default radius of a Cylinder from 1.0 to 0.5 meters.
* [BitBucket pull request 643](https://osrf-migration.github.io/sdformat-gh-pages/#!/osrf/sdformat/pull-requests/643)

Expand All @@ -53,6 +109,9 @@

### SDFormat 9.3.0 (2020-XX-XX)

1. Store material file path information.
+ [Pull request 349](https://github.com/osrf/sdformat/pull/349)

1. Support nested models in DOM and frame semantics.
* [Pull request 316](https://github.com/osrf/sdformat/pull/316)
+ [Pull request 341](https://github.com/osrf/sdformat/pull/341)
Expand All @@ -63,12 +122,19 @@
1. Fix Actor copy operators and increase test coverage.
* [Pull request 301](https://github.com/osrf/sdformat/pull/301)

1. GitHub Actions CI, pull request labels.
* [Pull request 311](https://github.com/osrf/sdformat/pull/311)
* [Pull request 363](https://github.com/osrf/sdformat/pull/363)

1. Change bitbucket links to GitHub.
* [Pull request 240](https://github.com/osrf/sdformat/pull/240)

1. Param_TEST: test parsing +Inf and -Inf.
1. Param\_TEST: test parsing +Inf and -Inf.
* [Pull request 277](https://github.com/osrf/sdformat/pull/277)

1. SearchForStuff: add logic to find urdfdom without pkg-config.
* [Pull request 245](https://github.com/osrf/sdformat/pull/245)

1. Observe the CMake variable `BUILD_TESTING` if it is defined.
* [Pull request 269](https://github.com/osrf/sdformat/pull/269)

Expand Down Expand Up @@ -272,9 +338,21 @@

### libsdformat 8.X.X (202X-XX-XX)

### SDFormat 8.9.0 (2020-09-04)

1. Find python3 in cmake, fix warning
* [Pull request 328](https://github.com/osrf/sdformat/pull/328)

1. Store material file path information
* [Pull request 349](https://github.com/osrf/sdformat/pull/349)

1. Fix Actor copy operators and increase test coverage.
* [Pull request 301](https://github.com/osrf/sdformat/pull/301)

1. Migration to GitHub: CI, links...
* [Pull request 239](https://github.com/osrf/sdformat/pull/239)
* [Pull request 310](https://github.com/osrf/sdformat/pull/310)

1. Increase output precision of URDF to SDF conversion, output -0 as 0.
* [BitBucket pull request 675](https://osrf-migration.github.io/sdformat-gh-pages/#!/osrf/sdformat/pull-requests/675)

Expand Down
12 changes: 12 additions & 0 deletions Migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ but with improved human-readability..
+ const std::string &PoseFrame()
+ void SetPoseFrame(const std::string &)

1. + Removed deprecated functions from **sdf/JointAxis.hh**:
+ bool UseParentModelFrame()
+ void SetUseParentModelFrame(bool)

### Additions

1. **sdf/Element.hh**
Expand Down Expand Up @@ -331,6 +335,14 @@ but with improved human-readability..
+ required: 0
+ [BitBucket pull request 589](https://osrf-migration.github.io/sdformat-gh-pages/#!/osrf/sdformat/pull-requests/589)

1. **material.sdf** `//material/double_sided` element
+ description: Flag to indicate whether the mesh that this material is applied to
will be rendered as double sided.
+ type: bool
+ default: false
+ required: 0
+ [pull request 418](https://github.com/osrf/sdformat/pull/418)

1. **model.sdf** `//model/@canonical_link` attribute
+ description: The name of the canonical link in this model to which the
model's implicit frame is attached. This implies that a model must have
Expand Down
15 changes: 14 additions & 1 deletion cmake/SearchForStuff.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ if (NOT DEFINED USE_INTERNAL_URDF OR NOT USE_INTERNAL_URDF)
pkg_check_modules(URDF urdfdom>=1.0)

if (NOT URDF_FOUND)
if (NOT DEFINED USE_INTERNAL_URDF)
find_package(urdfdom)
if (urdfdom_FOUND)
set(URDF_INCLUDE_DIRS ${urdfdom_INCLUDE_DIRS})
# ${urdfdom_LIBRARIES} already contains absolute library filenames
set(URDF_LIBRARY_DIRS "")
set(URDF_LIBRARIES ${urdfdom_LIBRARIES})
elseif (NOT DEFINED USE_INTERNAL_URDF)
message(STATUS "Couldn't find urdfdom >= 1.0, using internal copy")
set(USE_INTERNAL_URDF true)
else()
Expand Down Expand Up @@ -94,6 +100,13 @@ macro (check_gcc_visibility)
check_cxx_compiler_flag(-fvisibility=hidden GCC_SUPPORTS_VISIBILITY)
endmacro()

########################################
# Find ignition cmake2
# Only for using the testing macros, not really
# being use to configure the whole project
find_package(ignition-cmake2 2.3 REQUIRED)
set(IGN_CMAKE_VER ${ignition-cmake2_VERSION_MAJOR})

########################################
# Find ignition math
# Set a variable for generating ProjectConfig.cmake
Expand Down
1 change: 1 addition & 0 deletions cmake/sdf_config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#cmakedefine BUILD_TYPE_RELEASE 1
#cmakedefine HAVE_URDFDOM 1
#cmakedefine USE_INTERNAL_URDF 1
#cmakedefine SDFORMAT_DISABLE_CONSOLE_LOGFILE 1

#define SDF_SHARE_PATH "${CMAKE_INSTALL_FULL_DATAROOTDIR}/"
#define SDF_VERSION_PATH "${CMAKE_INSTALL_FULL_DATAROOTDIR}/sdformat${SDF_MAJOR_VERSION}/${SDF_PKG_VERSION}"
2 changes: 2 additions & 0 deletions include/sdf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ set (headers
Frame.hh
Geometry.hh
Gui.hh
Heightmap.hh
Imu.hh
Joint.hh
JointAxis.hh
Expand All @@ -42,6 +43,7 @@ set (headers
SDFImpl.hh
SemanticPose.hh
Sensor.hh
Sky.hh
Sphere.hh
Surface.hh
Types.hh
Expand Down
5 changes: 4 additions & 1 deletion include/sdf/Console.hh
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ namespace sdf
const std::string &file,
unsigned int line, int color);

/// \brief Use this to output a message to a log file
/// \brief Use this to output a message to a log file at
/// `$HOME/.sdformat/sdformat.log`.
/// To disable this log file, define the following symbol when
/// compiling: SDFORMAT_DISABLE_CONSOLE_LOGFILE
/// \return Reference to output stream
public: ConsoleStream &Log(const std::string &lbl,
const std::string &file,
Expand Down
15 changes: 15 additions & 0 deletions include/sdf/Geometry.hh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ namespace sdf
class Capsule;
class Cylinder;
class Ellipsoid;
class Heightmap;
class Mesh;
class Plane;
class Sphere;
Expand All @@ -59,6 +60,9 @@ namespace sdf
/// \brief A mesh geometry.
MESH = 5,

/// \brief A heightmap geometry.
HEIGHTMAP = 6,

/// \brief A capsule geometry.
CAPSULE = 7,

Expand Down Expand Up @@ -189,6 +193,17 @@ namespace sdf
/// \param[in] _mesh The mesh shape.
public: void SetMeshShape(const Mesh &_mesh);

/// \brief Get the heightmap geometry, or nullptr if the contained geometry
/// is not a heightmap.
/// \return Pointer to the heightmap geometry, or nullptr if the geometry is
/// not a heightmap.
/// \sa GeometryType Type() const
public: const Heightmap *HeightmapShape() const;

/// \brief Set the heightmap shape.
/// \param[in] _heightmap The heightmap shape.
public: void SetHeightmapShape(const Heightmap &_heightmap);

/// \brief Get a pointer to the SDF element that was used during
/// load.
/// \return SDF element pointer. The value will be nullptr if Load has
Expand Down
Loading