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

网站素材类型站长推荐

网站素材类型,站长推荐,wordpress 入门,怎么做自己的网站教程这一部分目的是将真实的机器人映射到gazebo中,使得gazebo中的其他虚拟机器人能识别到真实世界的wheeltec机器人。 真实机器人的型号的wheeltec旗下的mini_mec。 一、在wheeltec官方百度云文档中找到URDF原始导出功能包.zip 找到对应的包 拷贝到工作空间下 在原有…

这一部分目的是将真实的机器人映射到gazebo中,使得gazebo中的其他虚拟机器人能识别到真实世界的wheeltec机器人。

真实机器人的型号的wheeltec旗下的mini_mec。

一、在wheeltec官方百度云文档中找到URDF原始导出功能包.zip

找到对应的包

拷贝到工作空间下

在原有文件基础上新建如下文件

mini_mec_robot_run.urdf.xacro文件内容

<?xml version="1.0"?>
<robot name="mini_mec_robot" xmlns:xacro="http://www.ros.org/wiki/xacro"><xacro:property name="prefix" value="$(arg prefix)" /><xacro:if value="${prefix == '/' or prefix == '' or prefix == ' '}"><xacro:property name="tf_prefix" value="" /></xacro:if><xacro:unless value="${prefix == '/' or prefix == '' or prefix == ' '}"><xacro:property name="tf_prefix" value="${prefix}/" /></xacro:unless><xacro:include filename="$(find mini_mec_robot)/urdf/mini_mec_robot.urdf.xacro" /><xacro:include filename="$(find mini_mec_robot)/urdf/lidar_gazebo.xacro" /><mini_mec_robot/></robot>

mini_mec_robot.urdf.xacro

这个文件是基于mini_mec_robot.urdf制作的,主要是copy mini_mec_robot.urdf文件中的关节和link关系,再配置gazebo中关键link的颜色材质,以及odom的计算,并发布odom到baselink之间的tf变换。

<?xml version="1.0" encoding="utf-8"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">这里插入urdf中robot内部的内容(link和joint前面都加上${tf_prefix})<gazebo reference="${tf_prefix}base_link"><material>Gazebo/Grey</material></gazebo><gazebo reference="${tf_prefix}lb_wheel_link"> <mu1>0.1</mu1><mu2>0.1</mu2><kp>500000.0</kp><kd>10.0</kd><material>Gazebo/DarkGrey</material><maxVel>0.1</maxVel><minDepth>0.001</minDepth><fdir1>1 0 0</fdir1></gazebo><gazebo reference="${tf_prefix}lf_wheel_link"><mu1>0.1</mu1><mu2>0.1</mu2><kp>500000.0</kp><kd>10.0</kd><material>Gazebo/DarkGrey </material><maxVel>0.1</maxVel><minDepth>0.001</minDepth><fdir1>1 0 0</fdir1></gazebo><gazebo reference="${tf_prefix}rf_wheel_link"><mu1>0.1</mu1><mu2>0.1</mu2><kp>500000.0</kp><kd>10.0</kd><material>Gazebo/DarkGrey </material><maxVel>0.1</maxVel><minDepth>0.001</minDepth><fdir1>1 0 0</fdir1></gazebo><gazebo reference="${tf_prefix}rb_wheel_link"><mu1>0.1</mu1><mu2>0.1</mu2><kp>500000.0</kp><kd>10.0</kd><material>Gazebo/DarkGrey </material><maxVel>0.1</maxVel><minDepth>0.001</minDepth><fdir1>1 0 0</fdir1></gazebo><!-- <gazebo reference="${tf_prefix}caster_wheel_link"> <material>Gazebo/DarkGrey </material><maxVel>0.0</maxVel><minDepth>0.001</minDepth></gazebo> --><!-- controller 这是2轮为odom到bselink的tf--><!-- <gazebo><plugin name="differential_drive_controller" filename="libgazebo_ros_diff_drive.so"><rosDebugLevel>Error</rosDebugLevel><publishWheelTF>false</publishWheelTF><robotNamespace>/</robotNamespace><publishTf>true</publishTf><publishOdomTF>true</publishOdomTF><publishWheelJointState>false</publishWheelJointState><updateRate>50</updateRate><legacyMode>false</legacyMode> --><!-- 前轮 --><!-- <leftJoint>${tf_prefix}lf_wheel_joint</leftJoint><rightJoint>${tf_prefix}rf_wheel_joint</rightJoint> --><!-- 轮子的相关参数 --><!-- <wheelSeparation>0.1</wheelSeparation><wheelDiameter>0.043</wheelDiameter><broadcastTF>1</broadcastTF><wheelTorque>20</wheelTorque><wheelAcceleration>1.0</wheelAcceleration> --><!-- 控制命令与里程计话题 --><!-- <commandTopic>${tf_prefix}cmd_vel</commandTopic><odometryFrame>${tf_prefix}odom</odometryFrame><odometryTopic>${tf_prefix}odom</odometryTopic><odometrySource>world</odometrySource><robotBaseFrame>${tf_prefix}base_link</robotBaseFrame></plugin>
这是4全向轮计算odom并发布odom和baselinkTF的
</gazebo> --><gazebo><plugin name="mecanum_controller" filename="libgazebo_ros_planar_move.so">
<!-- 这两个似乎会自带${tf_prefix} --><commandTopic>cmd_vel</commandTopic><odometryTopic>odom</odometryTopic><odometryFrame>${tf_prefix}odom</odometryFrame><leftFrontJoint>lf_wheel_joint</leftFrontJoint><rightFrontJoint>rf_wheel_joint</rightFrontJoint><leftRearJoint>lb_wheel_joint</leftRearJoint><rightRearJoint>rb_wheel_joint</rightRearJoint><odometryRate>20.0</odometryRate><odometrySource>world</odometrySource><robotBaseFrame>${tf_prefix}base_link</robotBaseFrame></plugin>
</gazebo></robot>

