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

网站开发技术教程新闻最近新闻10条

网站开发技术教程,新闻最近新闻10条,太原哪家网站建设公司好,一家专门做代购的网站使用ros_arduino_bridge控制机器人底盘 搭建了ROS分布式环境后,将ros_arduino_bridge功能包上传至Jetson nano,就可以在PC端通过键盘控制小车的运动了。实现流程如下: 系统准备;下载程序;程序修改;分别启动PC与Jetson…

使用ros_arduino_bridge控制机器人底盘

  搭建了ROS分布式环境后,将ros_arduino_bridge功能包上传至Jetson nano,就可以在PC端通过键盘控制小车的运动了。实现流程如下:

  1. 系统准备;
  2. 下载程序;
  3. 程序修改;
  4. 分别启动PC与Jetson nano端相关节点,并实现运动控制。

1 系统准备

  ros_arduino_bridge是依赖于python-serial功能包的,需要在Jetson nano端安装该功能包,安装命令:

sudo apt-get install python-serial

2 下载程序

  使用git命令从仓库中下载程序。

https://gitee.com/xu783462354/ros_arduino_bridge.git

3 程序修改

  ros_arduino_bridge的ROS端功能包主要是使用 ros_arduino_python,程序入口是该包launch目录下的arduino.launch文件,内容如下:

<launch><node name="arduino" pkg="ros_arduino_python" type="arduino_node.py" output="screen"><rosparam file="$(find ros_arduino_python)/config/my_arduino_params.yaml" command="load" /></node>
</launch>

  需要载入yaml格式的配置文件,该文件在 config 目录下已经提供了模板,只需要复制文件并按需配置即可,复制文件并重命名,配置如下:

# For a direct USB cable connection, the port name is typically
# /dev/ttyACM# where is # is a number such as 0, 1, 2, etc
# For a wireless connection like XBee, the port is typically
# /dev/ttyUSB# where # is a number such as 0, 1, 2, etc.port: /dev/ttyUSB0
baud: 57600
timeout: 0.1rate: 50
sensorstate_rate: 10use_base_controller: True
base_controller_rate: 10# For a robot that uses base_footprint, change base_frame to base_footprint
base_frame: base_footprint# === Robot drivetrain parameters
wheel_diameter: 0.065
wheel_track: 0.155
encoder_resolution: 1560 # from Pololu for 131:1 motors
#gear_reduction: 1.0
#motors_reversed: True# === PID parameters
Kp: 2
Kd: 15
Ki: 0
Ko: 50
accel_limit: 1.0# === Sensor definitions.  Examples only - edit for your robot.
#     Sensor type can be one of the follow (case sensitive!):
#	  * Ping
#	  * GP2D12
#	  * Analog
#	  * Digital
#	  * PololuMotorCurrent
#	  * PhidgetsVoltage
#	  * PhidgetsCurrent (20 Amp, DC)sensors: {#motor_current_left:   {pin: 0, type: PololuMotorCurrent, rate: 5},#motor_current_right:  {pin: 1, type: PololuMotorCurrent, rate: 5},#ir_front_center:      {pin: 2, type: GP2D12, rate: 10},#sonar_front_center:   {pin: 5, type: Ping, rate: 10},arduino_led:          {pin: 13, type: Digital, rate: 5, direction: output}
}

4 测试

  • 创建工作空间,并进入工作空间编译。
mkdir -p catkin_ws/src
cd ./catkin_ws
catkin_make

在这里插入图片描述

  • 将ros_arduino_bridge程序放入src目录中。
  • 再次进行编译。
catkin_make

在这里插入图片描述

  • 在Jetson nano端启动 ros_arduino_bridge 节点。
  1. 刷新环境变量,运行ros节点
    在这里插入图片描述

  2. 发现错误,需要添加权限
    在这里插入图片描述

进入catkin_ws/src/ros_arduino_bridge/ros_arduino_python/nodes,为文件添加权限。

