Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to use ignition.msgs in command line?

I'm not quite familiar with this. Do you know how to use ignition.msgs in command line? I was following this doc

using EntityFactory which is ignition.msgs.EntityFactory in command line. I wanted to clear sensors to 0 so I used SENSOR or Clear()

So I tried many ways include

ign service -s /world/free_world/create --reqtype ignition.msgs.EntityFactory --reptype ignition.msgs.Boolean  --timeout 300 --req 'clear'

ign service -s /world/free_world/create --reqtype ignition.msgs.EntityFactory --reptype ignition.msgs.Boolean  --timeout 300 --req 'clear: true'

ign service -s /world/free_world/create --reqtype ignition.msgs.EntityFactory --reptype ignition.msgs.Boolean  --timeout 300 --req 'clear = true'

None of them worked. Error just returns like this, [libprotobuf ERROR google/protobuf/text_format.cc:307] Error parsing text-format ignition.msgs.EntityFactory: 1:7: Message type "ignition.msgs.EntityFactory" has no field named "clear".

I wanted to do this because of respawn. This sensor is actually prevent the respawn due to error where it says camera rgb is already exist in entity [#]. I explained more in github but then I realized, this is just belong to this site

Last question, do you know if there's any documentation or tutorial for this one?

How to use ignition.msgs in command line?

I'm not quite familiar with this. Do you know how to use ignition.msgs in command line? I was following this doc

using EntityFactory which is ignition.msgs.EntityFactory in command line. I wanted to clear sensors to 0 so I used SENSOR or Clear()

So I tried many ways include

ign service -s /world/free_world/create --reqtype ignition.msgs.EntityFactory --reptype ignition.msgs.Boolean  --timeout 300 --req 'clear'

ign service -s /world/free_world/create --reqtype ignition.msgs.EntityFactory --reptype ignition.msgs.Boolean  --timeout 300 --req 'clear: true'

ign service -s /world/free_world/create --reqtype ignition.msgs.EntityFactory --reptype ignition.msgs.Boolean  --timeout 300 --req 'clear = true'

None of them worked. Error just returns like this, [libprotobuf ERROR google/protobuf/text_format.cc:307] Error parsing text-format ignition.msgs.EntityFactory: 1:7: Message type "ignition.msgs.EntityFactory" has no field named "clear".

I wanted to do this because of respawn. This sensor is actually prevent the respawn due to error where it says camera rgb is already exist in entity [#]. I explained more in github but then I realized, this is just belong to this site

Last question, do you know if there's any documentation or tutorial for this one?