Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
Tags
- C++
- GUI
- ubuntu
- WSL
- U-blox
- 로봇
- 강화학습
- Jetson
- 오블완
- RTK
- 아두이노
- 젯슨
- 인공지능
- SLAM
- Gazebo
- Visual SLAM
- turtlesim
- ZED2
- Simulation
- QT
- 자율탐사
- 자율주행
- 티스토리챌린지
- ROS2
- Puck LITE
- ROS
- 터틀심
- turtlebot3
- WSL2
- GPS
Archives
- Today
- Total
직관적인느낌
ROS - Gazebo tutorial (Official Tutorial), 튜토리얼 - Source Code(전체 코드) 본문
728x90
반응형
Source Code
<?xml version='1.0'?>
<sdf version='1.4'>
<model name="my_robot">
<static>false</static>
<link name='chassis'>
<pose>0 0 .1 0 0 0</pose>
<collision name='collision'>
<geometry>
<box>
<size>.4 .2 .1</size>
</box>
</geometry>
</collision>
<visual name='visual'>
<geometry>
<box>
<size>.4 .2 .1</size>
</box>
</geometry>
</visual>
<collision name='caster_collision'>
<pose>-0.15 0 -0.05 0 0 0</pose>
<geometry>
<sphere>
<radius>.05</radius>
</sphere>
</geometry>
<surface>
<friction>
<ode>
<mu>0</mu>
<mu2>0</mu2>
<slip1>1.0</slip1>
<slip2>1.0</slip2>
</ode>
</friction>
</surface>
</collision>
<visual name='caster_visual'>
<pose>-0.15 0 -0.05 0 0 0</pose>
<geometry>
<sphere>
<radius>.05</radius>
</sphere>
</geometry>
</visual>
</link>
<link name="left_wheel">
<pose>0.1 0.13 0.1 0 1.5707 1.5707</pose>
<collision name="collision">
<geometry>
<cylinder>
<radius>.1</radius>
<length>.05</length>
</cylinder>
</geometry>
</collision>
<visual name="visual">
<geometry>
<cylinder>
<radius>.1</radius>
<length>.05</length>
</cylinder>
</geometry>
</visual>
</link>
<link name="right_wheel">
<pose>0.1 -0.13 0.1 0 1.5707 1.5707</pose>
<collision name="collision">
<geometry>
<cylinder>
<radius>.1</radius>
<length>.05</length>
</cylinder>
</geometry>
</collision>
<visual name="visual">
<geometry>
<cylinder>
<radius>.1</radius>
<length>.05</length>
</cylinder>
</geometry>
</visual>
</link>
<joint type="revolute" name="left_wheel_hinge">
<pose>0 0 -0.03 0 0 0</pose>
<child>left_wheel</child>
<parent>chassis</parent>
<axis>
<xyz>0 1 0</xyz>
</axis>
</joint>
<joint type="revolute" name="right_wheel_hinge">
<pose>0 0 0.03 0 0 0</pose>
<child>right_wheel</child>
<parent>chassis</parent>
<axis>
<xyz>0 1 0</xyz>
</axis>
</joint>
</model>
</sdf>
728x90
반응형
'공학 > ROS' 카테고리의 다른 글
ROS - 터틀심을 이용한 ROS기초, Rqt tutorial(Turtlesim) (2) | 2023.03.08 |
---|---|
ROS - Gazebo tutorial (Official Tutorial), 튜토리얼 (0) | 2023.03.08 |
ROS기반 Q필터가 적용된 비선형외란관측기(DOB)를 모바일 로봇 (0) | 2023.03.03 |
ROS기반 sliding mode control 파이썬 코드 (0) | 2023.03.02 |
Simulation_turtlebot3 - Autorace(melodic) - 제어 (0) | 2023.03.02 |