Troubleshooting
Search this page for the text of your error (Ctrl-F). If it isn’t here, see Asking for help.
Command not found
Section titled “Command not found”pixi: command not found
Section titled “pixi: command not found”pixi isn’t on your PATH. Run this, then open a new terminal:
echo 'export PATH="$HOME/.pixi/bin:$PATH"' >> ~/.bashrcros2: command not found
Section titled “ros2: command not found”You are in a plain terminal. ros2 only exists inside the pixi environment:
cd ~/avbotz/thalassicpixi shellPackage 'sub_bringup' not found
Section titled “Package 'sub_bringup' not found”Package 'sub_bringup' not found: "package 'sub_bringup' not found, searching: [...]"The workspace isn’t built: run pixi run build. If you have just built it inside a pixi shell, exit that shell and open it again.
Building
Section titled “Building”The build fails
Section titled “The build fails”- Read the first error, not the last. Scroll up to the first line containing
error:; later errors are often caused by it. Ignore warnings. - Did you just pull? Run the update steps. This fixes most build failures after a pull.
- Is a package in a submodule failing, or a folder empty? Run
git submodule update --init --recursive. - Is the error in a file you didn’t change? Try a clean build:
pixi run clean, thenpixi run build. - Did it run out of memory? If the build dies with
Killed, or your computer freezes, build with fewer jobs at once:pixi run build --parallel-workers 1. - Did you run out of disk space? Check with
df -h ~.
The whole log for one package is in log/latest_build/<package>/stdout_stderr.log.
My change to the code had no effect
Section titled “My change to the code had no effect”Check whether it needed a rebuild. C++ always does.
Running pixi run up
Section titled “Running pixi run up”Launch arguments are rejected
Section titled “Launch arguments are rejected”task 'up' received more arguments than expectedfile 'seed:=42_launch.py' was not foundYou left out the --. Launch arguments have to come after it:
pixi run up -- seed:=42The window doesn’t open, or it crashes straight away
Section titled “The window doesn’t open, or it crashes straight away”The simulator’s window needs OpenGL 4.3. Check what your computer has:
sudo apt install mesa-utilsglxinfo -B | grep "core profile version"If that’s below 4.3, or you are in a virtual machine, run with no window. Everything but the cameras still works:
pixi run up -- headless:=trueSimulation cannot keep up with real time!
Section titled “Simulation cannot keep up with real time!”A few at startup are normal. If they keep coming, your computer is overloaded: close other programs and lower the simulator’s load:
pixi run up -- rendering_quality:=low window_width:=800 window_height:=450Or, if you don’t need the cameras, use headless:=true.
Messages that look like errors but aren’t
Section titled “Messages that look like errors but aren’t”These appear on normal runs:
| Message | What it is |
|---|---|
Sub is killed, waiting... |
The mission waiting for the kill switch to release. This takes about 6 seconds |
Texture has 1 channels while expected 3 channels! |
Harmless |
No timestamp set for diagnostic message |
Harmless |
dropped a frame, while shutting down |
Harmless |
process has died [... exit code -6 ...], while shutting down |
The simulator doesn’t exit tidily |
A run hangs or acts strangely after an earlier one
Section titled “A run hangs or acts strangely after an earlier one”The earlier run may not have shut down fully. Clear it:
pixi run resetIf the simulator is still going after that, pkill -f stonefish_simulator stops it.
The robot doesn’t move
Section titled “The robot doesn’t move”Work through these in order, in a pixi shell:
- Is it armed? Run
ros2 topic echo --once /marlin_v3/control/armed. Iffalse, the kill switch is engaged or a sensor is missing;sub_control’s messages in the terminal say what it’s waiting for. Arming takes about 12 seconds after startup. - Was your command accepted? Run
ros2 topic echo --once --field command_rejected /marlin_v3/control/error. If it’strue, the terminal running the simulator says why. - Is the topic right? It needs the
/marlin_v3/at the start. Compare withros2 topic list. - Is the mode right? A
modeof0means “leave this axis alone”, whatever the target says. See Send your first command.
Waiting for at least 1 matching subscription(s)... that never ends
Section titled “Waiting for at least 1 matching subscription(s)... that never ends”Once or twice is normal. If it goes on, nothing is listening on that topic: either the simulator isn’t running, or the topic name is wrong.
Nodes can’t see each other
Section titled “Nodes can’t see each other”ros2 topic list only shows /parameter_events and /rosout
Section titled “ros2 topic list only shows /parameter_events and /rosout”Your terminal can’t see the stack. Check these:
- Is the stack running, and has it finished starting?
- Did you use
pixi shellin this terminal, from thethalassicfolder? - Do both terminals have the same
ROS_DOMAIN_IDandROS_AUTOMATIC_DISCOVERY_RANGE? Check withenv | grep ROS.
If that all looks fine, run ros2 daemon stop and try again. If it still fails, stop the stack, then run pixi run reset.
An error mentioning rmw_create_node, or nodes that stop finding each other after a crash
Section titled “An error mentioning rmw_create_node, or nodes that stop finding each other after a crash”A crash left stale files behind. Run pixi run reset.
Missions
Section titled “Missions”Failed to load mission ...: a port with name [...] is found in the XML
Section titled “Failed to load mission ...: a port with name [...] is found in the XML”The step has no setting by that name, probably a typo; the message gives the step and the line. Check it against the list of steps.
Mission file '...' does not exist. Available missions:
Section titled “Mission file '...' does not exist. Available missions:”Check the spelling. A name is looked up in the installed missions. For a file of your own, give the full path, with $HOME rather than ~, which doesn’t work in this position: mission:=$HOME/avbotz/playground/my_mission.xml. If you have just added a file to resources/missions/, build sub_mission so it can be found.
MoveRelative timed out
Section titled “MoveRelative timed out”The move didn’t finish in time: the target is too far to reach before the timeout, or the robot is stuck on a prop. error xyz says how far it still had to go, and the simulator’s window shows where it is.
For example, prelim times out on its way back from the default dock (course:=D), about 2.3 m short of its target, but it finishes from course:=A.
A mission gets stuck looking for the gate
Section titled “A mission gets stuck looking for the gate”This is expected in the simulator: the gate model doesn’t detect much there. To test mission logic, use a hard_coded_* mission.
Vision
Section titled “Vision”vision/detections is always empty
Section titled “vision/detections is always empty”- Is a model loaded? Nothing is detected until one is: see Each task has its own network.
- Are you using
headless:=true? That has no cameras. - Is it the simulator? Real-world models don’t do well on simulated images.
A model can’t be found
Section titled “A model can’t be found”Download the models with pixi run fetch-weights.
Foxglove
Section titled “Foxglove”It won’t connect
Section titled “It won’t connect”- Is the stack running?
foxglove_bridgestarts along with it. - Is the address exactly
ws://localhost:8765? - Is it an old run that has hung? Run
pixi run reset, then start it again.
The panels are missing, or it says it can’t find them
Section titled “The panels are missing, or it says it can’t find them”Install the extensions, then restart Foxglove.
The keyboard doesn’t drive the robot
Section titled “The keyboard doesn’t drive the robot”Click the 6-DOF Teleop panel first: it only listens while it has focus. Its status line says if the robot is killed or not armed.
My commit was rejected by a hook
Section titled “My commit was rejected by a hook”A formatting check failed. Format, then commit again:
pixi run formatgit add -ugit commitpixi run errors when committing, about a missing environment
Section titled “pixi run errors when committing, about a missing environment”The hooks need the environment to exist. Run pixi install.
Permission denied (publickey), or an error about authentication when pushing
Section titled “Permission denied (publickey), or an error about authentication when pushing”Your SSH key isn’t set up, or you cloned with an https:// address. See Before you start.
Permission denied, and your key is fine
Section titled “Permission denied, and your key is fine”You may not be in the avbotz GitHub organization yet. Ask a lead to add you.
Asking for help
Section titled “Asking for help”If you have been stuck for about 30 minutes, ask. Include:
- What you were trying to do.
- The exact command you ran.
- The exact error, as text. Paste it, not a photo of the screen, with the lines before it.
- What you already tried.
I'm trying to run my mission from the first-mission tutorial.I ran: pixi run up -- mission:=~/avbotz/playground/my_first_mission.xmlI get: [mission-4] [ERROR] ... Mission file '...' does not exist.I've checked that the file is there with ls.When you solve something that isn’t on this page, add it here.