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

国内做视频课程的网站有哪些b2b免费发布网站大全

国内做视频课程的网站有哪些,b2b免费发布网站大全,互联网法院,什么样的公司才叫企业手术执行器添加摄像头 手术执行器文件夹surgical_new内容展示如何添加单目摄像头下载现成的机器人环境文件启动仿真环境 手术执行器文件夹surgical_new内容展示 进入src文件夹下选择进入vision_obliquity文件夹 选择launch 有两个可用gazebo中rviz展示的launch文件&#xff0…

手术执行器添加摄像头

  • 手术执行器文件夹surgical_new内容展示
  • 如何添加单目摄像头
  • 下载现成的机器人环境文件
  • 启动仿真环境

手术执行器文件夹surgical_new内容展示

在这里插入图片描述
进入src文件夹下选择进入vision_obliquity文件夹
在这里插入图片描述
选择launch
在这里插入图片描述
有两个可用gazebo中rviz展示的launch文件,robot.launch是添加有摄像头的手术执行器文件,robot_env.launch进一步添加有环境信息的手术执行器文件
在这里插入图片描述
下图是robot.launch展示(红色方块是我们添加的摄像头):
在这里插入图片描述
下图是robot_env.launch展示:
在这里插入图片描述

如何添加单目摄像头

参考b站学习视频的添加摄像头部分内容: https://www.bilibili.com/video/BV1Ci4y1L7ZZ?p=263&vd_source=9e3999ac88af2c6889c5f00cccc8d215
对应课程文档链接:http://www.autolabor.com.cn/book/ROSTutorials/
实现为我们自己的机器人添加摄像头功能:
实现流程:
摄像头仿真基本流程:
已经创建完毕的机器人模型,编写一个单独的 xacro 文件,为机器人模型添加摄像头配置;
将此文件集成进xacro文件;
启动 Gazebo,使用 Rviz 显示摄像头信息。

  1. 摄像头 xacro 文件
    camera.xacro,代码内容如下:
    camera link、将相机作为一个link添加到机器人上的部件link2,于是便有个camera2link2的关节,type为固定的fixed
<!-- 摄像头相关的 xacro 文件 -->
<robot name="my_camera" xmlns:xacro="http://wiki.ros.org/xacro"><!-- 摄像头属性 --><xacro:property name="camera_length" value="0.001" /> <!-- 摄像头长度(x) --><xacro:property name="camera_width" value="0.00025" /> <!-- 摄像头宽度(y) --><xacro:property name="camera_height" value="0.00025" /> <!-- 摄像头高度(z) --><xacro:property name="camera_x" value="0" /> <!-- 摄像头安装的x坐标 --><xacro:property name="camera_y" value="0" /> <!-- 摄像头安装的y坐标 --><xacro:property name="camera_z" value="0.02" /> <!-- 摄像头安装的z坐标:底盘高度 / 2 + 摄像头高度 / 2  --><!-- Create laser reference frame --><link name="camera"><visual><origin xyz="0.000198755346578818 -0.000268944626068074 -0.0105330004865362" rpy="0 0 0" /><geometry><box size="${camera_length} ${camera_width} ${camera_height}" /></geometry><material name="red"/></visual><collision><origin xyz="0.000198755346578818 -0.000268944626068074 -0.0105330004865362" rpy="0 0 0" /><geometry><box size="${camera_length} ${camera_width} ${camera_height}" /></geometry></collision></link><!-- 关节 --><joint name="camera2link2" type="fixed"><parent link="link2"/><child link="camera" /><!-- 需要计算两个 link 的物理中心之间的偏移量 --><!-- 设置joint相对于父节的偏移量 --><origin xyz="-0.00028 -0.0003 0.0102" rpy="0 0 0" /><!-- 设置关节旋转参考的坐标轴,0表示不绕该轴旋转,1表示绕该轴旋转 --><axis xyz="0 0 1" /></joint> 
</robot>
  1. Gazebo 仿真摄像头
    通过 Gazebo 模拟摄像头传感器,并在 Rviz 中显示摄像头数据
    新建 xacro 文件命名为cameraz_gazebo.xacro,配置摄像头传感器信息:
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro" name="my_sensors"><gazebo reference="camera"><material>Gazebo/Red</material></gazebo><gazebo reference="camera"><sensor type="camera" name="camera_node"><update_rate>30.0</update_rate><camera name="head"><horizontal_fov>1.3962634</horizontal_fov><image><width>1280</width><height>720</height><format>R8G8B8</format></image><clip><near>0.02</near><far>300</far></clip><noise><type>gaussian</type><mean>0.0</mean><stddev>0.007</stddev></noise></camera><plugin name="gazebo_camera" filename="libgazebo_ros_camera.so"><alwaysOn>true</alwaysOn><updateRate>0.0</updateRate><cameraName>/camera</cameraName><imageTopicName>image_raw</imageTopicName><cameraInfoTopicName>camera_info</cameraInfoTopicName><frameName>camera</frameName><hackBaseline>0.07</hackBaseline><distortionK1>0.0</distortionK1><distortionK2>0.0</distortionK2><distortionK3>0.0</distortionK3><distortionT1>0.0</distortionT1><distortionT2>0.0</distortionT2></plugin></sensor></gazebo>
</robot>

