How to install a sonar on a servo motor atop a UAV to get range from a target at a given angle?
I want to install a sonar sensor on a servo motor so that I get the range values from the target at the desired angle? I want the sonar to be actuated by the servo motor. I would like to perform the simulation of the same on ROS Gazebo for the Iris Quadrotor model.
This seems to be a more general question about physical robot hardware. Could you please elaborate how this relates to ROS?
I would like to perform the simulation of the same on ROS Gazebo for the Iris Quadrotor model
So what exactly is the question w.r.t. ROS?
Is there any plugin for Gazebo that integrates the two devices, sonar and servo motor. If not, how should my approach be to create a new plugin for the same?
AFAIR, there is no such plugin. You could either model it as two entities, a simple one-D range sensor on an articulated joint, or you write your own plugin, as you suggest. Writing a plugin is documented on the Gazebo wiki
Alright, thank you very much for your help!