当前位置:网站首页>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
边栏推荐
- Monitor iPad Keyboard Display and hide events
- Why are you impetuous
- Tokenizer description in Bert
- Digital image processing learning (II): Gaussian low pass filter
- 三菱PLC若想实现以太网无线通讯,需要具备哪些条件?
- Zlmediakit push pull flow test
- Recyclerview item gets the current position according to the X and Y coordinates
- Can the encrypted JS code and variable name be cracked and restored?
- Compiling owncloud client on win10
- Assembly led on
猜你喜欢

Opencv learning notes 3

Koa_mySQL_Ts 的整合

Remote centralized control of distributed sensor signals using wireless technology

Calculation of decoupling capacitance

Recovering the system with Clonezilla USB disk

See which processes occupy specific ports and shut down

FFmpeg音视频播放器实现

STM32 project design: an e-reader making tutorial based on stm32f4

First character that appears only once

Whale conference one-stop intelligent conference system helps organizers realize digital conference management
随机推荐
js文件报无效字符错误
Bezier curve learning
Introduction of laser drive circuit
Idea auto Guide
Matlab function foundation (directly abandon version)
[postgraduate entrance examination] group planning exercises: memory
Undefined symbols for architecture i386与第三方编译的静态库有关
Text to SQL model ----irnet
【Unity Mirror】NetworkTeam的使用
RecyclerView Item 根据 x,y 坐标得到当前position(位置)
Stream analysis of hevc learning
鲸会务为活动现场提供数字化升级方案
Microcontroller from entry to advanced
Time functions supported in optee
optee中支持的时间函数
Compiling owncloud client on win10
关于极客时间 | MySQL实战45讲的部分总结
swift 代码实现方法调用
GHUnit: Unit Testing Objective-C for the iPhone
Interpretation of x-vlm multimodal model