MarkusHiI was looking for a method to spawn a robot model, with a gazebo_ros_laser plugin multiple times without writing multiple versions of the model description file.
The problem: SensorPlugins are not able to resolve the parents name (robots namespace) like ModelPlugins with GetName () to generate a tf_prefix for unique tf's.I found two solutions:
1) using many xacro variables and using the robotNamespace param2) changing the SensorPlugin source like suggested by Nate KönigNow I am not sure which solution is better.I changed the SensorPlugin for the laser and I think that’s the right way to do it but I am not sure.
Details to my solution: https://github.com/ros-simulation/gazebo_ros_pkgs/pull/141
Suggestions?--Dipl.-Ing. Dr.tech. Markus Bader
ACIN | AUTOMATION & CONTROL INSTITUTE
INSTITUT FÜR AUTOMATISIERUNGS- & REGELUNGSTECHNIK
TECHNISCHE UNIVERSITÄT WIEN
Gusshausstrasse 27-29 | 376. 1040 Wien
DVR-Nummer: 0005886
Tel. +43 (0)1 58801 - 376646
Skype: markus.bader.at.work
Fax. +43 (0)1 58801 - 37697
markus.bader@tuwien.ac.at | www.acin.tuwien.ac.at