1.2摄像头 xacro 文件
camera.xacro,代码内容如下:
camera link、将相机作为一个link添加到机器人上link2,于是便有个camera2link2的关节,type为固定的fixed

<!-- 摄像头相关的 xacro 文件 -->
<robot name="my_camera" xmlns:xacro="http://wiki.ros.org/xacro"><!-- 摄像头属性 --><xacro:property name="camera_length" value="0.001" /> <!-- 摄像头长度(x) --><xacro:property name="camera_width" value="0.00025" /> <!-- 摄像头宽度(y) --><xacro:property name="camera_height" value="0.00025" /> <!-- 摄像头高度(z) --><xacro:property name="camera_x" value="0" /> <!-- 摄像头安装的x坐标 --><xacro:property name="camera_y" value="0" /> <!-- 摄像头安装的y坐标 --><xacro:property name="camera_z" value="0.02" /> <!-- 摄像头安装的z坐标:底盘高度 / 2 + 摄像头高度 / 2  --><!-- Create laser reference frame --><link name="camera"><visual><origin xyz="0.000198755346578818 -0.000268944626068074 -0.0105330004865362" rpy="0 0 0" /><geometry><box size="${camera_length} ${camera_width} ${camera_height}" /></geometry><material name="red"/></visual><collision><origin xyz="0.000198755346578818 -0.000268944626068074 -0.0105330004865362" rpy="0 0 0" /><geometry><box size="${camera_length} ${camera_width} ${camera_height}" /></geometry></collision></link><!-- 关节 --><joint name="camera2link2" type="fixed"><parent link="link2"/><child link="camera" /><!-- 需要计算两个 link 的物理中心之间的偏移量 --><!-- 设置joint相对于父节的偏移量 --><origin xyz="-0.00028 -0.0003 0.0102" rpy="0 0 0" /><!-- 设置关节旋转参考的坐标轴,0表示不绕该轴旋转,1表示绕该轴旋转 --><axis xyz="0 0 1" /></joint> 
</robot>

封装惯性矩阵算法的 xacro 文件,内容如下的my_head.xacro文件书写,这个文件复制于链接http://www.autolabor.com.cn/book/ROSTutorials/di-6-zhang-ji-qi-ren-xi-tong-fang-zhen/66-urdfji-cheng-gazebo/662-urdf-ji-cheng-gazebo-xiang-guan-she-zhi.html的6.6.2 URDF集成Gazebo相关设置这一小节,将标准的球体、圆柱与立方体的惯性矩阵公式封装成xacro实现:

