File size: 5,001 Bytes
681635a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
# rSkill manifest — moveit: plan an arm or a camera with MoveIt, on any robot we ship.
#
# One MoveIt rSkill for every robot and every goal kind. The reasoner says what it wants in
# the robot's own terms; `ros_integration.goal_builder: moveit` lowers it per robot
# (`openral_rskill.moveit_goal`) onto the joint / pose / look-at adapters over the shared
# `ROSActionRskill` MoveGroup engine, in a planning group of the robot's MoveIt model,
# which the deploy launch generates from its manifest (`openral_core.moveit_config`) and
# serves (`move_group`, OMPL: hence `pipeline_id: ompl`, never cuMotion) on every deploy of
# a robot listed below, in station mode with a home pose, or with this skill as the
# approach (any other deploy needs a `/move_action` server on the same model). Groups:
# `openral_home` for the home pose, one group per end effector (named after it), one per
# camera a joint chain moves (named after the sensor). It replaces rskill-moveit-joints,
# -eef-pose and -look-at, which each hard-coded the Franka's group and joints.
#
# Collision posture: move_group plans against self-collision (the kernel's own geometry and
# exemptions) and the kernel's world voxels (`moveit_scene_node`). `plan_only: true`: the
# runner replays every waypoint through /openral/candidate_action, where the safety kernel
# checks it. `chunk_size: 1` so the supervisor sees every waypoint.

schema_version: "0.1"
name: "OpenRAL/rskill-moveit-multi-motion"
version: "0.1.0"
license: "apache-2.0"
role: "s1"
kind: "ros_action"

# Every robot whose MoveIt model generates from its manifest and plans (tests/unit/
# test_moveit_config.py, tests/integration/test_moveit_all_robots.py). An actuating skill
# may not use the "any" wildcard, so the list is explicit; a robot joins it by passing.
embodiment_tags:
  - "aloha_agilex"
  - "droid_franka_robotiq"
  - "franka_panda"
  - "g1"
  - "makermods_metal"
  - "makermods_metal_station"
  - "openamrobot_v2"
  - "openarm_v2"
  - "panda_mobile"
  - "r1pro"
  - "rizon4"
  - "rizon_dual"
  - "so100_follower"
  - "so101_follower"
  - "ur10e"
  - "ur5e"

actuators_required:
  - kind: "joint_position"
    control_mode_semantics:
      mode: "absolute"

chunk_size: 1

# Planning is slow on the first call (0.5-2 s on a clean scene); later step() calls dequeue
# cached waypoints.
latency_budget:
  per_chunk_ms: 2000.0

description: >
  Move an arm or camera with MoveIt, collision-free. target: "named_pose" (e.g. "home",
  the robot's declared pose), "pose" (an end effector's tip to a position/orientation),
  "look_at" (aim `camera` at a point, or a direction like [1, 0, -0.5]), or "joints".
  Name the end effector with `arm` when the robot has several.
actions:
  - "reach"
  - "look"
objects: []
scenes: []

paper_url: "https://moveit.picknik.ai/"

ros_integration:
  package: "moveit_msgs"
  interface_type: "MoveGroup"
  interface_name: "/move_action"
  result_trajectory_field: "planned_trajectory.joint_trajectory"
  goal_builder: "moveit"
  default_goal_json: |
    {
      "request": {
        "pipeline_id": "ompl",
        "num_planning_attempts": 5,
        "allowed_planning_time": 5.0,
        "max_velocity_scaling_factor": 0.3,
        "max_acceleration_scaling_factor": 0.3,
        "goal_constraints": []
      },
      "planning_options": {
        "plan_only": true,
        "replan": false
      }
    }
  ros_dependencies:
    - "ros-${ROS_DISTRO}-moveit"

goal_params_schema:
  type: object
  description: >
    What to move and where, in this robot's own names (end effectors and cameras as the
    robot lists them). Positions in metres, angles in radians; frame_id defaults to the
    robot's base frame.
  properties:
    target:
      type: string
      enum: ["named_pose", "pose", "look_at", "joints"]
    named_pose:
      type: string
      description: "A pose the robot declares, e.g. \"home\"."
    arm:
      type: string
      description: "The end effector to move (required when the robot has several)."
    pose:
      type: object
      properties:
        position:
          type: array
          items: {type: number}
          minItems: 3
          maxItems: 3
        orientation_rpy:
          type: array
          items: {type: number}
          minItems: 3
          maxItems: 3
        frame_id:
          type: string
      required: ["position"]
    camera:
      type: string
      description: "The camera to aim, for look_at."
    look_at:
      type: object
      description: "Give target_xyz (a point) or direction (a vector from the camera)."
      properties:
        target_xyz:
          type: array
          items: {type: number}
          minItems: 3
          maxItems: 3
        direction:
          type: array
          items: {type: number}
          minItems: 3
          maxItems: 3
        frame_id:
          type: string
    joints:
      type: object
      description: "Joint name -> target (rad or m)."
      additionalProperties: {type: number}
  required: ["target"]