-
Notifications
You must be signed in to change notification settings - Fork 0
/
simulate.launch
58 lines (48 loc) · 2.79 KB
/
simulate.launch
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<launch>
<arg name="show_rviz" default="true"/>
<arg name="paused" default="false"/>
<arg name="debug" default="false"/>
<arg name="gui" default="true"/>
<include file="$(find gazebo_ros)/launch/empty_world.launch">
<arg name="world_name" value="worlds/empty.world" />
<arg name="paused" value="$(arg paused)" />
<arg name="debug" value="$(arg debug)" />
<arg name="gui" value="$(arg gui)" />
<arg name="use_sim_time" value="false" />
<arg name="headless" value="false" />
</include>
<!-- urdf xml robot description loaded on the Parameter Server-->
<!--param name="robot_description" command="$(find xacro)/xacro.py '$(find robot_description)/urdf/igvc.xacro'" /-->
<param name="robot_description" command="$(find xacro)/xacro.py '$(find robot_description)/urdf/igvc.xacro'" />
<node name="imu_transform" pkg="tf" type="static_transform_publisher" args=" 0 0 0 0 0 0 base_link SpartonCompassIMU 50"/>
<!--node name="odomlink" pkg="tf" type="static_transform_publisher" args=" 0 0 0 0 0 0 map world 50"/-->
<!-- <node name="odomlink" pkg="tf" type="static_transform_publisher" args=" 0 0 0 0 0 0 odom base_footprint 50"/> -->
<node name="igvc_spawn" pkg="gazebo_ros" type="spawn_model" output="screen"
args="-urdf -param robot_description -model labrob" />
<node name="joy_node" pkg="joy" type="joy_node"/>
<arg name="joy_config" value="ps3-holonomic" />
<node name="teleop_twist_joy" pkg="teleop_twist_joy" type="teleop_node" >
<rosparam command="load" file="$(find teleop_twist_joy)/config/$(arg joy_config).config.yaml" />
</node>
<!-- robot visualization in Rviz -->
<group if="$(arg show_rviz)">
<!-- node name="rviz" pkg="rviz" type="rviz" output="screen" args="-d $(find robot_gazebo)/worlds/robot.world"/-->
<!-- include file="$(find robot_gazebo)/launch/robot_world.launch" / -->
<!-- load joint controller configurations from YAML file to parameter server -->
<rosparam file="$(find robot_control)/config/velocity_control.yaml" command="load" />
<!-- load the controllers -->
<node name="robot_controller" pkg="controller_manager" type="spawner" output="screen"
args="velocity_controller" />
<!-- publish all the frames to TF -->
<!-- node name="robot_state_publisher" pkg="robot_state_publisher" type="state_publisher">
<param name="publish_frequency" value="50"/>
</node -->
<node pkg="joint_state_publisher" type="joint_state_publisher" name="joint_states">
<!--param name="robot_description" value="robot_description"/-->
</node>
<node pkg="robot_state_publisher" type="robot_state_publisher" name="rob_st_pub" >
<!--remap from="robot_description" to="different_robot_description" />
<remap from="joint_states" to="different_joint_states" /-->
</node>
</group>
</launch>