ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Best way to programm on Ubuntu Server / ROS2 Foxy / RPi4

asked 2021-07-19 15:40:15 -0600

Vaneltin gravatar image

updated 2021-07-19 15:41:18 -0600

Hello,

I'm a noob to develop on a Raspberry Pi with ROS2. Is there a way to develop on raspberry remotly from another PC? I saw Visual Studio Code. I have a Raspberry Pi 4 with Ubuntu server and ROS 2 installed. So there is no desktop installed on it.

Best regards,

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2021-07-20 04:33:26 -0600

GuillaumeB gravatar image

updated 2021-07-20 04:37:01 -0600

In your case, I see 3 possibilities:

  1. Simply develop on your PC and compile on it to run tests, for example. And then synchronize the sources (with git, for example) to your Raspberry Pi and rebuild locally. This is not the best workflow, but this is very easy to start with.
  2. You could cross-compile on your PC for your Raspberry Pi (your target). This is a little more complicated, but should be the more efficient. You could use https://github.com/ros-tooling/cross_... that is the best solution to me. And the repository have a nice "Usage" section that describe how to use it. Cross-compiling is basically: compile code for another target (than the one you are developing on). Once you compiled for your Raspberry Pi, you send the binaries to your Raspberry Pi (rsync is a good option).
  3. You could also develop on the remote Raspberry Pi. Some IDEs have a remote developing capability. For example, Visual Studio Code (it's free and also has some ROS plugins) allows you to develop on a remote machine through ssh, https://code.visualstudio.com/docs/re... . This should be easy to setup but in this case you need to be connected all the time to your Raspberry.

I hope it helps

edit flag offensive delete link more

Comments

Thanks ! I think I'm going to use last solution. It seems to be easier to setup than the 2nd solution.

Vaneltin gravatar image Vaneltin  ( 2021-07-21 07:11:55 -0600 )edit
0

answered 2021-07-20 05:23:32 -0600

capitankl gravatar image

Hi! I have the same, but a Rpi 3. I am connecting to it through SHH through wifi using mobaxterm https://mobaxterm.mobatek.net/ it allows also seeing graphic applications like rqt graph. I would recommend it if you want to start quick. You can either develop with a basic text editor the program has or something from your computer and then uploading the files to the Rpi. Good luck - warning i am also quite noob:)

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2021-07-19 15:40:15 -0600

Seen: 275 times

Last updated: Jul 20 '21