In this post we implement a ROS node that automatically initializes the robot state in Gazebo to a valid configuration . This is achieved by means of a custom joint position controller and the controller switching mechanism provided by the controller manager.