ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
from std_msgs.msg import String, Float32, Empty
import std_srvs.srv
take.publish(Empty())
rospy.ServiceProxy('ardrone/flattrim', std_srvs.srv.Empty())
good luck!
2 | No.2 Revision |
for import msg
from std_msgs.msg import String, Float32, Empty Empty
for import service - without problem Empty
import import std_srvs.srv publish message
take.publish(Empty())
take.publish(Empty()) call service
rospy.ServiceProxy('ardrone/flattrim', std_srvs.srv.Empty())
rospy.ServiceProxy('ardrone/flattrim', std_srvs.srv.Empty())
good luck!