Running the Robot Controller
You will need to run the controller code on the robot so that our policy can communicate with the robot, get the observations, and execute the actions. This step walks you through that.
Code to start the camera stream publisher and robot controller. The code is useful for Record3d-based camera streaming, but can be adapted for other use cases.
Getting Started
Clone repository onto your Hello Robot Stretch:
git clone https://github.com/notmahi/dobb-e.git cd dobb-e/robot-serverInstall required packages on your root pip env (where
hello_robotpackage is installed):pip install -r requirements.txt
Running
If you just turned on the robot, perform joint calibration on your Stretch by running the following in terminal:
stretch_robot_home.pythis only needs to be run once every time the robot is booted up.
In a separate terminal window, Run
roscoreon your Stretch within the conda/mamba environmenthome_roboton your Stretchmamba activate home_robot roscoreChange current working directory to this repository’s root folder (
cd ../robot-server).Run in terminal (not within the
condaenvironment, but in the root pip environment):python3 start_server.py
Last updated