ros-tooling / cross_compile

A tool to build ROS and ROS2 workspaces for various targets
Apache License 2.0
188 stars 60 forks source link

ros2: command not found #43

Closed JoelinChee closed 4 years ago

JoelinChee commented 4 years ago

Hi everyone.

My OS is ubuntu 16.04.

I have successfully cross compile by using: colcon build --packages-up-to cross_compile

and I have successfully source the local_setup.sh by using: source install/local_setup.sh

However, when I Copy the QEMU Binaries and Copy the ROS2 packages, I have problems on

pibotvm@ubuntu:~$ ros2 run cross_compile cross_compile --arch aarch64 --os ubuntu --sysroot-path /home/pibotvm/sysroot/ ros2: command not found

May is there anything wrong?

JoelinChee commented 4 years ago

I have installed ros1.0 kinetic in my computer

deitry commented 4 years ago

You must have any ROS2 distrbution installed, like ros-dashing-desktop metapackage. And yet you have to do source /opt/ros/dashing/setup.sh before running any ros2 command.

piraka9011 commented 4 years ago

Ditto Deitry's comment.

If you want to run the cross-compilation script without using ROS, you can execute the script directly in cross_compile/ros2_cross_compile.py