Closed VincidaB closed 1 month ago
Multiple identical types sent by MessageFactory::Types() This issues was found as it breaks gazebo web, and is mentioned on gz-launch issue #246.
MessageFactory::Types()
gz-launch
In the browser's console we get
ERROR Error: duplicate name 'Any' in Namespace .gz.msgs
cf the aforementioned gz-launch issue where the op posted logs.
I was able to fix the problem on the gz-launch side of things but my fix isn't great for many reasons.
https://github.com/gazebosim/gz-msgs/blob/eaf96af23a10344366d1b457141ffc982d73fd4e/core/src/MessageFactory.cc#L129-L142
I am not familiar yet with all of gazebo's components, and not at all with gz-msgs, but the above piece of code might be responsible for adding additional messages on the line : https://github.com/gazebosim/gz-msgs/blob/eaf96af23a10344366d1b457141ffc982d73fd4e/core/src/MessageFactory.cc#L141
gz-msgs
The messages that are part of msgMap have no duplicate of course, but after wrench, we get an additional message of type Any.
wrench
Any
Environment
Description
Multiple identical types sent by
MessageFactory::Types()
This issues was found as it breaks gazebo web, and is mentioned ongz-launch
issue #246.Steps to reproduce
Output
In the browser's console we get
cf the aforementioned
gz-launch
issue where the op posted logs.I was able to fix the problem on the
gz-launch
side of things but my fix isn't great for many reasons.https://github.com/gazebosim/gz-msgs/blob/eaf96af23a10344366d1b457141ffc982d73fd4e/core/src/MessageFactory.cc#L129-L142
I am not familiar yet with all of gazebo's components, and not at all with
gz-msgs
, but the above piece of code might be responsible for adding additional messages on the line : https://github.com/gazebosim/gz-msgs/blob/eaf96af23a10344366d1b457141ffc982d73fd4e/core/src/MessageFactory.cc#L141The messages that are part of msgMap have no duplicate of course, but after
wrench
, we get an additional message of typeAny
.