Skip to content

8. A new robot ​

Before the stack walks a robot on its own, check that the robot does what the stack tells it, and measure what the stack assumes about it. In an open area, one person at the handheld whose only job is to stop the robot.

8.1 Does the robot obey? ​

Stop the service (sudo systemctl stop x30-navigation) and start only the driver:

bash
eval "$(bash ~/x30_ws/src/x30_ros/tools/x30_host.sh env navigation)"
roslaunch x30_bringup bringup.launch
DoExpect
rostopic hz /x30/odomabout 50 Hz; /x30/state says connected: True. If not: network.toml (Section 4.6)
2rostopic echo -n 1 /x30/statercs_layout and motion_layout read natural
3rosservice call /x30/stand_upends in torque_standing; /x30/start_stepping in stepping
4rostopic pub -r 20 /x30/cmd_vel geometry_msgs/Twist '{linear: {x: 0.2}}'the robot walks forward, control_mode turns non_manual; stop the publisher: it stops within 0.5 s
5the same with {angular: {z: 0.3}}it turns left (counter-clockwise seen from above); else invert_wz: true
6the same with {linear: {y: 0.1}}it steps left; else invert_vy: true
7walking, switch to manual on Deep Robotics’ handheldthe robot follows that handheld; velocity reads takeover (manual mode) until it is handed back
8rostopic echo -n 1 /x30/batteryvoltage and current as Deep Robotics’ app shows them
9roslaunch x30_bringup bringup.launch rviz:=truethe legs in RViz follow the real ones

A robot that disagrees with step 5 or 6 gets its own copy of x30_driver/config/driver_params.yaml with the inversion, passed as params_file:=. The Tuning Guide explains every driver setting.

8.2 The robot profile ​

x30_bringup/config/robot.yaml is the X30 for every node: its footprint, its height, its limits and its frames. Three things are particular to each robot and are measured, not taken from the drawing:

  1. base_height: base_link (the body centre) above the floor while it stands. The scans measure their height band from the floor base_height below it; 0.48 m is the model’s.

  2. The LiDAR mount: rostopic echo -n 1 --noarr /livox/lidar/header gives the frame the robot’s driver publishes in. Set lidar_frame and lidar_pose so that a wall 1 m ahead shows at 1 m in rostopic echo -n 1 /perception/safety_scan.

  3. Braking: limits/max_decel, max_yaw_accel and reaction_time, worst case (floor, payload, low battery). The protective field is sized from them; the Tuning Guide shows how to measure them.

8.3 The first site and route ​

With the services running again (sudo systemctl start x30-navigation):

  1. Put the robot on its start spot (the dock), facing the same way every time: the start of the odometry is the site’s origin, and one degree off there is 1.7 cm per metre on every route.

  2. rostopic echo -n 1 /localization/status: LOCALIZED, source origin.

  3. Teach a short route with the H12 (User Manual): REMOTE, Record, walk, Point at a stop, Finish.

  4. Walk back to the start, pick the route in Routes, AUTO, Start. The robot repeats it and stops at the stop point.

  5. In NETRA the route appears under Routes, and the robot’s patrol state on the dashboard.

Then the acceptance tests (X30 Site Acceptance Test) before the robot patrols for real.