ROS_OP_open_manipulator_gazebo - 8BitsCoding/RobotMentor GitHub Wiki
<!-- These are the arguments you can pass this launch file, for example paused:=true -->
<arg name="use_robot_name" default="open_manipulator" doc="Must match the robotNamespace tag in the gazebo description file"/>
<arg name="paused" default="true"/>
<arg name="use_sim_time" default="true"/>
<arg name="gui" default="true"/>
<arg name="headless" default="false"/>
<arg name="debug" default="false"/>
์๊ท๋จผํธ ์ ์ธ
์ด๋ ์ฌ์ฉ๋ ์ง๋ ๋ชจ๋ฅด๊ฒ ์ง๋ง ์ผ๋จ ๋ฐ์๋ค์ธ๋ค.
<!-- We resume the logic in empty_world.launch, changing only the name of the world to be launched -->
<include file="$(find gazebo_ros)/launch/empty_world.launch">
<arg name="world_name" value="$(find open_manipulator_gazebo)/worlds/empty.world"/>
<arg name="debug" value="$(arg debug)" />
<arg name="gui" value="$(arg gui)" />
<arg name="paused" value="$(arg paused)"/>
<arg name="use_sim_time" value="$(arg use_sim_time)"/>
<arg name="headless" value="$(arg headless)"/>
</include>
gazebo world ๋ก๋
์ด ๋ถ๋ถ๋ gazebo๋ฅผ ๋ก๋ํ ๋ ์ด๋ฐ์์ผ๋ก ํ๋ค๊ณ ๋ฐ์๋ค์ธ๋ค... (๋ฐ์๋ค์ด๋ ๋ถ๋ถ์ด ๋ง์ ใ )
<!-- Load the URDF into the ROS Parameter Server -->
<param name="robot_description"
command="$(find xacro)/xacro --inorder '$(find open_manipulator_description)/urdf/open_manipulator.urdf.xacro'"/>
๋ก๋ด ๋ชจ๋ธ์ ๋ถ๋ฌ์จ๋ค.
๋ชจ๋ธ์ ๋ํ ์ค๋ช ์ ์ฌ๊ธฐ ์ฐธ๊ณ
<!-- Run a python script to the send a service call to gazebo_ros to spawn a URDF robot -->
<node name="urdf_spawner" pkg="gazebo_ros" type="spawn_model" respawn="false" output="screen"
args="-urdf -model open_manipulator -z 0.0 -param robot_description"/>
๋ก๋ด์ ์ํ๋ ์์น์ ์คํฐ(์์ฑ)ํ๋ค.
<include file="$(find open_manipulator_gazebo)/launch/open_manipulator_controller.launch">
<arg name="use_robot_name" value="$(arg use_robot_name)"/>
</include>
์ปจํธ๋กค๋ฌ ๋ฐ์นํ์ผ์ ๋ก๋ํ๋ค.
์ปจํธ๋กค๋ฌ ๋ฐ์นํ์ผ์ ๋ํ ์ค๋ช ์ ์ฌ๊ธฐ ์ฐธ๊ณ