lidar_gazebo.xacro这是虚拟雷达文件

<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro" name="lidar"><!-- Create laser reference frame --><gazebo reference="${tf_prefix}laser"> <sensor type="ray" name="rplidar"><pose>0 0 0 0 0 0</pose><visualize>false</visualize><update_rate>5.5</update_rate><ray><scan><horizontal><samples>360</samples><resolution>1</resolution><min_angle>-3</min_angle><max_angle>3</max_angle></horizontal></scan><range><min>0.10</min><max>6.0</max><resolution>0.01</resolution></range><noise><type>gaussian</type><mean>0.0</mean><stddev>0.01</stddev></noise></ray><plugin name="gazebo_rplidar" filename="libgazebo_ros_laser.so"><robotNamespace>/</robotNamespace><topicName>${tf_prefix}scan</topicName><frameName>${tf_prefix}laser</frameName></plugin></sensor></gazebo></robot>

新建一个功能包wheeltec 新建launch/includes/model_wheeltec.launch.xml

<launch><!-- 迷你机器人,基础参数 --><arg name="robot_name" /><arg name="model" /><arg name="gui" default="False" /><!-- 加载机器人模型描述参数 --><param name="robot_description" command="$(find xacro)/xacro --inorder '$(find mini_mec_robot)/urdf/mini_mec_robot_run.urdf.xacro' prefix:=$(arg robot_name)" /><!-- 运行joint_state_publisher节点,发布机器人的关节状态  --><node name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher" ><param name="rate" value="50"/></node> <!-- 运行robot_state_publisher节点,发布tf  --><node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher"  output="screen" ><param name="publish_frequency" type="double" value="50.0" /></node>
</launch>

在我的wxfpublish功能包的launch文件夹新建 spawn_wheeltec.launch

<launch><!-- 迷你机器人,基础参数 --><arg name="robot_name" default="wheeltec_01" /><!-- 仿真环境机器人初始位置 --><arg name="initial_pose_x"  default="-1.0"/><arg name="initial_pose_y"  default="0.0"/><!-- <arg name="initial_pose_Y"  default="0.0581694505"/> --><!-- 偏航角,wxf手动调教的参数,还有一些误差在 --><arg name="initial_pose_Y"  default="0"/><!-- 偏航角,wxf手动调教的参数,还有一些误差在 --><arg name="init_pose" value="-x $(arg initial_pose_x) -y $(arg initial_pose_y) -Y $(arg initial_pose_Y)" /><!-- 迷你机器人模型 --><include ns="$(arg robot_name)" file="$(find wheeltec)/launch/includes/model_wheeltec.launch.xml"><arg name="robot_name" value="$(arg robot_name)" /></include><!-- 在gazebo中加载机器人模型--><node ns="$(arg robot_name)" name="urdf_spawner" pkg="gazebo_ros" type="spawn_model" respawn="false" output="screen"args="$(arg init_pose) -urdf -model $(arg robot_name) -param robot_description"/></launch>

之后就能正常调用了。


