Been working with both SAM and LoLo in the simulator and I've encountered an error when fitting either of the robots with a communication device. I get the following error (from the log file):
[ERROR] Specs of communication device 'sam/USBL' not properly defined!
[ERROR] Communication device of robot 'sam' not properly defined!
[ERROR] Robot not properly defined!
The simulator crashes after that.
This is how I instantiate (e.g.) the USBL in SAM's XML file, but the same happens with the other communication devices:
<comm name="USBL" type="usbl" device_id="9">
<specs min_vertical_fov="0.0" max_vertical_fov="220.0" range="8000.0"/>
<connect device_id="5" occlusion_test="false"/>
<autoping rate="1.0"/>
<noise range="0.05" horizontal_angle="0.2" vertical_angle="0.5"/>
<resolution range="0.01" angle="0.1"/>
<origin rpy="0.0 0.0 0.0" xyz="0.0 0.0 0.0"/>
<link name="Vehicle"/>
<ros_publisher topic="/$(arg robot_name)/sim/usbl"/>
</comm>