当前位置:网站首页>Exploration of webots and ROS joint simulation (II): model import
Exploration of webots and ROS joint simulation (II): model import
2022-06-26 08:38:00 【Yu Getou】
Model import method :urdf File import
About sw How the model is generated urdf file , You can refer to another article of mine sw Model generation urdf Detailed flow of documents
1. install urdf2webots Function pack
pip install urdf2webots
2. Model transformation
Open the terminal in any path
python
from urdf2webots.importer import convert2urdf
#path finger urdf Path to file
convert2urdf('path')
#example
convert2urdf('/home/jozenlee/catkin_ws/src/xrobot_ros/xrobot/urdf/xrobot.urdf')
quit()
The corresponding file can be generated in the current terminal path 
3. Import simulation environment
(1)Ctrl+Shift+A Add a node
(2) Place the model file in the corresponding folder according to the instructions , Specific path and world Storage path .
4. Model confirmation
This step is for some models that are initially in the down state ( That is, the coordinate system and webots The initial coordinate system does not coincide ), You can use the rotation axis to justify the model .
operation : Select the robot -> Press and hold the rotation symbol of the rotation axis with the mouse -> Drag the mouse to complete the rotation 
5. Parameter setting
(1) take Robot Fixed nodes , In this way, the node will be included in each open environment , And node information can be set .
Robot Right click on the node ->Convert to Base Node(s)
(2) For robotic arms , Can be base_link Physical properties of (physics) delete . It can ensure that the base of the mechanical arm will not move , Prevent dumping .
If you want to From scratch at webots Build a model , You can refer to this article
webots Robot modeling
边栏推荐
- (4) Independent key
- Mapping '/var/mobile/Library/Caches/com.apple.keyboards/images/tmp.gcyBAl37' failed: 'Invalid argume
- The best time to buy and sell stocks to get the maximum return
- Necessary protection ring for weak current detection
- Embedded Software Engineer (6-15k) written examination interview experience sharing (fresh graduates)
- 软件工程-个人作业-提问回顾与个人总结
- Relationship extraction -- casrel
- Undefined symbols for architecture i386与第三方编译的静态库有关
- KNN resolution
- Transformers loading Roberta to implement sequence annotation task
猜你喜欢

(2) Buzzer

Idea auto Guide
![[unity mirror] use of networkteam](/img/b8/93f55d11ea4ce2c86df01a9b03b7e7.png)
[unity mirror] use of networkteam

鲸会务为活动现场提供数字化升级方案

Discrete device ~ resistance capacitance

Apple motherboard decoding chip, lightning Apple motherboard decoding I.C

鲸会务一站式智能会议系统帮助主办方实现数字化会议管理

Text to SQL model ----irnet
GHUnit: Unit Testing Objective-C for the iPhone

Method of measuring ripple of switching power supply
随机推荐
Analysis of Yolo series principle
多台三菱PLC如何实现无线以太网高速通讯?
MySQL query time period
OpenCV Learning notes iii
nn. Modulelist and nn Sequential
Idea update
Design of reverse five times voltage amplifier circuit
STM32 porting mpu6050/9250 DMP official library (motion_driver_6.12) modifying and porting DMP simple tutorial
Opencv learning notes 3
Embedded Software Engineer (6-15k) written examination interview experience sharing (fresh graduates)
[已解决]setOnNavigationItemSelectedListener()被弃用
Stream analysis of hevc learning
关于极客时间 | MySQL实战45讲的部分总结
SOC wireless charging scheme
Introduction of laser drive circuit
HEVC学习之码流分析
Idea auto Guide
Parameter understanding of quad dataloader in yolov5
Whale conference provides digital upgrade scheme for the event site
The best time to buy and sell stocks to get the maximum return