Open mohammedrafi-sk opened 2 years ago
No, you are mixing things up.
krs_ws is the workspace in your workstation to build KRS. ros2_ws is the resulting cross-compiled install directory that you need to scp into the embedded board.
It’s explained as such in the documentation. Refer to it.
In the double_vadd it mentiones we can scp the content to board. But in the vadd-publisher, it says the content is already copied to sd_card.img.
$ . /ros2_ws/local_setup.bash # source the ROS 2 overlay workspace we just
# created. Note it has been copied to the SD
# card image while being created.
But there is no ros2_ws, but instead, i found krs_ws in root folder
But in the vadd-publisher, it says the content is already copied to sd_card.img.
Correct, the following line does it:
colcon acceleration linux vanilla --install-dir install-kv260
Which can be traced back to:
I recall having enforced the naming ros2_ws
somewhere but don't quite find it right now. @mohammedrafi-sk can you check if you got a /install-kv260
instead in your embedded device? If so, that's the actual confusion and it'd need to be fixed in the documentation (and a PR would be more than welcome!).
Renaming or scp-ing the folder will do for you.
No, I don't see any /install-kv260
folder on the board.
Here is the content on the root folder https://github.com/Xilinx/KRS/issues/50#issue-1174243382
No, I don't see any /install-kv260 folder on the board.
@mohammedrafi-sk, see the documentation please. And follow that. Particularly:
You can do this in various ways (physically mounting the raw image in the SD card, scp-ing the ROS 2 workspace, etc.).
As pointed out above, depending on how you create your SD card raw image the cross-compiled workspace might (or might not) be copied for you but regardless, you can just drop it yourself in embedded. It's a simple ROS 2 overlay workspace. Source it and make use of its content.
Okay, After copying the content with scp , I am able to run the publisher. Thanks
While trying the vadd_publisher example onboard, the step to source the ROS 2 overlay workspace
. /ros2_ws/local_setup.bash,
is failing as there is no ros2_ws folder in/
I believe
. /krs_ws/local_setup.bash
is the corrent one