SDFormat Developer pages¶
SDFormat - SDF parser.
SDF is an XML file format that describes environments, objects, and robots in a manner suitable for robotic applications. SDF is capable of representing and describing different physic engines, lighting properties, terrain, static or dynamic objects, and articulated robots with various sensors, and acutators. The format of SDF is also described by XML, which facilitates updates and allows conversion from previous versions. A parser is also contained within this package that reads SDF files and returns a C++ interface.
Installation from source¶
Installation of the parser for the NRP can be performed in UNIX systems using the following steps :
# from the ``sdformat`` repository directory mkdir build/ cd build/ cmake -DCMAKE_INSTALL_PREFIX=$HOME/.local .. sudo make install
cmake parameters at configuring time:
USE_UPSTREAM_CFLAGS(bool) [default True] Use the SDFormat team compilation flags instead of the common set defined by cmake.
To uninstall the software installed with the previous steps:
#from the ``sdformat`` repository directory cd build/ sudo make uninstall
For speed-up of the Docker images build and deploy, we pre-build DEB package for SDFormat. We do not distribute this package, because it has limited usage, as soon as we prepare it to be installed into NRP Docker image and consider image’s file system structure. You can read here about the procedure of Debian packages building that we use.
You can also create Debian package for your purposes:
# from the ``sdformat`` repository directory mkdir build/ cd build/ cmake -DCMAKE_INSTALL_PREFIX=$HOME/.local .. sudo make package
The resulting DEB package will be created in the build directory. Note, that the further installation path is determined by