Gazebo | Ignition | Community
Ask Your Question

Custom attributes in SDF files

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

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:


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.


edit retag flag offensive close merge delete


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 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

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

nlamprian gravatar image

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
Login/Signup to Answer

Question Tools

1 follower


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

Seen: 168 times

Last updated: Feb 07 '20