For Chinese version: 简体中文版说明
This ReadMe is for new(Lite 6 and UF850) and future UFACTORY product models other than xArm series. Here use "lite6" as example, for UFACTORY 850 users, please change "lite6" to "uf850" accordingly.
If you have used "xarm_ros" for xArm series before, the main differences for new UFACTROY models are:
-
Default namespace has changed from
xarm
toufactory
; -
Robot full-state report topic name has changed from
xarm_states
torobot_states
;
$ roslaunch xarm_description lite6_rviz_display.launch
The robot model will appear in Rviz window and "joint state publisher" panel can be used to adjust the posture of that robot.
$ roslaunch xarm_gazebo lite6_beside_table.launch [add_gripper:=true] [add_vacuum_gripper:=true]
Gazebo will be launched and virtual robot will be mounted on a table, add_gripper
and add_vacuum_gripper
are optional arguments. However, only one end tool should be installed.
Please refer to uf_robot_moveit_config package.
First bring up the UFACTORY ros driver:
$ roslaunch xarm_bringup lite6_server.launch robot_ip:=192.168.1.xxx (your robot IP)
Then, please refer to xarm_api/xarm_msgs part, the concepts, provided services or messages are all the same except the default namespace for non-xArm series is ufactory
rather than xarm
. For example, to call the service of enabling all joints:
$ rosservice call /ufactory/motion_ctrl 8 1
All the xArm services (joint/cartesian motion, velocity motion, servo motions, etc) including mode operations can be directly used on new models like Lite 6, just replace previous namespace /xarm
with /ufactory
.
Another difference from xArm version is the topic /xarm/xarm_states
has been changed to /ufactory/robot_states
(with default namespace attached).
Please refer to uf_robot_moveit_config package.
Below is the network diagram from rqt_graph
output:
这篇ReadMe适用于UFACTORY xArm系列之外的产品(如Lite 6, UF850),本说明使用 "lite6" 作为例子,使用UFACTORY 850的用户,请将"lite6"关键字替换为"uf850"。
如果您之前已经使用过 "xarm_ros" 开发 xArm 系列产品, 对于UFACTORY其他系列的ros开发,方法和操作大同小异,主要的区别在于:
-
默认的命名空间从
xarm
更改为ufactory
; -
机械臂全状态反馈的话题(topic) 名称由
xarm_states
更改为robot_states
;
$ roslaunch xarm_description lite6_rviz_display.launch
运行之后,机械臂的模型会出现在Rviz界面中,"joint state publisher" 面板可以用来调整手臂的位姿。
$ roslaunch xarm_gazebo lite6_beside_table.launch [add_gripper:=true] [add_vacuum_gripper:=true]
Gazebo启动后, 虚拟机械臂会放置在桌子边沿位置,add_gripper
和 add_vacuum_gripper
是另外的可选参数,可以根据需要给定true
来加载UFACTORY官方的夹爪或吸头的配件模型,注意只能加载一款末端执行器。
首先启动 UFACTORY ROS 驱动:
$ roslaunch xarm_bringup lite6_server.launch robot_ip:=192.168.1.xxx (your robot IP)
然后,请认真阅读和参考xarm_api/xarm_msgs 部分, 其中的概念、提供的服务和定义的消息类型都是和xarm一致的,除了默认的命名空间是 ufactory
而不是 xarm
。举例来说,对于非xArm系列如Lite6手臂,调用全部关节使能服务的方法为:
$ rosservice call /ufactory/motion_ctrl 8 1
所有xArm适用的服务(关节/笛卡尔运动, 速度模式运动, servo运动等等)以及 模式操作都可以使用在Lite 6 型号中, 调用方法很简单,将之前说明中的/xarm
命名空间替换为/ufactory
就好。
另一个值得注意的变化是xArm系列使用的话题 /xarm/xarm_states
被修改为 /ufactory/robot_states
(已带上默认命名空间)。
下图是来自rqt_graph
输出的网络结构示意图: