# Commanding velocity to the arm and lift

**URL:** <https://forum.hello-robot.com/t/commanding-velocity-to-the-arm-and-lift/386>\
**Category:** Knowledge Base\
**Created:** [March 4, 2022, 5:02am UTC](https://forum.hello-robot.com/t/commanding-velocity-to-the-arm-and-lift/386 "2022-03-04T05:02:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![bshah](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/bshah/32/55_2.png) [@bshah](https://forum.hello-robot.com/u/bshah)\
**Post date:** [March 4, 2022, 8:32am UTC](https://forum.hello-robot.com/t/commanding-velocity-to-the-arm-and-lift/386/2 "2022-03-04T08:32:08Z")

</div>

Hi @sguysc, welcome to the forum! Yes, you can send velocity commands to the [arm](https://github.com/hello-robot/stretch_body/blob/master/body/stretch_body/arm.py#L121-L152) and [lift](https://github.com/hello-robot/stretch_body/blob/master/body/stretch_body/lift.py#L122-L154) joints using the `set_velocity()` API in Stretch Body. Here’s an example script of what using this API would look like:

```python
import stretch_body.robot

r = stretch_body.robot.Robot()
r.startup()
assert(r.is_calibrated()) # the robot must be homed

# move the arm out at 0.05 m/s
r.arm.set_velocity(0.05)
r.push_command()

[...]

# some time later, move the lift up at 0.05 m/s
r.lift.set_velocity(0.05)
r.push_command()

```

Let me know if you have any questions.

---

_[View the full topic](https://forum.hello-robot.com/t/commanding-velocity-to-the-arm-and-lift/386)._
