How to setup ROS for controlling servos
I'm new to ROS, and I'm trying to create a ROS setup for a simple 4 legged robot, with 2 DOF per leg. Since there's no physical robot, I'll have to simulate everything in Gazebo. However, I'm not really sure where to begin. I've reading a lot of the ROS tutorials, but they're either too low-level (browsing the file system, creating a package, etc) or too high-level (how to navigate using SLAM and planners). I can't find anything on "how to setup a basic project for your robot".
Also, there are a lot of disconnects between ROS and Gazebo. Following the Gazebo tutorials, I've been able to model my platform and apply torque to joints to move limbs, but I'm unsure how to simulate a servo PID and actuate joints from ROS. Where do I begin?
Also, Gazebo seems to use SDF to model everything, while ROS uses URDF. Which should I use? I've already modelled my platform in SDF. Am I going to have to rewrite it in URDF to get it to work with ROS?
Here I have a code for servo_controller which may help. You may add comments for further doubts. Here I've used urdf files for convience, but sdf files can also be integrated. There is also a ros package which controls the servo which will aid you further https://github.com/Gauraviitkgp/Servo...