3 Create python file on ROS package
1. Navigate to src/[package name]/src 2. Type edit [name].py :wq ':wq' is to save file. 3. I will edit with nano. Type nano [name].py (I named it tutorial.py) 4. Below is the code I typed #! /usr/bin/env python import rospy from std_msgs.msg import String rospy.init_node('tutorial') publisher = rospy.Publisher('/say_hello', String, queue_size=1) rate = rospy.Rate(3) while not rospy.is_shutdown()..
머신러닝
2020. 7. 9. 16:27