-
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
47 changed files
with
3,877 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<launch> | ||
<arg name="wname" default="stairs"/> | ||
<arg name="rname" default="gr1t1"/> | ||
<param name="robot_name" type="str" value="gr1t1"/> | ||
<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"/> | ||
|
||
<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" textfile="$(find gr1t1_description)/urdf/GR1T1_lower_limb.urdf"/> | ||
|
||
<!-- 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 1.0 -model $(arg rname)_gazebo -param robot_description -unpause"/> | ||
|
||
<!-- Load joint controller configurations from YAML file to parameter server --> | ||
<rosparam file="$(arg dollar)$(arg robot_path)/config/robot_control.yaml" command="load"/> | ||
|
||
<!-- <rosparam param="/gr1t1_gazebo/joint_state_controller/publish_rate">5000</rosparam> --> | ||
|
||
<!-- load the controllers --> | ||
<node pkg="controller_manager" type="spawner" name="controller_spawner" respawn="false" | ||
output="screen" ns="/$(arg rname)_gazebo" args="joint_state_controller | ||
l_hip_roll_controller l_hip_yaw_controller l_hip_pitch_controller l_knee_pitch_controller l_ankle_pitch_controller | ||
r_hip_roll_controller r_hip_yaw_controller r_hip_pitch_controller r_knee_pitch_controller r_ankle_pitch_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> | ||
|
||
<node pkg="rl_sar" type="rl_sim" name="rl_sim" output="screen"/> | ||
|
||
</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
Binary file not shown.
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,14 @@ | ||
cmake_minimum_required(VERSION 3.0) | ||
|
||
project(gr1t1_description) | ||
|
||
find_package(catkin REQUIRED) | ||
|
||
catkin_package() | ||
|
||
find_package(roslaunch) | ||
|
||
foreach(dir config launch meshes urdf) | ||
install(DIRECTORY ${dir}/ | ||
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/${dir}) | ||
endforeach(dir) |
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,57 @@ | ||
gr1t1_gazebo: | ||
# Publish all joint states ----------------------------------- | ||
joint_state_controller: | ||
type: joint_state_controller/JointStateController | ||
publish_rate: 1000 | ||
|
||
# left leg Controllers --------------------------------------- | ||
l_hip_roll_controller: | ||
type: robot_joint_controller/RobotJointController | ||
joint: l_hip_roll | ||
pid: {p: 57.0, i: 0.0, d: 5.7} | ||
|
||
l_hip_yaw_controller: | ||
type: robot_joint_controller/RobotJointController | ||
joint: l_hip_yaw | ||
pid: {p: 43.0, i: 0.0, d: 4.3} | ||
|
||
l_hip_pitch_controller: | ||
type: robot_joint_controller/RobotJointController | ||
joint: l_hip_pitch | ||
pid: {p: 114.0, i: 0.0, d: 11.4} | ||
|
||
l_knee_pitch_controller: | ||
type: robot_joint_controller/RobotJointController | ||
joint: l_knee_pitch | ||
pid: {p: 114.0, i: 0.0, d: 11.4} | ||
|
||
l_ankle_pitch_controller: | ||
type: robot_joint_controller/RobotJointController | ||
joint: l_ankle_pitch | ||
pid: {p: 15.3, i: 0.0, d: 1.5} | ||
|
||
# right leg Controllers --------------------------------------- | ||
r_hip_roll_controller: | ||
type: robot_joint_controller/RobotJointController | ||
joint: r_hip_roll | ||
pid: {p: 57.0, i: 0.0, d: 5.7} | ||
|
||
r_hip_yaw_controller: | ||
type: robot_joint_controller/RobotJointController | ||
joint: r_hip_yaw | ||
pid: {p: 43.0, i: 0.0, d: 4.3} | ||
|
||
r_hip_pitch_controller: | ||
type: robot_joint_controller/RobotJointController | ||
joint: r_hip_pitch | ||
pid: {p: 114.0, i: 0.0, d: 11.4} | ||
|
||
r_knee_pitch_controller: | ||
type: robot_joint_controller/RobotJointController | ||
joint: r_knee_pitch | ||
pid: {p: 114.0, i: 0.0, d: 11.4} | ||
|
||
r_ankle_pitch_controller: | ||
type: robot_joint_controller/RobotJointController | ||
joint: r_ankle_pitch | ||
pid: {p: 15.3, i: 0.0, d: 1.5} |
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,20 @@ | ||
<launch> | ||
<arg | ||
name="model" /> | ||
<param | ||
name="robot_description" | ||
textfile="$(find gr1t1_description)/urdf/GR1T1_lower_limb.urdf" /> | ||
<node | ||
name="joint_state_publisher_gui" | ||
pkg="joint_state_publisher_gui" | ||
type="joint_state_publisher_gui" /> | ||
<node | ||
name="robot_state_publisher" | ||
pkg="robot_state_publisher" | ||
type="robot_state_publisher" /> | ||
<node | ||
name="rviz" | ||
pkg="rviz" | ||
type="rviz" | ||
args="-d $(find gr1t1_description)/urdf.rviz" /> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<launch> | ||
<include | ||
file="$(find gazebo_ros)/launch/empty_world.launch" /> | ||
<node | ||
name="tf_footprint_base" | ||
pkg="tf" | ||
type="static_transform_publisher" | ||
args="0 0 0 0 0 0 base_link base_footprint 40" /> | ||
<node | ||
name="spawn_model" | ||
pkg="gazebo_ros" | ||
type="spawn_model" | ||
args="-file $(find gr1t1_description)/urdf/GR1T1_lower_limb.urdf -urdf -model gr1t1_description" | ||
output="screen" /> | ||
<node | ||
name="fake_joint_calibration" | ||
pkg="rostopic" | ||
type="rostopic" | ||
args="pub /calibrated std_msgs/Bool true" /> | ||
</launch> |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
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,20 @@ | ||
<package format="2"> | ||
<name>gr1t1_description</name> | ||
<version>1.0.0</version> | ||
<description> | ||
<p>URDF Description package for gr1t1_description</p> | ||
<p>This package contains configuration data, 3D models and launch files for fldlar_description robot</p> | ||
</description> | ||
<author>Ziqi Fan</author> | ||
<maintainer email="[email protected]" /> | ||
<license>Apache</license> | ||
<buildtool_depend>catkin</buildtool_depend> | ||
<depend>roslaunch</depend> | ||
<depend>robot_state_publisher</depend> | ||
<depend>rviz</depend> | ||
<depend>joint_state_publisher_gui</depend> | ||
<depend>gazebo</depend> | ||
<export> | ||
<architecture_independent /> | ||
</export> | ||
</package> |
Oops, something went wrong.