All rapyuta.io docs are open source. See something that's wrong or unclear? Submit a pull request.
Make a contributionThe tutorial will show you how to create and use a debug environment and use IDE capability to modify your executable.
25 minutes
To create the build, follow the below steps. Skip the following steps if you have already created an io-tutorials build earlier.
io-tutorials
https://github.com/rapyuta/io_tutorials
, select Build Recipe as Catkin and click Next.The build takes about two to five minutes to build the source code in the io_tutorials repository into a running docker container. You may analyze the corresponding build logs, which helps in debugging failed builds. After you create the build, create the Talker package.
Talker
.ROS Publisher
.TALKER
.talker_executable
.roslaunch talker talker.launch
/telemetry
.
To add a ROS topic, click Add ROS topic. In the Name box,
type in the ROS topic. Select Maximum as the value for QoS.Follow these steps to create a cloud routed network.
routed_network_1
as the routed network.Deploying a routed network is identical to deploying any other package and has identical corresponding phases and errors. Once the routed network deployment succeeds, other ROS package deployments can bind to it and communicate.
dep11
routed_network_1
as the routed network.You will be redirected to the Details tab of the newly created deployment. The package is successfully deployed when the green colored bar moves from In progress to Succeeded indicating that the DEPLOYMENT PHASE has Succeeded and the STATUS is Running.
In the deployment details page, click the Debug Environment drop-down menu, select the component and then select the executable for which you want to create a debug environment. The Create New Debug Environment page is displayed.
In the Name field, type debugenv-1
as the name for the debug environment.
The same debug environment with different names throws an error in the same project.
Click the following capabilities.
Click Connect. It takes few minutes and the debug environment is created.
After the debug environment is created, copy the Access Key. You will need the access key as the password to access any capability of this debug environment.
After you have created a debug environment, click the environment to debug your application. You can use one or more of the following capabilities to debug your executable.
To modify the code using IDE capability, do the following.
After your debug environment is created, navigate to the debug environment by clicking the Debug environment drop-down.
Click IDE as the capability.
Enter the access key as the password when prompted. An online VS code editor is displayed. The browser-based editor allows you to do the following.
By default, the IDE opens / of your deployment, navigate to the file that you want to edit. In this case, /opt/catkin_ws/src/talk/talker/talker.py and change the source code to welcome to rapyuta.io
in the talker.py file.
Open a terminal from the IDE, click the hamburger menu in the VS code editor and click Terminal > New Terminal.
After you make the required changes, to restart your executable using catkin build recipe, type restart-deployment-executable
in the terminal. It takes few minutes to restart and the updated changes are reflected in the deployment.
If you want to add the changes to your version control system like git, do the following.
a. Install git by running apt-get install git
in the terminal if you are using a ubuntu machine or use apk add git
if you are using alpine.
b. Run the git commands to add and commit your changes.
c. Push your changes to the version control system.
When you try to push your changes through the terminal, it prompts you to enter your git authorization token. Ensure that you have the token handy while trying to push your changes.