![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
机器人
武倔
科技就是力量
展开
-
rospy 识别物体颜色、面积、距离
#!/usr/bin/env python# This final piece fo skeleton code will be centred around gettign the students to follow a colour and stop upon sight of another one.from __future__ import divisionimport cv...原创 2019-11-08 08:46:30 · 761 阅读 · 0 评论 -
rospy 让机器人绕圈、矩形行走(碰到障碍物停止)
绕圆圈行走#!/usr/bin/env pythonimport rospyfrom geometry_msgs.msg import Twistfrom math import pidef publisher(): pub = rospy.Publisher('mobile_base/commands/velocity', Twist) rospy.init_node('...原创 2019-10-29 07:49:16 · 1968 阅读 · 1 评论