Hi all,
Have you ever thought how to deploy a component and
upload the properties with an absolute path?
ex.
this->getProvider< Marshalling >( "marshalling" )->readProperties(
"pidParameters.cpf" );
but do it in every path...
Greetings,
Fabrizio
Absolute path for component's properties
On Thu, Sep 19, 2013 at 10:39 AM, Fabrizio Boriero
<fabrizio [dot] boriero [..] ...> wrote:
>
> Hi all,
> Have you ever thought how to deploy a component and
> upload the properties with an absolute path?
>
> ex.
> this->getProvider< Marshalling >( "marshalling" )->readProperties( "pidParameters.cpf" );
>
> but do it in every path...
Can you explain your example / question more clearly ? You can specify
an absolute or relative path. The example you give will only work if
this file was in the same directory as the deployer was started (CWD).
We typically use rospack find to get an absolute path to a file we
look for, such that it works from any working directory, for example
with rosrun. If you don't have rosrun, you'll have to install your
package and then use an absolute path...
Peter