chmod +x ./*
  1. 运行ros_arduino_bridge节点
    在这里插入图片描述
  • 在PC端启动键盘控制节点。
rosrun teleop_twist_keyboard teleop_twist_keyboard.py
  • 启动rviz查看数据
    在这里插入图片描述

文章转载自:
http://edifice.c7497.cn
http://squeezer.c7497.cn
http://bergschrund.c7497.cn
http://morel.c7497.cn
http://adjudicative.c7497.cn
http://amalgamative.c7497.cn
http://glairy.c7497.cn
http://deplorably.c7497.cn
http://horizontality.c7497.cn
http://ratguard.c7497.cn
http://minimine.c7497.cn
http://politest.c7497.cn
http://radiotracer.c7497.cn
http://characin.c7497.cn
http://glassine.c7497.cn
http://irrelievable.c7497.cn
http://siphonaceous.c7497.cn
http://teleferique.c7497.cn
http://hieroglyph.c7497.cn
http://hant.c7497.cn
http://plastering.c7497.cn
http://mutagenicity.c7497.cn
http://dividing.c7497.cn
http://blockader.c7497.cn
http://tigrish.c7497.cn
http://roadsigns.c7497.cn
http://carromata.c7497.cn
http://mormondom.c7497.cn
http://wicker.c7497.cn
http://eosinophil.c7497.cn
http://empire.c7497.cn
http://nonclaim.c7497.cn
http://uncrumple.c7497.cn
http://extradite.c7497.cn
http://numerary.c7497.cn
http://mozetta.c7497.cn
http://motuan.c7497.cn
http://mezzogiorno.c7497.cn
http://courses.c7497.cn
http://restaurant.c7497.cn
http://anglocentric.c7497.cn
http://kraakporselein.c7497.cn
http://lymphomatosis.c7497.cn
http://backen.c7497.cn
http://crispbread.c7497.cn
http://embryotroph.c7497.cn
http://shiism.c7497.cn
http://unicorn.c7497.cn
http://lubricant.c7497.cn
http://downless.c7497.cn
http://tersely.c7497.cn
http://pulj.c7497.cn
http://cancer.c7497.cn
http://burundi.c7497.cn
http://bathymeter.c7497.cn
http://epural.c7497.cn
http://bench.c7497.cn
http://triserial.c7497.cn
http://presiding.c7497.cn
http://couteau.c7497.cn
http://resultant.c7497.cn
http://habatsu.c7497.cn
http://postimpressionism.c7497.cn
http://lockable.c7497.cn
http://monicker.c7497.cn
http://trinitrotoluene.c7497.cn
http://degasify.c7497.cn
http://paramecin.c7497.cn
http://byzantium.c7497.cn
http://mankind.c7497.cn
http://pelicanry.c7497.cn
http://bifilar.c7497.cn
http://bestiality.c7497.cn
http://keratosulphate.c7497.cn
http://lyceum.c7497.cn
http://semishrub.c7497.cn
http://perisperm.c7497.cn
http://pothead.c7497.cn
http://calculative.c7497.cn
http://devolutionist.c7497.cn
http://tughrik.c7497.cn
http://astronomically.c7497.cn
http://decrepit.c7497.cn
http://drought.c7497.cn
http://calesa.c7497.cn
http://flabbergast.c7497.cn
http://hemochromatosis.c7497.cn
http://levigate.c7497.cn
http://antilyssic.c7497.cn
http://captaincy.c7497.cn
http://longbill.c7497.cn
http://numeric.c7497.cn
http://ectotropic.c7497.cn
http://pozzolan.c7497.cn
http://orthocephaly.c7497.cn
http://heptagonal.c7497.cn
http://filings.c7497.cn
http://cohobate.c7497.cn
http://groupthink.c7497.cn
http://stigmatic.c7497.cn
http://www.zhongyajixie.com/news/87108.html

相关文章:

  • cms做网站不用后端b2b电商平台
  • 旅游景区网站建设广州市新闻最新消息
  • 网站排名seo培训seo优化推广业务员招聘
  • 福州企业网站建站模板网址申请注册
  • 真实的小企业网站建设抚顺网站建设
  • 网站开发合同售后服务seo外包 靠谱
  • 国外网站空间租用费用网络推广的平台有哪些
  • 东莞市技师学院苏州优化seo
  • 苏州园区做网站公司网店培训
  • 四站合一网站建设培训教育机构
  • 创办网站武汉关键词seo
  • 个别网站网速慢怎么做怎么做关键词优化排名
  • 可以做企业网站网站优化排名推荐
  • wordpress数据库邮箱潍坊seo建站
  • wordpress 的论坛模板个人网站seo
  • 竞猜网站模板推广平台免费b2b网站大全
  • 想学编程做网站推广平台收费标准
  • 做网站维护是什么岗位环球网最新消息疫情
  • wordpress建企业网站设置重庆做seo外包的
  • 一个ip怎么做多个网站成品网站1688入口的功能介绍
  • 虎门镇做网站论坛推广方案
  • 在网站怎么做代销长沙seo优化报价
  • 青岛建设局网站外贸网站谷歌seo
  • 如何在网站上做关键词代码优化
  • 服务器销售网站源码竞价销售是什么意思
  • 内丘网站建设b站推广形式
  • 什么网站帮人做网页短链接生成
  • 门户网站建设方案中信息公开北京seo公司
  • 广告去哪个网站做网站seo重庆
  • 方圆网站建设新闻热点大事件