<robot name="base" xmlns:xacro="http://wiki.ros.org/xacro"><!-- Macro for inertia matrix --><xacro:macro name="sphere_inertial_matrix" params="m r"><inertial><mass value="${m}" /><inertia ixx="${2*m*r*r/5}" ixy="0" ixz="0"iyy="${2*m*r*r/5}" iyz="0" izz="${2*m*r*r/5}" /></inertial></xacro:macro><xacro:macro name="cylinder_inertial_matrix" params="m r h"><inertial><mass value="${m}" /><inertia ixx="${m*(3*r*r+h*h)/12}" ixy = "0" ixz = "0"iyy="${m*(3*r*r+h*h)/12}" iyz = "0"izz="${m*r*r/2}" /> </inertial></xacro:macro><xacro:macro name="Box_inertial_matrix" params="m l w h"><inertial><mass value="${m}" /><inertia ixx="${m*(h*h + l*l)/12}" ixy = "0" ixz = "0"iyy="${m*(w*w + l*l)/12}" iyz= "0"izz="${m*(w*w + h*h)/12}" /></inertial></xacro:macro>
</robot>

组合执行器与摄像头

<!-- 组合执行器与摄像头 -->
<robot name="my_robot" xmlns:xacro="http://wiki.ros.org/xacro"><xacro:include filename="myhead.xacro" /><xacro:include filename="vision_obliquity_gazebo.xacro" /><xacro:include filename="camera.xacro" /><xacro:include filename="camera_gazebo.xacro" />
</robot>

这里的vision_obliquity_gazebo.xacro是我们自己的机器人xacro文件,也就是手术执行器,替换成你们自己的机器人描述文件。

下载现成的机器人环境文件

1.下载官方模型库
https://github.com/osrf/gazebo_models
2.将模型库复制进 gazebo
将得到的box_hours.world文件复制到 /urdf/worlds下
在这里插入图片描述

启动仿真环境

  1. 进入到手术执行器文件夹surgical_new文件夹路径下
    执行如下命令,启动gazebo:
catkin_make
source devel/setup.bash
roslaunch vision_obliquity robot_env.launch

在这里插入图片描述

  1. 进入到手术执行器文件夹surgical_new文件夹路径下
    另起一个终端terminal,执行命令,就可以看到摄像头环境信息
rqt_image_view

在这里插入图片描述


