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:
eval "$(bash ~/x30_ws/src/x30_ros/tools/x30_host.sh env navigation)"
roslaunch x30_bringup bringup.launch| Do | Expect | |
|---|---|---|
rostopic hz /x30/odom | about 50 Hz; /x30/state says connected: True. If not: network.toml (Section 4.6) | |
| 2 | rostopic echo -n 1 /x30/state | rcs_layout and motion_layout read natural |
| 3 | rosservice call /x30/stand_up | ends in torque_standing; /x30/start_stepping in stepping |
| 4 | rostopic 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 |
| 5 | the same with {angular: {z: 0.3}} | it turns left (counter-clockwise seen from above); else invert_wz: true |
| 6 | the same with {linear: {y: 0.1}} | it steps left; else invert_vy: true |
| 7 | walking, switch to manual on Deep Robotics’ handheld | the robot follows that handheld; velocity reads takeover (manual mode) until it is handed back |
| 8 | rostopic echo -n 1 /x30/battery | voltage and current as Deep Robotics’ app shows them |
| 9 | roslaunch x30_bringup bringup.launch rviz:=true | the 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:
base_height:base_link(the body centre) above the floor while it stands. The scans measure their height band from the floorbase_heightbelow it; 0.48 m is the model’s.The LiDAR mount:
rostopic echo -n 1 --noarr /livox/lidar/headergives the frame the robot’s driver publishes in. Setlidar_frameandlidar_poseso that a wall 1 m ahead shows at 1 m inrostopic echo -n 1 /perception/safety_scan.Braking:
limits/max_decel,max_yaw_accelandreaction_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):
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.
rostopic echo -n 1 /localization/status:LOCALIZED, sourceorigin.Teach a short route with the H12 (User Manual): REMOTE, Record, walk, Point at a stop, Finish.
Walk back to the start, pick the route in Routes, AUTO, Start. The robot repeats it and stops at the stop point.
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.