Build the Scene From GUI
Build the pick-and-place scene of the Isaac Sim quickstart by hand: a table, the pieces, a UR10e with a Robotiq Hand-E, and the poses the robot moves through. Use it as a template for your own cell: the same steps work for other tables, pieces, robots and grippers.
Requirements
Install Isaac Sim, the Telekinesis extension and the matched SDK packages first, as described in Install Isaac Sim Extension. To skip the manual steps and generate the finished scene instead, use Build the Scene from Script.
Open a New Scene
- In Isaac Sim, select File ▸ New, then File ▸ Save As and save the scene.
- Right-click in the scene and select Create ▸ Physics ▸ Ground Plane.
Add the Table
Option A: Use an existing model
Use your own table model, or the following model:
- Download the table.
- Drag and drop it into the scene.
- Adjust its position and rotation.
- Right-click the table and select Add ▸ Physics ▸ Colliders Preset.
Option B: Build the table from a cube
If the model does not fit or you do not have one, use a cube as a table for quick prototyping:
- Right-click in the scene and select Create ▸ Mesh ▸ Cube.
- Adjust the cube's size and height to the dimensions of your table.
- Right-click the cube and select Add ▸ Physics ▸ Colliders Preset.
WARNING
The prim paths in your scene appear in the code at the end of this page. Note the final paths of the table and the robot.
Add the Pieces
Add the objects the robot picks.
Option A: Add a mesh as an object
- Use your own mesh, or download the example mesh and add it to the scene.
- Right-click the object and select Add ▸ Physics ▸ Rigid Body with Colliders Preset.
- To place the object easily, move it a little above the table and start the simulation, so that the object drops onto the table. Note the object's height, stop the simulation and set the object to that height.
Option B: Add a primitive as an object
- Right-click in the scene and select Create ▸ Mesh ▸ Cube.
- Adjust the cube's size.
- Right-click the cube and select Add ▸ Physics ▸ Rigid Body with Colliders Preset.
- To place the cube easily, move it a little above the table and start the simulation, so that the cube drops onto the table. Note the cube's height, stop the simulation and set the cube to that height.
Add the Robot
- Left-click robot_mount in the Stage tree. If you built the table from a cube, left-click the cube instead.
- Right-click and select Telekinesis Isaac Sim Bridge ▸ Add Robot.
- Select the manufacturer Universal Robots and the model UR10e.
- Adjust the placement. A ghost of the robot shows where it will stand. Edit Position (metres) and Rotation (XYZ Euler degrees), measured in the frame of the prim you selected, or use Auto-calculate Placement.
- Click Add.
Add the Gripper
- Left-click the robot you added.
- Right-click and select Telekinesis Isaac Sim Bridge ▸ Add Mesh, then select Couplers ▸ Robotiq Coupler.
- Left-click the robot again.
- Right-click and select Telekinesis Isaac Sim Bridge ▸ Add Tool, then select the tool Hand-E.
- Adjust its position with the viewport gizmo if needed.
Add a TCP
A TCP (tool center point) is the frame a pose describes. The robot has a default TCP (tool0 on a Universal Robots arm), and Add Tool adds a hidden tool_base TCP at the base of the tool. Add your own TCP for a point the gripper works at, such as the centre between the fingertips. This step is optional.
- Left-click the robot.
- Right-click and select Telekinesis Isaac Sim Bridge ▸ Add TCP.
- Enter a Name, and the Position (metres) and Rotation (XYZ Euler degrees) offset from the default TCP, or drag the gizmo shown in the viewport.
- Click Add.
Teach the Pick Poses
Start the server
- Activate the SDK environment and start the server. Keep this terminal open while you work in Isaac Sim.bash
telekinesis-isaacsim-server - In the Isaac Sim menu bar, select Telekinesis Isaac Sim Bridge ▸ Telekinesis Isaac Sim Server ▸ Connect.
Choose what to teach: TCP or tool
| Teach with | The pose is of | Use when |
|---|---|---|
| Add Pose ▸ From Tool | tool_base, the base of the tool | You want to place the gripper itself. Needs a tool added with Add Tool. |
| Add Pose ▸ From TCP | the TCP you pick: the default TCP or one you added | You know where a point of the robot must go. Type its position and rotation, or drag the gizmo. |
| Add Pose ▸ From Joint Positions | the default TCP | You want to set the joints directly, for example to copy a pose from the real robot or save a home position. |
Teach the first pose using tool placement
- Left-click the robot.
- Right-click and select Telekinesis Isaac Sim Bridge ▸ Add Pose ▸ From Tool. To teach a TCP you added, right-click that TCP instead.
- Move the pose with the viewport gizmo to the first piece, so that the gripper closes around it. The pose is blue when the robot can reach it and red when it cannot.
- Rename the pose
pick_pose. - For the other pieces, duplicate the pose, move each copy to its piece and name the copies
pick_pose_01,pick_pose_02, and so on, in the order the robot picks them.
Teach a pose using TCP placement
- Left-click the robot.
- Right-click and select Telekinesis Isaac Sim Bridge ▸ Add Pose ▸ From TCP.
- Select the TCP in the TCP list.
- Type the Position and Rotation, or drag the gizmo in the viewport. A line above Add says whether the robot reaches the pose.
- Click Add, then rename the pose as above.
Convert between tool pose and frame pose
From Tool makes a tool pose, shown as a ghost of the gripper. From TCP makes a TCP pose, shown as the TCP's red, green and blue arrows. To switch, left-click the pose, right-click and select Telekinesis Isaac Sim Bridge, then:
- Convert to TCP Pose asks which TCP the pose is of.
- Convert to Tool Pose makes a pose of the gripper's base.
The robot's joints for the pose stay the same; only the point of the robot the pose describes changes. With several poses selected, both entries convert all of them.
WARNING
You can teach poses with different TCPs. The script in Run the Code handles this for you. In your own code, add each TCP you added with Add TCP to the robot with add_tcp, and set the robot's active_tcp to the TCP of the pose before calling pick and place.
Teach the Intermediate Joint Positions
Teach the joint positions the robot passes through between a pick and a place, such as a position between the table and the place area. The script's home position is set in the code, as HOME_JOINTS.
- Left-click the robot.
- Right-click and select Telekinesis Isaac Sim Bridge ▸ Add Pose ▸ From Joint Positions.
- Move the sliders, or type values, until the robot is where you want it. Values are in degrees for revolute joints. The robot is drawn see-through while you edit.
- Click Add, and name the pose
intermediate_joint_positions.
The pose stores the joint positions and the default TCP's pose for them. The new pose is hidden in the viewport unless Pose Visible After Add is checked. The window needs the Telekinesis Isaac Sim Server to be connected.
Teach the Place Poses
Teach one place pose for each pick pose, the same way as a pick pose:
- Right-click the robot and select Add Pose ▸ From Tool.
- Move the pose to where the first piece goes.
- Name the pose
place_pose. - For the other pieces, duplicate the pose, move each copy to its place and name the copies
place_pose_01,place_pose_02, and so on, in the same order as the pick poses.
Run the Code
The script reads the poses you taught from Isaac Sim. It picks each piece at a pick_pose pose, passes through the intermediate joint positions and places the piece at the matching place_pose pose. Isaac Sim and the Telekinesis Isaac Sim Server must be running.
Pose names
The script finds the poses by name:
- Every pick pose starts with
pick_pose, and every place pose starts withplace_pose. - The piece picked at the n-th pick pose, in name order, is placed at the n-th place pose, so there must be as many place poses as pick poses.
- One pose,
intermediate_joint_positions, holds the intermediate joint positions. - At least one pick or place pose must be of the gripper's base: taught with From Tool on the robot, not on a TCP you added, or converted with Convert to Tool Pose. The script reads from it where the gripper sits on the robot.
Save this script as ur10e_hande_gui_scene_pick_place.py:
"""Pick objects in Isaac Sim at poses taught with Add Pose, passing through intermediate joint
positions taught with Add Pose > From Joint Positions, and place each at its own taught place
pose.
Build the scene and teach the poses as in the Build the Scene From GUI tutorial, with the UR10e
and its Hand-E gripper in the stage:
- Add Pose > From Tool or From TCP: pick_pose, pick_pose_01, pick_pose_02, ... on the objects,
in pick order, and place_pose, place_pose_01, place_pose_02, ... where they go, one per pick
pose. Each pose may place any TCP of the robot; at least one must place tool_base, the
gripper's base (From Tool on the robot, or Convert to Tool Pose), see add_taught_tcps.
- Add Pose > From Joint Positions: intermediate_joint_positions, the arm between the table
and the place area. The home position is HOME_JOINTS below.
With Isaac Sim and the Telekinesis Isaac Sim Server running, run from the folder that holds
this script:
python ur10e_hande_gui_scene_pick_place.py
The poses are read from the bridge: the pick and place poses as [x, y, z, rx, ry, rz] of the
TCP each places, in the robot's base frame (metres and extrinsic XYZ Euler degrees), and
intermediate_joint_positions as the joint positions it stores. The robot is given every TCP
the poses place, and each pick and place moves the TCP of its pose. The object picked at the
n-th pick pose, in name order, is placed at the n-th place pose.
"""
import math
import requests
from telekinesis.synapse.robots.manipulators import universal_robots
from telekinesis.synapse.tools.parallel_grippers import robotiq
from telekinesis.tf import tfutils
BRIDGE_URL = "http://127.0.0.1:8766"
ROBOT_PRIM_PATH = "/World/vention_table/robot_mount/UR10e_assembly/UR10e"
GRIPPER_PRIM_PATH = "/World/vention_table/robot_mount/UR10e_assembly/Hand_E"
PICK_POSE_PREFIX = "pick_pose"
PLACE_POSE_PREFIX = "place_pose"
INTERMEDIATE_POSE_NAME = "intermediate_joint_positions"
APPROACH_OFFSET_Z = 0.1 # m, pre-pick and pre-place distance above the poses
# Joint angles in degrees.
HOME_JOINTS = [-90, -90, 90, -90, -90, 0]
def get_isaacsim_poses() -> tuple[list[dict], list[dict], list[float]]:
"""Return the pick poses and the place poses, each in name order as listed by the bridge's
GET /teaching/poses, and the intermediate joint positions in degrees, as taught in Isaac
Sim."""
response = requests.get(
f"{BRIDGE_URL}/teaching/poses",
params={"robot_prim_path": ROBOT_PRIM_PATH},
timeout=30,
)
if not response.ok:
raise SystemExit(f"Listing the poses failed: {response.json()['detail']}")
poses = sorted(response.json(), key=lambda pose: pose["name"])
pick_poses = [pose for pose in poses if pose["name"].startswith(PICK_POSE_PREFIX)]
place_poses = [pose for pose in poses if pose["name"].startswith(PLACE_POSE_PREFIX)]
intermediate_poses = [pose for pose in poses if pose["name"] == INTERMEDIATE_POSE_NAME]
problems = []
if not pick_poses:
problems.append(
f"No pick pose: right-click the robot > Telekinesis Isaac Sim Bridge > Add Pose > "
f"From Tool, move the pose onto the first object and name it {PICK_POSE_PREFIX}."
)
if len(place_poses) != len(pick_poses):
problems.append(
f"{len(pick_poses)} pick poses but {len(place_poses)} place poses: every pick pose "
f"needs one place pose. Teach, rename or delete poses so the counts match; the n-th "
f"{PICK_POSE_PREFIX}* by name goes to the n-th {PLACE_POSE_PREFIX}*."
)
if len(intermediate_poses) != 1:
problems.append(
f"{len(intermediate_poses)} poses named {INTERMEDIATE_POSE_NAME}, exactly one is "
f"needed: right-click the robot > Telekinesis Isaac Sim Bridge > Add Pose > From "
f"Joint Positions, or set INTERMEDIATE_POSE_NAME to the name you gave it."
)
if problems:
used = pick_poses + place_poses + intermediate_poses
unused = [pose["name"] for pose in poses if pose not in used]
if unused:
problems.append(
f"These poses match no name the script looks for and are ignored: {unused}. "
f"Rename one to {PICK_POSE_PREFIX}_{len(pick_poses):02d} or "
f"{PLACE_POSE_PREFIX}_{len(place_poses):02d} if it is meant as the next pick or "
f"place pose."
)
raise SystemExit(
f"The poses of {ROBOT_PRIM_PATH} are not enough to run:\n"
f" pick poses ({PICK_POSE_PREFIX}*): {[pose['name'] for pose in pick_poses]}\n"
f" place poses ({PLACE_POSE_PREFIX}*): {[pose['name'] for pose in place_poses]}\n"
f" intermediate joint positions ({INTERMEDIATE_POSE_NAME}): "
f"{[pose['name'] for pose in intermediate_poses]}\n"
+ "".join(f"- {problem}\n" for problem in problems)
)
# Only the poses the script moves to must be reachable; other poses may be left over.
unreachable = [
pose["name"]
for pose in pick_poses + place_poses + intermediate_poses
if not pose["reachable"]
]
if unreachable:
raise SystemExit(
f"The robot cannot reach the poses {unreachable}; move them in Isaac Sim until it "
"does: select a pose to see whether the robot reaches it."
)
# The bridge stores radians; set_joint_positions takes degrees.
return (
pick_poses,
place_poses,
[math.degrees(position) for position in intermediate_poses[0]["joint_positions"]],
)
def get_tcp_in_tool0(robot: universal_robots.UniversalRobotsUR10E, pose: dict) -> list[float]:
"""Return the TCP a taught pose places in tool0, [x, y, z, rx, ry, rz] in metres and
extrinsic XYZ Euler degrees, as it stood in Isaac Sim when the pose was solved.
The pose is the TCP in the robot's base frame, and forward kinematics at the pose's stored
joints gives tool0 in the same frame, so tool0^-1 * pose is the TCP in tool0.
Args:
robot: The robot the pose was taught for.
pose: A reachable pose from GET /teaching/poses.
"""
joints = [math.degrees(position) for position in pose["joint_positions"]]
base_T_tool0 = tfutils.pose_to_transformation_matrix(
robot.forward_kinematics(joints, robot.default_tcp), "deg"
)
base_T_tcp = tfutils.pose_to_transformation_matrix(pose["pose"], "deg")
tool0_T_tcp = tfutils.invert_transformation_matrix(base_T_tool0) @ base_T_tcp
return [float(value) for value in tfutils.transformation_matrix_to_pose(tool0_T_tcp, "deg")]
def add_taught_tcps(
robot: universal_robots.UniversalRobotsUR10E, gripper: robotiq.RobotiqHandE, poses: list[dict]
) -> None:
"""Attach the gripper and add every other TCP the poses place to the robot, each where it
stood in Isaac Sim, so each pose moves its own TCP.
tool_base, the gripper's base, is the offset attach_tool needs. A physics joint needs a
rigid body on both sides, and tool0, like the flange, is an empty frame with none: Isaac Sim
cannot fix the gripper to it, so Add Tool fixes the gripper to the robot's last link
(wrist_3_link) wherever it was placed, on the coupler here. Where the gripper sits in tool0
is kept in the stage as the hidden tool_base TCP Add Tool places, which the bridge lists no
route for, so it is worked out from a pose of tool_base instead.
TCPs added with Add TCP are fixed to tool0 and are added with add_tcp. The default TCP needs
nothing.
Raises:
SystemExit: If no pose places tool_base.
"""
tcp_offsets = {}
for pose in poses:
# A pose taught before poses stored their TCP places the default TCP.
tcp_name = pose["tcp"] or robot.default_tcp
if tcp_name != robot.default_tcp and tcp_name not in tcp_offsets:
tcp_offsets[tcp_name] = get_tcp_in_tool0(robot, pose)
if robot.tool_base_tcp_name not in tcp_offsets:
raise SystemExit(
f"No pose places {robot.tool_base_tcp_name}, so where the gripper sits is unknown; "
"teach one with Add Pose > From Tool, or right-click one > Convert to Tool Pose."
)
robot.attach_tool(gripper, transform=tcp_offsets.pop(robot.tool_base_tcp_name))
for tcp_name, tcp_in_tool0 in tcp_offsets.items():
robot.add_tcp(tcp_name, tcp_in_tool0, set_active=False)
def main() -> None:
"""Get the poses, then pick each object and place it at its place pose."""
pick_poses, place_poses, intermediate_joints = get_isaacsim_poses()
robot = universal_robots.UniversalRobotsUR10E(name="ur10e")
gripper = robotiq.RobotiqHandE()
robot.connect(simulation_prim_path=ROBOT_PRIM_PATH)
gripper.connect(simulation_prim_path=GRIPPER_PRIM_PATH)
add_taught_tcps(robot, gripper, pick_poses + place_poses)
try:
for index, (pick_pose, place_pose) in enumerate(zip(pick_poses, place_poses)):
print(f"Object {index + 1}: picking")
robot.set_joint_positions(HOME_JOINTS)
robot.active_tcp = pick_pose["tcp"] or robot.default_tcp
robot.pick(pick_pose["pose"], APPROACH_OFFSET_Z)
print(f"Object {index + 1}: placing")
robot.set_joint_positions(intermediate_joints)
robot.active_tcp = place_pose["tcp"] or robot.default_tcp
robot.place(place_pose["pose"], APPROACH_OFFSET_Z)
robot.set_joint_positions(HOME_JOINTS)
finally:
gripper.disconnect()
robot.disconnect()
robot.shutdown()
if __name__ == "__main__":
main()Run it in the SDK environment:
python ur10e_hande_gui_scene_pick_place.pyWARNING
The prim paths in the script must match the Stage tree. If you named a prim differently, update ROBOT_PRIM_PATH and GRIPPER_PRIM_PATH.