-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added cr7ial support #33
Changes from 12 commits
1b6a519
2490e04
3e04145
66397a3
7441351
4618626
9c4fadb
dc97aaf
99ee7d7
3d0ef53
5ecc3af
73efdec
be8988a
b80aab5
505ac1e
1e43651
898dcff
d50561f
ccc54fd
60f88ba
90a0208
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
cmake_minimum_required(VERSION 2.8.3) | ||
|
||
project(fanuc_cr7ia_support) | ||
|
||
find_package(catkin REQUIRED) | ||
|
||
catkin_package() | ||
|
||
if (CATKIN_ENABLE_TESTING) | ||
find_package(roslaunch REQUIRED) | ||
roslaunch_add_file_check(tests/roslaunch_test_cr7ial.xml) | ||
endif() | ||
|
||
install(DIRECTORY config launch meshes urdf | ||
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}) | ||
|
||
install(FILES readme.md DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
controller_joint_names: ['joint_1', 'joint_2', 'joint_3', 'joint_4', 'joint_5', 'joint_6'] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0"?> | ||
<launch> | ||
<param name="robot_description" command="$(find xacro)/xacro --inorder '$(find fanuc_cr7ia_support)/urdf/cr7ial.xacro'" /> | ||
</launch> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0"?> | ||
<!-- | ||
Manipulator specific version of 'robot_interface_streaming.launch'. | ||
|
||
Defaults provided for LR Mate CR-7iA/L: | ||
- J23_factor = 1 | ||
- use_bswap = true | ||
- 6 joints | ||
|
||
Usage: | ||
robot_interface_streaming_cr7ial.launch robot_ip:=<value> | ||
--> | ||
<launch> | ||
<arg name="robot_ip" doc="IP of controller" /> | ||
<arg name="J23_factor" default="1" doc="Compensation factor for joint 2-3 coupling (-1, 0 or 1)" /> | ||
<arg name="use_bswap" default="true" doc="If true, robot driver will byte-swap all incoming and outgoing data" /> | ||
|
||
<rosparam command="load" file="$(find fanuc_cr7ia_support)/config/joint_names_cr7ial.yaml" /> | ||
|
||
<include file="$(find fanuc_driver)/launch/robot_interface_streaming.launch"> | ||
<arg name="robot_ip" value="$(arg robot_ip)" /> | ||
<arg name="J23_factor" value="$(arg J23_factor)" /> | ||
<arg name="use_bswap" value="$(arg use_bswap)" /> | ||
</include> | ||
</launch> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0"?> | ||
<!-- | ||
Manipulator specific version of the state visualizer. | ||
|
||
Defaults provided for LR Mate CR-7iA/L: | ||
- J23_factor = 1 | ||
- use_bswap = true | ||
- 6 joints | ||
|
||
Usage: | ||
robot_state_visualize_cr7ial.launch robot_ip:=<value> | ||
--> | ||
<launch> | ||
<arg name="robot_ip" doc="IP of controller" /> | ||
<arg name="J23_factor" default="1" doc="Compensation factor for joint 2-3 coupling (-1, 0 or 1)" /> | ||
<arg name="use_bswap" default="true" doc="If true, robot driver will byte-swap all incoming and outgoing data" /> | ||
|
||
<rosparam command="load" file="$(find fanuc_cr7ia_support)/config/joint_names_cr7ial.yaml" /> | ||
|
||
<include file="$(find fanuc_driver)/launch/robot_state.launch"> | ||
<arg name="robot_ip" value="$(arg robot_ip)" /> | ||
<arg name="J23_factor" value="$(arg J23_factor)" /> | ||
<arg name="use_bswap" value="$(arg use_bswap)" /> | ||
</include> | ||
|
||
<node name="robot_state_publisher" pkg="robot_state_publisher" | ||
type="robot_state_publisher" /> | ||
|
||
<include file="$(find fanuc_cr7ia_support)/launch/load_cr7ial.launch" /> | ||
|
||
<node name="rviz" pkg="rviz" type="rviz" args="-d $(find industrial_robot_client)/config/robot_state_visualize.rviz" required="true" /> | ||
</launch> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0"?> | ||
<launch> | ||
<include file="$(find fanuc_cr7ia_support)/launch/load_cr7ial.launch" /> | ||
<node name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher"> | ||
<param name="use_gui" value="true" /> | ||
</node> | ||
<node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher" /> | ||
<node name="rviz" pkg="rviz" type="rviz" args="-d $(find industrial_robot_client)/config/robot_state_visualize.rviz" required="true" /> | ||
</launch> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<?xml version="1.0"?> | ||
<?xml-model href="http://download.ros.org/schema/package_format2.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="2"> | ||
<name>fanuc_cr7ia_support</name> | ||
<version>0.1.0</version> | ||
<description> | ||
<p> | ||
ROS-Industrial support for the Fanuc CR-7iA (and variants). | ||
</p> | ||
<p> | ||
This package contains configuration data, 3D models and launch files | ||
for Fanuc CR-7iA manipulators. This currently includes the /L model | ||
only. | ||
</p> | ||
<p><b>Specifications</b>:</p> | ||
<ul> | ||
<li>CR-7iA/L - Normal Range</li> | ||
</ul> | ||
<p> | ||
Joint limits and maximum joint velocities are based on the information in | ||
the FANUC Robot CR-7iA Mechanical Unit Operator's Manual. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you please be exact about which version of the manual you used? Fanuc documents are versioned, so I'd like this to be as specific as possible. It should be something like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated |
||
All urdfs are based on the default motion and | ||
joint velocity limits, unless noted otherwise (ie: no support for high | ||
speed joints, extended / limited motion ranges or other options). | ||
</p> | ||
<p> | ||
Before using any of the configuration files and / or meshes included | ||
in this package, be sure to check they are correct for the particular | ||
robot model and configuration you intend to use them with. | ||
</p> | ||
</description> | ||
<author email="dniewinski@clearpathrobotics.com">Dave Niewinski</author> | ||
<maintainer email="g.a.vanderhoorn@tudelft.nl">G.A. vd. Hoorn (TU Delft Robotics Institute)</maintainer> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've added myself as maintainer, as we do that for all ROS-I packages. Are you actually planning to maintain this? I'd very much welcome that, but it is a committment. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can maintain, but you would likely be better-suited. I'll just contribute |
||
<license>BSD</license> | ||
|
||
<url type="website">http://wiki.ros.org/fanuc_cr7ia_support</url> | ||
<url type="bugtracker">https://github.com/ros-industrial/fanuc_experimental/issues</url> | ||
<url type="repository">https://github.com/ros-industrial/fanuc_experimental</url> | ||
|
||
<buildtool_depend>catkin</buildtool_depend> | ||
|
||
<test_depend>roslaunch</test_depend> | ||
|
||
<exec_depend>fanuc_driver</exec_depend> | ||
<exec_depend>fanuc_resources</exec_depend> | ||
<exec_depend>joint_state_publisher</exec_depend> | ||
<exec_depend>robot_state_publisher</exec_depend> | ||
<exec_depend>rviz</exec_depend> | ||
<exec_depend>xacro</exec_depend> | ||
|
||
<export> | ||
<architecture_independent /> | ||
<rosindex> | ||
<tags> | ||
<tag>cr7ia</tag> | ||
<tag>description</tag> | ||
<tag>experimental</tag> | ||
<tag>fanuc</tag> | ||
<tag>industrial</tag> | ||
<tag>ros-industrial</tag> | ||
<tag>support_package</tag> | ||
</tags> | ||
</rosindex> | ||
</export> | ||
</package> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# fanuc_cr7ia_support | ||
|
||
## Overview | ||
|
||
This package is part of the [ROS-Industrial][] program. See the main | ||
[fanuc_experimental][] page on the ROS wiki for more information on usage. | ||
|
||
|
||
[ROS-Industrial]: http://wiki.ros.org/Industrial | ||
[fanuc_experimental]: http://wiki.ros.org/fanuc_experimental |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?xml version="1.0"?> | ||
<launch> | ||
<arg name="ip_str" value="127.0.0.1" /> | ||
|
||
<group ns="load_cr7ial__"> | ||
<include file="$(find fanuc_cr7ia_support)/launch/load_cr7ial.launch"/> | ||
</group> | ||
|
||
<group ns="test_cr7ial__"> | ||
<include file="$(find fanuc_cr7ia_support)/launch/test_cr7ial.launch"/> | ||
</group> | ||
|
||
<group ns="robot_interface_streaming_cr7ial__"> | ||
<include file="$(find fanuc_cr7ia_support)/launch/robot_interface_streaming_cr7ial.launch"> | ||
<arg name="robot_ip" value="$(arg ip_str)" /> | ||
</include> | ||
</group> | ||
|
||
<group ns="robot_state_visualize_cr7ial__"> | ||
<include file="$(find fanuc_cr7ia_support)/launch/robot_state_visualize_cr7ial.launch"> | ||
<arg name="robot_ip" value="$(arg ip_str)" /> | ||
</include> | ||
</group> | ||
|
||
|
||
<!-- without bswap --> | ||
<group ns="robot_interface_streaming_cr7ial_f__"> | ||
<include file="$(find fanuc_cr7ia_support)/launch/robot_interface_streaming_cr7ial.launch"> | ||
<arg name="robot_ip" value="$(arg ip_str)" /> | ||
<arg name="use_bswap" value="false" /> | ||
</include> | ||
</group> | ||
|
||
<group ns="robot_state_visualize_cr7ial_f__"> | ||
<include file="$(find fanuc_cr7ia_support)/launch/robot_state_visualize_cr7ial.launch"> | ||
<arg name="robot_ip" value="$(arg ip_str)" /> | ||
<arg name="use_bswap" value="false" /> | ||
</include> | ||
</group> | ||
</launch> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" ?> | ||
<robot name="fanuc_cr7ial" xmlns:xacro="http://ros.org/wiki/xacro"> | ||
<xacro:include filename="$(find fanuc_cr7ia_support)/urdf/cr7ial_macro.xacro"/> | ||
<xacro:fanuc_cr7ial prefix=""/> | ||
</robot> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just making sure: have you verified this? What did you choose in the initial robot setup?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verifying this now. J3 limits on Fanuc change depending on J2, and since it's linked-arm, the J3 value is also tied to J2. Is there any way to have the limits of J3 updated based on the current value of J2? Unless the limits are set small enough that they are always within the actual limits, there will always be cases where you can plan outside of actual limits
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
re: limits based on J2-J3: true, but normal range only refers to the range of motion of J1 in this case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Limits have been update as of manual. I don't see any reference to max joint speeds in the manual though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, Fanuc doesn't do that for their CR range. Where'd you get the joint speed limits that you have in there now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you get me a copy of all
sy*.va
files on the controller? Either simulated or real, doesn't matter. A zip file to my email would be very much appreciated.FTP is probably easiest.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will get a backup to you shortly