forked from xArm-Developer/xarm_ros
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: xarm_planner and gazebo support lite6
- Loading branch information
Showing
5 changed files
with
61 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?xml version="1.0"?> | ||
<launch> | ||
<arg name="run_demo" default="false" doc="If true, perform the demo after launch"/> | ||
<arg name="paused" default="false" doc="Starts gazebo in paused mode" /> | ||
<arg name="gui" default="true" doc="Starts gazebo gui" /> | ||
<arg name="effort_control" default="false"/> | ||
<arg name="velocity_control" default="false"/> | ||
<arg name="add_gripper" default="false" /> | ||
<arg name="add_vacuum_gripper" default="false" /> | ||
<arg name="namespace" default="xarm"/> | ||
|
||
<arg name="xarm_velocity_control" value="$(eval arg('velocity_control') and not arg('run_demo'))" /> | ||
|
||
<rosparam file="$(find lite6_moveit_config)/config/lite6_params.yaml" command="load" ns="$(arg namespace)"/> | ||
<rosparam if="$(arg add_gripper)" file="$(find xarm_controller)/config/gripper_gazebo_ros_control.yaml" command="load"/> | ||
<!-- startup simulated world --> | ||
<include file="$(find gazebo_ros)/launch/empty_world.launch"> | ||
<arg name="world_name" value="$(find xarm_gazebo)/worlds/xarm_example1_table.world"/> | ||
<arg name="paused" value="$(arg paused)"/> | ||
<arg name="gui" value="$(arg gui)"/> | ||
</include> | ||
|
||
<!-- send robot urdf to param server, joint limit may be overwritten if use moveit planner --> | ||
<param unless="$(eval arg('add_gripper') or arg('add_vacuum_gripper'))" name="robot_description" | ||
command="$(find xacro)/xacro | ||
--inorder '$(find xarm_description)/urdf/lite6_robot.urdf.xacro' | ||
effort_control:=$(arg effort_control) velocity_control:=$(arg xarm_velocity_control)" /> | ||
|
||
<param if="$(arg add_gripper)" name="robot_description" | ||
command="$(find xacro)/xacro | ||
--inorder '$(find xarm_description)/urdf/lite6_with_gripper.xacro' | ||
effort_control:=$(arg effort_control) velocity_control:=$(arg xarm_velocity_control)" /> | ||
|
||
<param if="$(arg add_vacuum_gripper)" name="robot_description" | ||
command="$(find xacro)/xacro | ||
--inorder '$(find xarm_description)/urdf/lite6_with_vacuum_gripper.xacro' | ||
effort_control:=$(arg effort_control) velocity_control:=$(arg xarm_velocity_control)" /> | ||
|
||
<!-- spawn robot model in gazebo, located on the table --> | ||
<node name="spawn_gazebo_model" pkg="gazebo_ros" type="spawn_model" | ||
respawn="false" output="screen" | ||
args="-urdf -model lite6 -x -0.2 -y -0.5 -z 1.021 -Y 1.571 -param robot_description"/> | ||
|
||
<!-- load the corresponding controllers --> | ||
<include file="$(find xarm_controller)/launch/lite6_control.launch"> | ||
<arg name="run_demo_traj" value="$(arg run_demo)"/> | ||
<arg name="effort_control" value="$(arg effort_control)"/> | ||
<arg name="velocity_control" value="$(arg xarm_velocity_control)"/> | ||
<arg name="add_gripper" value="$(arg add_gripper)" /> | ||
</include> | ||
|
||
</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
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