Commit be90810b authored by CactusSoyeux's avatar CactusSoyeux
Browse files

Ajout du noeud change_node et ajout du mode ralenti

parent ed7380d9
#!/home/anafi/code/parrot-olympe/out/olympe-linux/pyenv_root/versions/3.9.5/bin/python3
#ROS imports
import rospy
from cv_bridge import CvBridge
#Pub types
from std_msgs.msg import String
class Change:
def __init__(self):
#ROS Node init
rospy.init_node('anafi_change_control', anonymous=True)
self.br = CvBridge()
self.loop_rate = rospy.Rate(10)
#ROS Publishers init
self.vel_pub = rospy.Publisher('ctrl_mode', String, queue_size=2)
def start(self):
#ROS
rospy.loginfo("ROS Change control: Start")
while not rospy.is_shutdown():
pass
self.loop_rate.sleep()
def stop(self):
rospy.loginfo("ROS Change control: End")
if __name__ == "__main__":
change_ctrl = Change()
change_ctrl.start()
change_ctrl.stop()
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment