neurali:husky_python1
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
neurali:husky_python1 [2016/07/09 21:32] – profpro | neurali:husky_python1 [2020/06/08 22:20] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | [[neurali: | ||
+ | <code python > | ||
+ | |||
+ | # | ||
+ | PKG = ' | ||
+ | import roslib | ||
+ | # | ||
+ | |||
+ | import rospy | ||
+ | # from rospy_tutorials.msg import Floats | ||
+ | # import sys, rospy, cv, cv2 | ||
+ | # from std_msgs.msg import String | ||
+ | from geometry_msgs.msg import Twist, Point, Point32, Polygon | ||
+ | from sensor_msgs.msg import Image, LaserScan, Joy | ||
+ | import numpy as np | ||
+ | from rospy.numpy_msg import numpy_msg | ||
+ | |||
+ | from sensor_msgs.msg import Imu | ||
+ | |||
+ | def callback(data): | ||
+ | # print rospy.get_name(), | ||
+ | # print type(data) <class ' | ||
+ | print " | ||
+ | print " | ||
+ | |||
+ | def listener(): | ||
+ | rospy.init_node(' | ||
+ | rospy.Subscriber(" | ||
+ | rospy.spin() | ||
+ | |||
+ | if __name__ == ' | ||
+ | listener() | ||
+ | |||
+ | </ |
neurali/husky_python1.txt · Last modified: 2020/06/08 22:20 by 127.0.0.1