当前位置: 首页 > news >正文

建设银行唐山分行网站怎么维护网站

建设银行唐山分行网站,怎么维护网站,启信宝企业查询官网,免费商用自媒体图片网站虽然索尼toio Q宝机器人主要是为儿童教育娱乐开发的#xff0c;但我认为它在工业等领域也有一定应用潜力。例如#xff0c;工业领域经常会有某些平面在实际作业中持续震动#xff0c;导致零件过疲劳、平台失去稳定等问题。而这样的平台往往位于机器内部#xff0c;从外部很…虽然索尼toio Q宝机器人主要是为儿童教育娱乐开发的但我认为它在工业等领域也有一定应用潜力。例如工业领域经常会有某些平面在实际作业中持续震动导致零件过疲劳、平台失去稳定等问题。而这样的平台往往位于机器内部从外部很难直接观察。为此我们可以使用Q宝机器人来持续监测平台的震动情况当震动导致机器人位移过多就让机器人移动到预定位置报警提前避免潜在的风险。 具体操作中我们需要为机器人预置一个周期间隔每一个间隔结束后机器人检测自身位置是否发生变化如果发生变化就移动到预定位置闪灯报警。代码如下 import asyncio from toio import *green_cube_location None red_cube_location None red_cube_arrived Truedef id_notification_handler(payload: bytearray):global green_cube_locationid_info IdInformation.is_my_data(payload)if isinstance(id_info, PositionId):green_cube_location id_info.centerdef id_notification_handler_red(payload: bytearray):global red_cube_locationid_info IdInformation.is_my_data(payload)if isinstance(id_info, PositionId):red_cube_location id_info.centerdef motor_notification_handler(payload: bytearray):global red_cube_arrivedmotor_response Motor.is_my_data(payload)if isinstance(motor_response, ResponseMotorControlTarget):print(motor_response)red_cube_arrived Trueinit_green_cube_location green_cube_location.pointdev_list await BLEScanner.scan(2) assert len(dev_list) 2 cube_1 ToioCoreCube(dev_list[0].interface) cube_2 ToioCoreCube(dev_list[1].interface)print(connect cube_1) await cube_1.connect() print(connect cube_2) await cube_2.connect()red IndicatorParam(duration_ms0,colorColor(r255, g0, b0) )green IndicatorParam(duration_ms0,colorColor(r0, g255, b0) )await cube_1.api.indicator.turn_on(green) await cube_2.api.indicator.turn_on(green)print(start) await cube_1.api.id_information.register_notification_handler(id_notification_handler) await cube_2.api.id_information.register_notification_handler(id_notification_handler_red) await cube_2.api.motor.register_notification_handler(motor_notification_handler)target1 CubeLocation(pointPoint(x384, y331), angle95) target2 CubeLocation(pointPoint(x344, y337), angle94)# 记录初始位置 init_green_cube_location green_cube_location.point init_red_cube_location red_cube_location.point print(init_green_cube_location) print(red_cube_location)# 检测坐标是否改变 while True:if init_green_cube_location ! green_cube_location.point or init_red_cube_location ! red_cube_location.point:tmp_green_cube_location green_cube_locationprint(green_cube_location)print(位置变了)# 变红await cube_1.api.indicator.turn_on(red)await cube_2.api.motor.motor_control_target(timeout5,movement_typeMovementType.Linear,speedSpeed(max100, speed_change_typeSpeedChangeType.AccelerationAndDeceleration),targetTargetPosition(cube_locationtarget2,rotation_optionRotationOption.AbsoluteOptimal,),)await cube_1.api.motor.motor_control_target(timeout5,movement_typeMovementType.Linear,speedSpeed(max100, speed_change_typeSpeedChangeType.AccelerationAndDeceleration),targetTargetPosition(cube_locationtarget1,rotation_optionRotationOption.AbsoluteOptimal,),)breakawait asyncio.sleep(1) await cube_1.api.indicator.turn_on(red) await cube_2.api.indicator.turn_on(red) await asyncio.sleep(10) print(check end ) await cube_2.api.motor.unregister_notification_handler(motor_notification_handler ) await cube_1.api.id_information.unregister_notification_handler(id_notification_handler ) await cube_2.api.id_information.unregister_notification_handler(id_notification_handler_red ) print(end) await cube_1.disconnect() await cube_2.disconnect() 我们可以在平台不同位置安放两个机器人从而提高检测精度同时避免单个机器人故障带来的检测失效问题。实际的检测效果示意如下 检测工业平台震动1 检测工业平台震动2 可以看到无论哪个机器人的位置发生移动都会向另一个机器人发出通知之后两个机器人一同移动到预定位置闪红灯报警。我们还可以增加更多机器人即使在更大的平面上也能实现较为可靠的检测效果。 从本案例可以看出Q宝机器人并非只能用于Q12教学用途在其他领域也有待挖掘的应用潜力。未来随着Q宝机器人的能力不断迭代我们或许可以发现更多可以利用Q宝低成本实现的工业等场景的生产力用途。即便无法直接投入实际生产场景Q宝机器人也可以用来快速搭建设备原型为更成熟的产品设计提供参考。未来希望更多开发者加入Q宝生态将Q宝的潜能发挥到最大水平。
http://www.hkea.cn/news/14467277/

相关文章:

  • 个人网页模板网站免费网站模板网
  • php网站开发步骤展示性公司网站html
  • 龙岩网站设计 信任推商吧做词金诚信矿业建设集团有限公司网站
  • 四川网站建设培训wordpress 对话
  • 建站系统低价建站新闻资讯如何网站建设公司
  • 网站前台后台齐装网装修公司
  • 网站设计客户需求网站建设方案应该怎么写
  • 上市公司中 哪家网站做的好wordpress 获取评论数
  • 建设项目招标在什么网站公示5在线做网站
  • 做网站用那种数据库建设公司网站需要准备什么科目
  • php简易购物网站开发个人中心html模板
  • 家政服务 技术支持 东莞网站建设开封景区网站建设方案
  • asp.net获取网站虚拟目录网站制作收费
  • 怎么做晒鱼的网站免费下载应用市场
  • 网站先做前端还是后端广州市旅游商务职业学校
  • wordpress安装服务器配置广州网站建设 seo
  • 如何做实体店的网站海北公司网站建设多少钱
  • 网站和微信 微网站解决方案做卖车的网站有哪些
  • 最低成本做企业网站合肥seo报价
  • 做网站做电脑版还是手机版好羽毛球赛事2022直播
  • 用dw做网站用什么主题比较好可以做网站二维码吗
  • 哪个建站比较好网站建设步骤流程详细介绍
  • 无锡做网站建设中山哪里网站建设
  • 西部数码做的网站打不开网站开发的现状研究
  • 展示网站源码下载厦门 网站建设 公司
  • 合肥做企业建网站那家好个人主页图片素材
  • 贵阳网站如何推广深圳外贸公司联系电话
  • 河南做网站汉狮网络咨询公司名字大全
  • 广州外贸网站效果动漫制作专业的来源
  • 网站支付接口如何做外卖网站建设费用