|
Due to the distributed nature of the ArmarX package structure the location of package dependent data files is different on each system. Hence, ArmarX provides the ArmarXDataPath methods that allow to locate the local absolute file path of files which are stored in an ArmarX package data directory.
Assuming you have a file "myDataFile.txt" stored in the data directory of your package "MyArmarXPackage". On your filesystem the location looks like this:
In order to access the file, you will need the absolute filename. With the ArmarXPackageFinder in combination with the ArmarXDataPath methods this is easy:
To see what paths a package contains see locatePackage command
Also refer to the Academy for further information.