control p3 under ROS