Running the RoboticsAcademy exercise on a local machine #284
-
Hello everyone, I am seeking assistance with solving Robotics Academy exercises using VisualCircuits. I have watched some videos demonstrating VisualCircuits, where launch and world files are launched, such as in one video where the visual_lander.launch file is used. However, in the recent version of RoboticsAcademy, the file organization has changed, and in most folders, there are no world and launch files available for testing on a local machine. In exercises like Amazon Warehouse, launch files and world files are provided. I am attempting to run the autoparking exercise on my local machine but I am uncertain about the steps required for local execution. Could anyone please guide me on how to run the exercises on my local machine? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
Hi @BkPankaj which exercise are you trying to access exactly? |
Beta Was this translation helpful? Give feedback.
-
Greetings everyone, I successfully implemented the autoparking exercise of RoboticsAcademy using VisualCircuits. I followed the steps outlined by @toshan-luktuke in this comment. Let me provide a detailed explanation of the steps and commands required to run the main.py file in Docker:
(Note: It is not necessary to use the first terminal separately; you can also use the RoboticsAcademy web terminal, which is already inside the Docker file system.) Implementation of Autoparking using VisualCircuits: Referring to the Autoparking documentation, the Robot API section provides three laser data attributes: front, right, and back, as well as methods such as getPose, setW, and setV. Additional information about laser attributes can be found inside the laser attributes section. To gain a deeper understanding of these methods, try utilizing them within the RoboticsAcademy web IDE. To obtain topic names and types, navigate to the Autoparking exercise folder of RoboticsAcademy. With this information, we are ready to create logic using VisualCircuits. In my demonstration, I used custom block for laser ROS1 Neotic, a Motor block, and a Code block. Since the Docker autoparking exercise runs on ROS1 Neotic, there was no predefined block for laser specific to ROS1 Neotic. The circuit is depicted below in the image. Videos/ Result: Using Visual Circuits: youtube video |
Beta Was this translation helpful? Give feedback.
-
Great to see the exercise working! @BkPankaj if you edit the video of the VIsualCircuit execution in the style of the Visual Lander Video and send it to me we can even upload it on the JdeRobot channel. |
Beta Was this translation helpful? Give feedback.
-
Congratulations @BkPankaj , it is a nice demo. RoboticsAcademy is now moving to ROS2-Humble (release 5.2.x), maybe you could replicate this with the ROS2-Humble sensor blocks and motor blocks in VisualCircuit. This way we could move forward also to ROS2-Humble in VisualCircuit. What do you think? |
Beta Was this translation helpful? Give feedback.
Drones with Robotics Academy actually require a lot of auxiliary dependencies. I wrote a blog describing how I got it running locally. You can refer to that and see if it helps. Aside from that, most of the exercises are limited only by the dependencies, i.e. if all dependencies are there, they should run normally using the main.py files (since all they do is run the launch files)
Alternatively, I would suggest running the Docker container for RoboticsAcademy, copying the VisualCircuit Package (
docker cp
) that is made and then running it normally. It will work as expected as long as the topics are up and running for the worlds.So the process would be something like: