micro-ros実行時の「error: 'CLOCK_MONOTONIC' undeclared」
ros2 run micro_ros_setup create_firmware_ws.sh nuttx nucleo-l476rg
ros2 run micro_ros_setup configure_firmware.sh my_nsh
ros2 run micro_ros_setup build_firmware.sh
をやるとエラーがでる
firmware/mcu_ws/uros/rcutils/src/time_unix.c:94:17: error: 'CLOCK_MONOTONIC' undeclared (first use in this function)
94 | clock_gettime(CLOCK_MONOTONIC, ×pec_now);
| ^~~~~~~~~~~~~~~
↓を設定したらやったら解決したよ
CONFIG_CLOCK_MONOTONIC=y