当前位置:网站首页>Rviz uses arbotix to control robot motion
Rviz uses arbotix to control robot motion
2022-07-28 01:18:00 【2021 Nqq】
demand
Control the robot model in rviz In circular motion
Implementation process
- install Arbotix
- Create a new feature pack , Prepare the robot urdf、xacro file
- add to Arbotix The configuration file
- To write launch File configuration Arbotix
- start-up launch Document and control the motion of the robot model
add to arbotix Required profile
stay urdf01_rviz config Add control.yaml file
# This file is the controller configuration file , A robot model may have multiple controllers , such as : chassis 、 Mechanical arm 、 Gripper ( manipulator )....
# therefore , root name yes controller
controllers: {
# Single controller settings
base_controller: {
# type : Differential controller
type: diff_controller,
# Reference coordinates
base_frame_id: base_footprint,
# The distance between the two wheels
base_width: 0.2,
# Control frequency
ticks_meter: 2000,
#PID Control parameter , Make the robot wheels reach the expected speed quickly
Kp: 12,
Kd: 12,
Ki: 0,
Ko: 50,
# Acceleration limit
accel_limit: 1.0
}
}
add to launch file demo07_control.launch
<launch>
<!-- 1. Load in the parameter server URDF It is suggested to use the second way -->
<!-- <param name = "robot_description" textfile = "$(find urdf01_rviz)/urdf/xacro/demo05_car_base.urdf" /> -->
<param name = "robot_description" command = "$(find xacro)/xacro $(find urdf01_rviz)/urdf/xacro/car.urdf.xacro" />
<!-- 2. start-up rviz -->
<node pkg = "rviz" type = "rviz" name = "rviz" args = "-d $(find urdf01_rviz)/config/show_mycar.rviz"/>
<!-- 3. Add joint status publishing node -->
<node pkg = "joint_state_publisher" type = "joint_state_publisher" name = "joint_state_publisher" />
<!-- 4. Add robot status publishing node -->
<node pkg = "robot_state_publisher" type = "robot_state_publisher" name = "robot_state_publisher" />
<!-- Integrate arbotix Motion control node , And load parameters The second sentence means using simulation simulator-->
<node pkg = "arbotix_python" type = "arbotix_driver" name = "driver" output = "screen" >
<rosparam command = "load" file = "$(find urdf01_rviz)/config/control.yaml" />
<param name = "sim" value = "true" />
</node>
</launch>
rostopic list
/clicked_point
/cmd_vel
/diagnostics
/initialpose
/joint_states
/move_base_simple/goal
/odom
/rosout
/rosout_agg
/tf
/tf_static
rostopic pub -r 10 /cmd_vel geometry_msgs/Twist “linear:
x: 1.0
y: 0.0
z: 0.0
angular:
x: 0.0
y: 0.0
z: 1.0”
边栏推荐
- Recommended system - offline recall: u2tag2i, ICF
- 从功能测试到自动化测试,月薪突破30K+,我的6年测开经验。
- 110. In depth introduction to sap ui5 fileuploader control - why do you need a hidden iframe
- [STM32] watchdog module
- Ford SUV "Mustang" officially went offline, safe and comfortable
- 重新定义分析 - EventBridge 实时事件分析平台发布
- 【STM32】看门狗模块
- Shenzhen Huaqiang announced that it plans to invest no more than 20million yuan in BYD semiconductor
- Learning note 12: Eratosthenes screening method to find prime numbers (within 100) and magic square matrix
- Shell系统学习之循环结构
猜你喜欢

Analysis and recurrence of network security vulnerabilities

If asynchronous processing is implemented according to the framework

Focus loss explanation

逻辑回归原理

工具函数:把一个工作区中非空字段值付给另一个工作区相同字段

安全检测风险

DEMO:测试接口短时间内接收重复数据创建单据

How to clearly understand and express IAAs, PAAS and SaaS?

Starfish Os打造的元宇宙生态,跟MetaBell的合作只是开始

C语言程序设计 | 单身狗题目讲解
随机推荐
swoole-WebSocket服务
Ford SUV "Mustang" officially went offline, safe and comfortable
逻辑回归原理
System clock failure of database fault tolerance
激光器芯片厂商陕西源杰半导体获广发证券、中信证券等8家投资机构入股
Spool timer
Jointly create a new chapter in cultural tourism | xinqidian signs a strategic cooperation agreement with Guohua cultural tourism
Use of postman
深圳华强宣布拟不超2000万元入股比亚迪半导体
【游戏】任天堂Nintendo Switch超详细购买/使用指南以及注意事项(根据自己使用持续更新中...)
Go 语言变量
EWM收货ECC交货单校验逻辑问题
uni-app进阶之样式框架/生产环境
BAT大厂测试架构师如何解读测试平台的各种争议
Redis cache penetration breakdown and avalanche
Monitor mouse sideslip (adapt to mobile terminal)
Introduction to the browser video frame operation method requestvideoframecallback()
Retinanet网络结构详解
Tear the source code of gateway by hand, and tear the source code of workflow and load balancing today
C language programming | single dog topic explanation