Cross-Compile ROS2 Foxy - Cyberbotics

asked 2021-07-23 21:33:37 -0500

GuyWitTheFace gravatar image

I am trying to cross-compile ROS2 Foxy for the Raspberry Pi Zero W using the instructions found on the cyberbotics repo. https://github.com/cyberbotics/epuck_ros2/tree/master/installation/cross_compile

I am able to compile ros2topic and run the command after installing it as directed in the instructions, but I am not a not able use other ros2 commands i.e. service, launch, run. I tried compiling ros2service as a test using the command found here: https://answers.ros.org/question/382582/what-is-the-correct-way-of-installing-ros2-foxy-on-a-raspberry-pi-zero/#382586 This is the output when I run ros2 on the Raspberry Pi Zero:

pi@raspberrypi:~ $ ros2
Failed to load entry point 'test': No module named 'lark'
Failed to load entry point 'launch': No module named 'lark'
usage: ros2 [-h] Call ros2 <command> -h for more detailed usage. ...

ros2 is an extensible command-line tool for ROS 2.

optional arguments: -h, --help show this help message and exit

Commands:
daemon Various daemon related sub-commands
pkg Various package related sub-commands
topic Various topic related sub-commands

Call ros2 <command> -h for more detailed usage.

I would like have as much functionality on the Raspberry Pi Zero ros2 install as possible, but trying to build everything using cross-colcon-build lead to a seperate set of issues.

I would appreciate any help I can get and can provide clarification on any steps I have taken up to this point.

Thank you

edit retag flag offensive close merge delete

Comments

Simply install dependencies you are missing pip3 install lark. Installing all packages would lead to many failures as it is hard to satisfy dependencies of tools such as RViz2, rqt, and similar. Alternatively, you can use the rosinstall_generator to generate dependencies of ros-base and then compile everything.

lukicdarkoo gravatar image lukicdarkoo  ( 2021-07-27 15:48:15 -0500 )edit

I will try using rosinstall_generator then.

Thank you

GuyWitTheFace gravatar image GuyWitTheFace  ( 2021-07-29 06:45:00 -0500 )edit