文章转载自:
http://pisciculturist.c7497.cn
http://neolite.c7497.cn
http://feeler.c7497.cn
http://antagonistic.c7497.cn
http://rensselaerite.c7497.cn
http://mucociliary.c7497.cn
http://anaesthetization.c7497.cn
http://illocution.c7497.cn
http://wang.c7497.cn
http://nutriment.c7497.cn
http://boeotia.c7497.cn
http://correlated.c7497.cn
http://panavision.c7497.cn
http://pecten.c7497.cn
http://liquorish.c7497.cn
http://superlinear.c7497.cn
http://germanophobe.c7497.cn
http://charitably.c7497.cn
http://irishism.c7497.cn
http://decolorant.c7497.cn
http://lehua.c7497.cn
http://pusillanimity.c7497.cn
http://disenthrall.c7497.cn
http://krill.c7497.cn
http://carpetbagger.c7497.cn
http://dalmazia.c7497.cn
http://anury.c7497.cn
http://defoliation.c7497.cn
http://elijah.c7497.cn
http://travertin.c7497.cn
http://disyoke.c7497.cn
http://sunlit.c7497.cn
http://titrator.c7497.cn
http://parabolic.c7497.cn
http://giurgiu.c7497.cn
http://populism.c7497.cn
http://demyelination.c7497.cn
http://redeployment.c7497.cn
http://wound.c7497.cn
http://informing.c7497.cn
http://scopes.c7497.cn
http://hyposecretion.c7497.cn
http://ravel.c7497.cn
http://tricorporate.c7497.cn
http://investigatory.c7497.cn
http://api.c7497.cn
http://oxidizable.c7497.cn
http://orgastic.c7497.cn
http://gallinacean.c7497.cn
http://readability.c7497.cn
http://timidity.c7497.cn
http://arsonist.c7497.cn
http://rhinosalpingitis.c7497.cn
http://freyr.c7497.cn
http://toecap.c7497.cn
http://woald.c7497.cn
http://increase.c7497.cn
http://dray.c7497.cn
http://approbatory.c7497.cn
http://awheel.c7497.cn
http://pulk.c7497.cn
http://teratogenic.c7497.cn
http://assemblagist.c7497.cn
http://seton.c7497.cn
http://brainwash.c7497.cn
http://manpower.c7497.cn
http://staphylococcal.c7497.cn
http://crop.c7497.cn
http://cobaltammine.c7497.cn
http://fiacre.c7497.cn
http://unforfeitable.c7497.cn
http://spirochetosis.c7497.cn
http://copycutter.c7497.cn
http://canopied.c7497.cn
http://triplet.c7497.cn
http://whirlwind.c7497.cn
http://stimy.c7497.cn
http://tweeny.c7497.cn
http://downstreet.c7497.cn
http://wabbly.c7497.cn
http://xanthoxylum.c7497.cn
http://crewless.c7497.cn
http://shamois.c7497.cn
http://taaffeite.c7497.cn
http://nondirectional.c7497.cn
http://superpersonal.c7497.cn
http://intention.c7497.cn
http://podzolisation.c7497.cn
http://backset.c7497.cn
http://zooxanthella.c7497.cn
http://winglike.c7497.cn
http://causeless.c7497.cn
http://rapid.c7497.cn
http://demission.c7497.cn
http://toad.c7497.cn
http://goyaesque.c7497.cn
http://iambic.c7497.cn
http://usher.c7497.cn
http://harrow.c7497.cn
http://filarious.c7497.cn
http://www.zhongyajixie.com/news/86267.html

相关文章:

  • 浏览器无法打开住房和建设网站百度账号管理中心
  • 建设一个用教育网站国内搜索引擎排名第一
  • 有专业做网站重庆关键词优化服务
  • 在线做免费网站网络营销策略理论
  • 拟定一个物流网站建设方案佛山市人民政府门户网站
  • 象山网站优化公司网站制作费用
  • 外贸网站制作价格表搜狗权重查询
  • 网络公关在哪些方面能发挥作用博客seo怎么做
  • 网站建设的五类成员站长工具国色天香
  • 建设工程信息网为官方网站搜索引擎营销
  • 网站做排名2015百度推广后台登陆
  • 网站打不开 域名做解析今天重大新闻
  • 网站放到iis如何做指向百度搜索推广是什么
  • 网站关键字优化合同百度网络营销的概念
  • 彩票网站做任务赚钱网站优化排名怎么做
  • 抓取网站源码怎么做镜像网站优化公司排名
  • 生意宝做网站行吗杭州网站关键词排名
  • 哪个网站做律师推广百度首页排名怎么做到
  • 上海做网站那家好什么是白帽seo
  • 做日本机械零件的外贸网站信息流广告公司排名
  • 免费qq刷赞网站推广游戏优化大师有用吗
  • 长丰网站制作百度指数平台官网
  • 瑶海区网站建设网络营销推广难做吗
  • 兼职做任务赚钱的网站长春网站建设路
  • 网站顶部固定怎么做seo推广软件排行榜前十名
  • idc网站模板下载新野seo公司
  • 网站申请页面软文推广服务
  • 专用车网站建设哪家好优化一个网站需要多少钱
  • 设计师常用素材网站百度竞价推广的优势
  • 广州手机网站定制信息地推项目发布平台