-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplified ur_description and ur_gazebo by using model argument
Model specific xacro and launch files replaced by generic ones. Default arguments and parameters only defined once in lowest level files by replacing empty strings. Omit properties same as default. Still all properties can be overridden in upper level files. Less redefining of arguments and parameters by pass_all_args in launch and using upper level parameters in xacro files. transmission_hw_interface only needs to contain parts of position, velocity or effort in lower or upper case. Names of properties, files and directory structure simplified. Macro for individual transmission and fixed joint added. Fractions and squares cylinder_inertial macro. initial_joint_positions, full world_pose and unpause argument at spawning added to control.launch, as by moveit_setup_assistant. robot_model changed to model for easier calling for example: roslaunch ur_gazebo bringup.launch model:=ur5
- Loading branch information
1 parent
40e21b1
commit a053318
Showing
98 changed files
with
537 additions
and
1,950 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
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
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
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 |
---|---|---|
@@ -1,20 +1,14 @@ | ||
cmake_minimum_required(VERSION 3.0.2) | ||
project(ur_description) | ||
|
||
find_package(catkin REQUIRED) | ||
|
||
catkin_package() | ||
|
||
if (CATKIN_ENABLE_TESTING) | ||
find_package(roslaunch REQUIRED) | ||
roslaunch_add_file_check(tests/roslaunch_test_ur10e.xml) | ||
roslaunch_add_file_check(tests/roslaunch_test_ur10.xml) | ||
roslaunch_add_file_check(tests/roslaunch_test_ur16e.xml) | ||
roslaunch_add_file_check(tests/roslaunch_test_ur3e.xml) | ||
roslaunch_add_file_check(tests/roslaunch_test_ur3.xml) | ||
roslaunch_add_file_check(tests/roslaunch_test_ur5e.xml) | ||
roslaunch_add_file_check(tests/roslaunch_test_ur5.xml) | ||
foreach(model ur3 ur3e ur5 ur5e ur10 ur10e ur16e) | ||
roslaunch_add_file_check(launch/test.launch model=${model}) | ||
endforeach() | ||
endif() | ||
|
||
install(DIRECTORY cfg config launch meshes urdf | ||
install(DIRECTORY config launch meshes urdf | ||
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}) |
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,47 @@ | ||
<?xml version="1.0"?> | ||
<launch> | ||
<arg name="model" doc="Type/series of used UR robot (ur3, ur3e, ur5, ur5e, ur10, ur10e, ur16e)"/> | ||
<arg name="prefix" default="" doc="Prefix of robot name"/> | ||
|
||
<!-- Parameter files --> | ||
<arg name="joint_limit_params" default="" doc="YAML file containing the joint limit values"/> | ||
<arg name="kinematics_params" default="" doc="YAML file containing the robot's kinematic parameters. These will be different for each robot as they contain the robot's calibration."/> | ||
<arg name="physical_params" default="" doc="YAML file containing the phycical parameters of the robots"/> | ||
<arg name="visual_params" default="" doc="YAML file containing the visual model of the robots"/> | ||
|
||
<!--Common parameters --> | ||
<arg name="transmission_hw_interface" default="" doc="The hardware_interface to expose for each joint in the simulated robot: position, velocity or effort"/> | ||
<arg name="safety_limits" default="" doc="If True, enable the safety limits controller"/> | ||
<arg name="safety_pos_margin" default="" doc="The lower/upper limits in the safety controller"/> | ||
<arg name="safety_k_position" default="" doc="Used to set k position in the safety controller"/> | ||
|
||
<!-- Load the top-level (ie: stand-alone and complete) xacro for the UR | ||
variant defined by the set of yaml parameter files (so to load a UR5 | ||
onto the ROS parameter server, provide paths to the .yaml files which | ||
contain the limits, kinematics, physical and visual parameters which | ||
together describe a UR5 robot. | ||
NOTE: users will typically want to use use one of the other .launch files | ||
in this directory (ie: 'load.launch'), as those already contain | ||
appropriate default values for the required arguments for the various | ||
supported robots. | ||
NOTE2: if you have a custom robot configuration, or your robot is | ||
integrated into a work cell, do NOT change this file or add all of the | ||
work cell objects to the ur.xacro file. Create a new top-level xacro and | ||
include the macro.xacro file into it. Then write a new .launch file | ||
to load it onto the parameter server. | ||
--> | ||
<param name="robot_description" command="$(find xacro)/xacro '$(find ur_description)/urdf/ur.xacro' | ||
model:=$(arg model) | ||
prefix:=$(arg prefix) | ||
joint_limit_params:=$(arg joint_limit_params) | ||
kinematics_params:=$(arg kinematics_params) | ||
physical_params:=$(arg physical_params) | ||
visual_params:=$(arg visual_params) | ||
transmission_hw_interface:=$(arg transmission_hw_interface) | ||
safety_limits:=$(arg safety_limits) | ||
safety_pos_margin:=$(arg safety_pos_margin) | ||
safety_k_position:=$(arg safety_k_position) | ||
"/> | ||
</launch> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.