Code Monkey home page Code Monkey logo

Comments (5)

traversaro avatar traversaro commented on August 18, 2024 1

is incorrect and should be:

Fix suggested in #683 .

However, this is no longer documented.

What is no longer documented?

If you are ok putting the wrapper in its own robotinterface and avoid using the implicit wrapper, you can see how to use the plugin in https://github.com/robotology/gazebo-yarp-plugins/tree/29d474fbc674ef0f402cc9b42056bab88f99eb88/tutorial/model/basestate .

from gazebo-yarp-plugins.

traversaro avatar traversaro commented on August 18, 2024 1

For instance, something it is not clear to me is where to add the config file:

In the documentation, there is written (it seems it should be placed in model://)

 *          <yarpConfigurationFile>model://path-to-the-configuration-file</yarpConfigurationFile>

can I add it to the path of the world file? I would like to have the config file in a config folder next to world file

.
└── rl_ergoCubGazeboV1_1
    ├── config
    │   └── base_estimator.ini
    └── world

yarpConfigurationFile arguments are parsed via the gazebo::common::SystemPaths::Instance()->FindFileURI() (see

std::string ini_file_path = gazebo::common::SystemPaths::Instance()->FindFileURI(ini_file_name);
). In a nutshell, they will expand the model://path/to/a/file.txt looking if for each model_path the paths in GAZEBO_MODEL_PATH there exist the file <model_path>/path/to/a/file.txt (you can find the logic in https://github.com/gazebosim/gazebo-classic/blob/gazebo11_11.14.0/gazebo/common/SystemPaths.cc#L315-L339).

So, if you want to find it, you need to put some of its parents path in GAZEBO_MODEL_PATH. However, that may be inconvenient. There is any reason why you do not want to use yarpConfigurationString instead?

from gazebo-yarp-plugins.

GiulioRomualdi avatar GiulioRomualdi commented on August 18, 2024 1

However, that may be inconvenient. There is any reason why you do not want to use yarpConfigurationString instead?

You are right. This is how I added the device to the gazebo world

      <plugin name="basestate" filename="libgazebo_yarp_basestate.so">
        <yarpConfigurationString>(WRAPPER (name /ergocubSim/floating_base/state:o) (period 10) (device analogServer)) (DRIVER (device gazebo_basestate) (baseLink root_link)) </yarpConfigurationString>
      </plugin>

from gazebo-yarp-plugins.

GiulioRomualdi avatar GiulioRomualdi commented on August 18, 2024

For instance, something it is not clear to me is where to add the config file:

In the documentation, there is written (it seems it should be placed in model://)

 *          <yarpConfigurationFile>model://path-to-the-configuration-file</yarpConfigurationFile>

can I add it to the path of the world file? I would like to have the config file in a config folder next to world file

.
└── rl_ergoCubGazeboV1_1
    ├── config
    │   └── base_estimator.ini
    └── world

from gazebo-yarp-plugins.

GiulioRomualdi avatar GiulioRomualdi commented on August 18, 2024

Closing with this #682 (comment) solution

from gazebo-yarp-plugins.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.