当前位置:网站首页>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
边栏推荐
- 鲸会务为活动现场提供数字化升级方案
- Opencv learning notes II
- Using transformers of hugging face to realize text classification
- Esp8266wifi module tutorial: punctual atom atk-esp8266 for network communication, single chip microcomputer and computer, single chip microcomputer and mobile phone to send data
- Learning signal integrity from scratch (SIPI) -- 3 challenges faced by Si and Si based design methods
- RF filter
- (1) Turn on the LED
- Relationship extraction --tplinker
- 1GHz active probe DIY
- Remote centralized control of distributed sensor signals using wireless technology
猜你喜欢

Embedded Software Engineer (6-15k) written examination interview experience sharing (fresh graduates)

(1) Turn on the LED

STM32 project design: temperature, humidity and air quality alarm, sharing source code and PCB

xxl-job配置告警邮件通知

Necessary protection ring for weak current detection

Bezier curve learning

Analysis of internal circuit of operational amplifier

Can the encrypted JS code and variable name be cracked and restored?

Digital image processing learning (II): Gaussian low pass filter

Opencv learning notes II
随机推荐
Idea uses regular expressions for global substitution
Undefined symbols for architecture i386 is related to third-party compiled static libraries
Time functions supported in optee
MySQL query time period
Design of reverse five times voltage amplifier circuit
Fabrication of modulation and demodulation circuit
Timer code guide in optee
Assembly led on
Matlab function foundation (directly abandon version)
Necessary protection ring for weak current detection
2020-10-20
How to Use Instruments in Xcode
opencv學習筆記三
批量修改文件名
Batch execute SQL file
Mapping '/var/mobile/Library/Caches/com. apple. keyboards/images/tmp. gcyBAl37' failed: 'Invalid argume
Recovering the system with Clonezilla USB disk
Installation of jupyter
opencv学习笔记三
Convex optimization of quadruped