Spawn a box in another frame than world
Is it possible to spawn a box in a different frame than world? having already a robot spawned, I want to spawn something relative to base_link of that robot. How to do that?
After digging in the source code I discovered an input argument called referenceframe that can be used with the spawnmodel script.
-reference_frame <entity_name>
But I couldn't make Gazebo use it, I don't exactly what to write as "entityname", should it be the name of the existing robot, or robotname::baselink? or something else? No matter what I write there is no error message from Gazebo so a hint would be helpful.
Could you please add a link to the part of source code / documentation where you saw
reference_frame
?here https://github.com/ros-simulation/gazebo_ros_pkgs/blob/jade-devel/gazebo_ros/scripts/spawn_model line 46