Rostopic not created for GPS plugin if reference is added to gazebo tag
I'm using Ros Noetic along with Gazebo11. The following snippet of code doesn't create the /gps/fix topic:
<gazebo reference ="base_link">
<plugin name="gazebo_ros_gps" filename="libhector_gazebo_ros_gps.so">
<alwaysOn>true</alwaysOn>
<updateRate>100.0</updateRate>
<robotNamespace>/bot</robotNamespace>
<bodyName>base_link</bodyName>
<topicName>/gps/fix</topicName>
<velocityTopicName>/gps/fix_velocity</velocityTopicName>
<drift>0.001 0.001 0.001</drift>
<gaussianNoise>0.05 0.05 0.05</gaussianNoise>
<velocityDrift>0.001 0.001 0.001</velocityDrift>
<velocityGaussianNoise>0.5 0.5 0.5</velocityGaussianNoise>
</plugin>
</gazebo>
I am aware that adding the reference is not required and is redundant as <bodyName>
tag is required. However, I do not understand why it'd prevent the topic being created. The code runs as expected if the reference is removed.