Really hate to say this, but I could not replicate this on my end despite running in a clean VM and fresh clone/docker image. I would've guessed based on that log your ROS install was not built correctly, however you are using our dockerfile which as far as I can tell works.
So I need a few more info, which branch of chrono are you attempting this from, please try master if that is not what you used. Are you using a pre-built docker image we published to docker hub or you built from scratch(I assumed you built from scratch, if using pre-built, which tag?).
Did you modify custom_handler.cpp or did it fail as-provided?(if modified and you don't mind please share)
My full step to attempt to replicate(I copied this directly from my bash history):
only step missing here is i changed in chrono/contrib/docker/snippets/chrono.dockerfile in line 5, ARG CHRONO_BRANCH="main"
OS:Ubuntu 22.04, QEMU
```
729 docker compose build dev
730 docker compose up dev -d
731 sudo docker ps
732 sudo docker exec -it 546 /bin/bash
in container:
chrono@chrono:~/chrono/template_project_ros/build$ history
1 ls
2 cd ..
3 cd chrono
4 ls
5 cd template_project_ros/
6 ls
7 mkdir build
8 cd build/
9 cmake .. -DChrono_DIR=/home/chrono/chrono/build/cmake/ -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS_RELEASE="-O3"
10 make -j20
11 ls
12 ./custom_handler
13 history
```
Best,
Patrick