Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

So this is not a Gazebo specific problem as it could happen to any dictionary in Python.

The reason for your problem is that in Python dictionaries are not ordered.

I suggest you read more on the provided link and try a different datatype for storing your block objects.

https://stackoverflow.com/questions/11784860/why-does-this-python-dictionary-get-created-out-of-order-using-setdefault