simulated

Configure a simulated arm to test motion code without any physical hardware. Like the fake arm, it emulates the kinematics of a real arm model. Unlike the fake arm, which jumps to each new position, a simulated arm moves through a planned trajectory over time, limited by its speed and acceleration, so you can watch it move in the 3D scene tab and test code that waits for a move to finish or calls Stop partway through one.

The simulated arm doesn’t simulate physics, objects, or cameras. It only reports the joint positions a real arm would pass through.

It also isn’t the arm that the MuJoCo and Isaac Sim simulation modules use. Those modules provide their own arm models, viam-labs:mujoco-sim:arm and viam-labs:isaac-sim:arm, which run inside the simulator’s physics loop alongside simulated objects and cameras. The built-in simulated arm has no connection to a simulator: if you add one to a machine that runs MuJoCo or Isaac Sim, it moves only in the 3D scene tab and never appears in the simulator’s scene or camera images.

Choose a test arm by what you need to test:

  • fake: code that only needs an arm to accept commands and report positions. It jumps straight to each new position.
  • simulated: code that depends on how long a move takes, such as waiting for a move to finish or calling Stop partway through one, without setting up a simulator.
  • A MuJoCo or Isaac Sim arm: code that needs the arm to interact with objects, grippers, or cameras in a physics simulation.
{
  "name": "<arm_name>",
  "model": "simulated",
  "api": "rdk:component:arm",
  "attributes": {
    "arm-model": "<your_arm_model>",
    "simulate-time": true
  },
  "depends_on": []
}
{
  "name": "my-simulated-arm",
  "model": "simulated",
  "api": "rdk:component:arm",
  "attributes": {
    "arm-model": "ur5e",
    "simulate-time": true,
    "speed": 0.5
  },
  "depends_on": []
}

The following attributes are available for simulated arms:

NameTypeRequired?Description
arm-modelstringRequired unless you set model-pathModel name of the robotic arm model you want your simulated arm to act as. One of ur5e, ur7e, ur20, xarm6, xarm7, lite6, or dofbot, or fake for the built-in fake kinematics model: a single joint that rotates about the z-axis, with its end 500 mm along the x-axis and 300 mm above the arm’s origin. Can’t be combined with model-path.
model-pathstringRequired unless you set arm-modelThe path to the kinematic configuration file of the arm you want your simulated arm to act as. This path should point to the exact location where the file is located on your computer running viam-server. Can’t be combined with arm-model.
simulate-timebooleanOptionalWhether the arm advances its position in real time. Set this to true: when it is false, the arm never moves, and move commands block until they’re canceled. Default: false.
speedfloatOptionalMaximum speed of each joint, in radians per second. The same limit applies to every joint. Default: 1.0.
accelerationfloatOptionalMaximum acceleration of each joint, in radians per second squared. The same limit applies to every joint. Default: 10 times speed, so each joint reaches full speed in about 0.1 seconds.
path-tolerancefloatOptionalHow far, in radians, a move through several joint positions can deviate from each intermediate position to round the corner without stopping. Default: 0, which makes the arm pass through every intermediate position exactly, slowing to a stop at each one.

A simulated arm moves at its configured speed and acceleration and ignores per-move speed or timing options. It doesn’t support manual mode.

Test the arm

Once your arm is configured and connected, open the arm’s TEST panel on the CONFIGURE or CONTROL tabs.

Use the buttons to move the end position or the joints and check whether it moves as expected.

Arm test panel.

If the arm does not appear on the TEST panel, or if you notice unexpected behavior, check your machine’s LOGS tab for errors, and review the configuration.