-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstartup_file
More file actions
34 lines (28 loc) · 859 Bytes
/
Copy pathstartup_file
File metadata and controls
34 lines (28 loc) · 859 Bytes
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
31
32
33
step (1)
mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/
catkin_make
source devel/setup.bash
step(2)
cd ~/catkin_ws/src
catkin_create_pkg my_robot_pkg rospy gazebo_ros
step(3)
<!-- ~/catkin_ws/src/my_robot_pkg/launch/gazebo.launch -->
<launch>
<include file="$(find gazebo_ros)/launch/empty_world.launch">
<arg name="paused" value="false"/>
<arg name="use_sim_time" value="true"/>
<arg name="gui" value="true"/>
<arg name="headless" value="false"/>
<arg name="debug" value="false"/>
</include>
<node name="spawn_urdf" pkg="gazebo_ros" type="spawn_model" args="-urdf -param robot_description -model my_robot"/>
</launch>
step(4)
<!-- ~/catkin_ws/src/my_robot_pkg/urdf/your_robot.urdf -->
<!-- Add your URDF robot model here -->
step(5)
cd ~/catkin_ws/
catkin_make
step(6)
roslaunch my_robot_pkg gazebo.launch