mirror of
https://github.com/dptech-corp/Uni-Lab-OS.git
synced 2025-12-17 13:01:12 +00:00
unilab添加moveit启动
1,整合所有moveit节点到一个move_group中,并整合所有的controller依次激活 2,添加pymoveit2的节点,使用json可直接启动 3,修改机械臂规划方式,添加约束,让冗余关节不会进行过多移动
This commit is contained in:
@@ -124,6 +124,8 @@ class ResourceMeshManager(BaseROS2DeviceNode):
|
||||
"""检查move_group节点是否已初始化完成"""
|
||||
|
||||
# 获取当前可用的节点列表
|
||||
if len(self.resource_tf_dict) == 0:
|
||||
return
|
||||
tf_ready = self.tf_buffer.can_transform("world", next(iter(self.resource_tf_dict.keys())), rclpy.time.Time(),rclpy.duration.Duration(seconds=2))
|
||||
|
||||
# if tf_ready:
|
||||
@@ -397,7 +399,8 @@ class ResourceMeshManager(BaseROS2DeviceNode):
|
||||
transform = self.tf_buffer.lookup_transform(
|
||||
parent_id,
|
||||
resource_id,
|
||||
rclpy.time.Time(seconds=0)
|
||||
self.get_clock().now(),
|
||||
timeout=rclpy.duration.Duration(seconds=10)
|
||||
)
|
||||
|
||||
# 提取转换中的位置和旋转信息
|
||||
|
||||
Reference in New Issue
Block a user