Gazebo | Ignition | Community
Ask Your Question
0

Custom attributes in SDF files

asked 2020-02-06 16:17:34 -0500

Jenny B gravatar image

Is it possible to add custom attributes to SDF elements other than plugins? For example should I be able to do:

<model>
    <my_random_thing>5</my_random_thing>
    ...
</model>

and then be able to access my_random_thing from the SDF element associated with my model? I know this works for plugins, but I can't get it to work for models.

Thanks.

edit retag flag offensive close merge delete

Comments

If you use ROS with your system you can save "your random thing" on rosparam server to access it from nodes and plugins.

kumpakri gravatar imagekumpakri ( 2020-02-10 07:35:31 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2020-02-07 16:35:46 -0500

Reading the specification, I'd say it's not possible.

You can do this for plugins due to the copy_data element, which is not part of the model spec.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-02-06 16:17:34 -0500

Seen: 266 times

Last updated: Feb 07 '20