-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
338 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<launch> | ||
<arg name="wname" default="stairs"/> | ||
<arg name="rname" default="a1"/> | ||
<param name="robot_name" type="str" value="$(arg rname)_isaaclab"/> | ||
<param name="use_history" type="bool" value="false"/> | ||
<param name="ros_namespace" type="str" value="/$(arg rname)_gazebo/"/> | ||
<arg name="robot_path" value="(find $(arg rname)_description)"/> | ||
<arg name="dollar" value="$"/> | ||
|
||
<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"/> | ||
<!-- Debug mode will hung up the robot, use "true" or "false" to switch it. --> | ||
<arg name="user_debug" default="false"/> | ||
|
||
<include file="$(find gazebo_ros)/launch/empty_world.launch"> | ||
<arg name="world_name" value="$(find rl_sar)/worlds/$(arg wname).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> | ||
|
||
<!-- Load the URDF into the ROS Parameter Server --> | ||
<param name="robot_description" | ||
command="$(find xacro)/xacro --inorder '$(arg dollar)$(arg robot_path)/xacro/robot.xacro' | ||
DEBUG:=$(arg user_debug)"/> | ||
|
||
<!-- Run a python script to the send a service call to gazebo_ros to spawn a URDF robot --> | ||
<!-- Set trunk and joint positions at startup --> | ||
<node pkg="gazebo_ros" type="spawn_model" name="urdf_spawner" respawn="false" output="screen" | ||
args="-urdf -z 0.6 -model $(arg rname)_gazebo -param robot_description"/> | ||
|
||
<!-- Load joint controller configurations from YAML file to parameter server --> | ||
<rosparam file="$(arg dollar)$(arg robot_path)/config/robot_control.yaml" command="load"/> | ||
|
||
<!-- load the controllers --> | ||
<node pkg="controller_manager" type="spawner" name="controller_spawner" respawn="false" | ||
output="screen" ns="/$(arg rname)_gazebo" args="joint_state_controller | ||
FL_hip_controller FL_thigh_controller FL_calf_controller | ||
FR_hip_controller FR_thigh_controller FR_calf_controller | ||
RL_hip_controller RL_thigh_controller RL_calf_controller | ||
RR_hip_controller RR_thigh_controller RR_calf_controller "/> | ||
|
||
<!-- convert joint states to TF transforms for rviz, etc --> | ||
<node pkg="robot_state_publisher" type="robot_state_publisher" name="robot_state_publisher" | ||
respawn="false" output="screen"> | ||
<remap from="/joint_states" to="/$(arg rname)_gazebo/joint_states"/> | ||
</node> | ||
|
||
</launch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.