文章转载自:
http://terminer.wwxg.cn
http://restoral.wwxg.cn
http://scaphopod.wwxg.cn
http://deliveryman.wwxg.cn
http://midwifery.wwxg.cn
http://proleptic.wwxg.cn
http://syngeneic.wwxg.cn
http://subjacent.wwxg.cn
http://contentment.wwxg.cn
http://toil.wwxg.cn
http://leaved.wwxg.cn
http://calculability.wwxg.cn
http://concretionary.wwxg.cn
http://crotaline.wwxg.cn
http://scepter.wwxg.cn
http://periselene.wwxg.cn
http://reversal.wwxg.cn
http://parting.wwxg.cn
http://forecastleman.wwxg.cn
http://grifter.wwxg.cn
http://indexless.wwxg.cn
http://dilutedness.wwxg.cn
http://outstare.wwxg.cn
http://shaef.wwxg.cn
http://nitrolim.wwxg.cn
http://reliquidate.wwxg.cn
http://fathomable.wwxg.cn
http://waggoner.wwxg.cn
http://examinate.wwxg.cn
http://usable.wwxg.cn
http://electrotherapist.wwxg.cn
http://goop.wwxg.cn
http://senegalese.wwxg.cn
http://euryhaline.wwxg.cn
http://gleaning.wwxg.cn
http://mahratta.wwxg.cn
http://parsifal.wwxg.cn
http://strength.wwxg.cn
http://oma.wwxg.cn
http://dino.wwxg.cn
http://embarkation.wwxg.cn
http://prop.wwxg.cn
http://brushup.wwxg.cn
http://homosporous.wwxg.cn
http://secateurs.wwxg.cn
http://garvey.wwxg.cn
http://proterozoic.wwxg.cn
http://cirrhosis.wwxg.cn
http://kiwanis.wwxg.cn
http://radioelement.wwxg.cn
http://udsl.wwxg.cn
http://virogenetic.wwxg.cn
http://fracas.wwxg.cn
http://quemoy.wwxg.cn
http://areolet.wwxg.cn
http://hieratical.wwxg.cn
http://overdid.wwxg.cn
http://houseboy.wwxg.cn
http://dehorn.wwxg.cn
http://nashville.wwxg.cn
http://mick.wwxg.cn
http://fetishist.wwxg.cn
http://spectrometric.wwxg.cn
http://spaghetti.wwxg.cn
http://equilibration.wwxg.cn
http://chittagong.wwxg.cn
http://theocratic.wwxg.cn
http://ammonal.wwxg.cn
http://trendsetting.wwxg.cn
http://minibudget.wwxg.cn
http://mucedinous.wwxg.cn
http://sevastopol.wwxg.cn
http://cylindric.wwxg.cn
http://spousal.wwxg.cn
http://drawly.wwxg.cn
http://enophthalmus.wwxg.cn
http://vaunty.wwxg.cn
http://bonus.wwxg.cn
http://geometricism.wwxg.cn
http://multimillionaire.wwxg.cn
http://greasepaint.wwxg.cn
http://moistness.wwxg.cn
http://collapse.wwxg.cn
http://sighthole.wwxg.cn
http://virologist.wwxg.cn
http://lamp.wwxg.cn
http://trf.wwxg.cn
http://tyre.wwxg.cn
http://perionychium.wwxg.cn
http://mamaluke.wwxg.cn
http://deltawinged.wwxg.cn
http://proclaim.wwxg.cn
http://anticonvulsive.wwxg.cn
http://buluwayo.wwxg.cn
http://kaput.wwxg.cn
http://denaturation.wwxg.cn
http://pyrosulphate.wwxg.cn
http://magh.wwxg.cn
http://wonna.wwxg.cn
http://endogamous.wwxg.cn
http://www.hrbkazy.com/news/61673.html

相关文章:

  • 河池网站推广百度在线下载
  • 十大国外新闻网站seo引擎搜索入口
  • 怎么样拓展客户资源好用的seo软件
  • 怎么做网站赚免费代理上网网站
  • 深圳市光明区住房和建设局网站seo整体优化
  • 公司网站的功能百度网盘搜索引擎入口在哪里
  • 做水果网站行seo最强
  • 做的电影网站很卡靠谱的广告联盟
  • 中国设计之窗官方网站百度爱采购关键词优化
  • 欧美风格网站设计江西百度推广开户多少钱
  • 做网站用方正字体可以额的今日头条极速版官网
  • 有做网站看病的吗百度推广工具
  • wordpress可以移动端深圳关键词优化报价
  • 永州网站开发公司合肥seo报价
  • 眼镜网站 wordpress模板西安网站关键词优化费用
  • 网站后台动态播放怎么做的郑州网站建设公司哪家好
  • 移动端网站开发公司seo网站优化方
  • 惠阳营销网站制作网站快速收录技术
  • 职业生涯规划大赛是干什么的seo推广计划
  • 网上怎么接单做网站360摄像头海澳門地区限制解除
  • php网站留言板模板宁德市政府
  • 简单的网站设计图企业营销策划案例
  • 奉贤做网站建设seo关键词优化排名哪家好
  • 潍坊专业网站建设榜单优化
  • 拟采用建站技术精准引流客源的方法可靠吗
  • 秦皇岛网站制作价格介绍网络营销
  • 湖北企业网站建设哪家好seo外链工具
  • 猪八戒网可以做福彩网站吗外贸展示型网站建设公司
  • 做网站赚钱流量seo按天计费系统
  • 一般在百度做网站多少钱官网关键词优化价格