# \#python3

**URL:** https://get-help.theconstruct.ai/tag/python3/40.md

[Latest](https://get-help.theconstruct.ai/latest.md) · [Categories](https://get-help.theconstruct.ai/categories.md) · [Tags](https://get-help.theconstruct.ai/tags.md)

---

## [What can be the error in the code](https://get-help.theconstruct.ai/t/what-can-be-the-error-in-the-code/27412)

<div class="topic-metadata">

**Author:** [@tabrar](https://get-help.theconstruct.ai/u/tabrar)\
**Replies:** 5\
**Last updated:** [November 21, 2023, 5:11pm UTC](https://get-help.theconstruct.ai/t/what-can-be-the-error-in-the-code/27412 "2023-11-21T17:11:55Z")

</div>

I am stuck in Code Foundation for ROS - Exam - Python task 3. The code i write works properly, the file name is also correct (task3.py), the code works perfectly fine when i test as it has class named ExamControl and fu…

---

## [What happens when you build a Python ROS2 package?](https://get-help.theconstruct.ai/t/what-happens-when-you-build-a-python-ros2-package/26343)

<div class="topic-metadata">

**Author:** [@rlekkerkerker](https://get-help.theconstruct.ai/u/rlekkerkerker)\
**Replies:** 0\
**Last updated:** [September 17, 2023, 7:53am UTC](https://get-help.theconstruct.ai/t/what-happens-when-you-build-a-python-ros2-package/26343 "2023-09-17T07:53:08Z")

</div>

Hi there, What does actually happen when we build a Python ROS2-package? In my understanding when we build a C++ package, the C++ code will be ‘compiled’ into machine code which can be more efficiently run by a machine.…

---

## [How many nodes per python script are allowed?](https://get-help.theconstruct.ai/t/how-many-nodes-per-python-script-are-allowed/26341)

<div class="topic-metadata">

**Author:** [@rlekkerkerker](https://get-help.theconstruct.ai/u/rlekkerkerker)\
**Replies:** 0\
**Last updated:** [September 17, 2023, 7:39am UTC](https://get-help.theconstruct.ai/t/how-many-nodes-per-python-script-are-allowed/26341 "2023-09-17T07:39:06Z")

</div>

Hi there, I have two questions for you: I’ve been following some ROS2 python courses and I noticed that every node was initialized in its own Python script. Is it actually possible to initialize multiple nodes in 1 p…

---

## [Unable to install "SpeechRecognition" module](https://get-help.theconstruct.ai/t/unable-to-install-speechrecognition-module/26159)

<div class="topic-metadata">

**Author:** [@ridhgoswami](https://get-help.theconstruct.ai/u/ridhgoswami)\
**Replies:** 2\
**Last updated:** [September 7, 2023, 4:34pm UTC](https://get-help.theconstruct.ai/t/unable-to-install-speechrecognition-module/26159 "2023-09-07T16:34:44Z")

</div>

Hi everyone, This is my first time working on a project with ROS. I am working on a voice-controlled turtlebot, for which I need the SpeechRecognition module. I installed it using pip3 install SpeechRecognition It…

---

## [ROSject section 2 services+topics](https://get-help.theconstruct.ai/t/rosject-section-2-services-topics/20048)

<div class="topic-metadata">

**Author:** [@CEPE-AO](https://get-help.theconstruct.ai/u/CEPE-AO)\
**Replies:** 3\
**Last updated:** [October 23, 2022, 3:35pm UTC](https://get-help.theconstruct.ai/t/rosject-section-2-services-topics/20048 "2022-10-23T15:35:41Z")

</div>

Hi All, I have been working on ROSject section 2. I initialize the service and the subscriber/publisher together, but ideally, I should only trigger the publisher and subscriber once the service has been called. But I …

---

## [Fails to move to the goal point](https://get-help.theconstruct.ai/t/fails-to-move-to-the-goal-point/21529)

<div class="topic-metadata">

**Author:** [@NoN33d](https://get-help.theconstruct.ai/u/NoN33d)\
**Replies:** 17\
**Last updated:** [January 19, 2023, 5:05pm UTC](https://get-help.theconstruct.ai/t/fails-to-move-to-the-goal-point/21529 "2023-01-19T17:05:48Z")

</div>

Hello guys, I am trying to make the robot move on Construct as directed from ROS Navigation In 5 Days. To make things simpler I am just trying to make the robot move to where you put the “publish point” via rviz2. I g…

---

## [Quiz Submit problem - Unit 3 - Could not launch topics\_quiz package successfully](https://get-help.theconstruct.ai/t/quiz-submit-problem-unit-3-could-not-launch-topics-quiz-package-successfully/20333)

<div class="topic-metadata">

**Author:** [@mondiegus9](https://get-help.theconstruct.ai/u/mondiegus9)\
**Replies:** 2\
**Last updated:** [November 7, 2022, 8:29pm UTC](https://get-help.theconstruct.ai/t/quiz-submit-problem-unit-3-could-not-launch-topics-quiz-package-successfully/20333 "2022-11-07T20:29:02Z")

</div>

Hi all, I have a problem with submitting the quiz in Unit 3 in the ROS2 Basics Python course. To the point, I created a topics\_quiz package, the application is working (in my tests), but when I’ve tried to submit the qu…

---

## [Add Python3 kernel to Jupyter notebooks](https://get-help.theconstruct.ai/t/add-python3-kernel-to-jupyter-notebooks/20248)

<div class="topic-metadata">

**Author:** [@yhabib](https://get-help.theconstruct.ai/u/yhabib)\
**Replies:** 7\
**Last updated:** [November 2, 2022, 3:57pm UTC](https://get-help.theconstruct.ai/t/add-python3-kernel-to-jupyter-notebooks/20248 "2022-11-02T15:57:42Z")

</div>

Hello, I would like to use Python3 kernel in Jupyter Notebook. The built-in Jupyter only provides a Python2 kernel. I tried to install the new kernel on the terminal it worked but made no changes. It seems like that th…

---

## [Controlling a robot from a Django web app - how to connect the robot to the web app to allow commands to be published to it?](https://get-help.theconstruct.ai/t/controlling-a-robot-from-a-django-web-app-how-to-connect-the-robot-to-the-web-app-to-allow-commands-to-be-published-to-it/18482)

<div class="topic-metadata">

**Author:** [@anthonyyy02](https://get-help.theconstruct.ai/u/anthonyyy02)\
**Replies:** 1\
**Last updated:** [August 1, 2022, 9:27am UTC](https://get-help.theconstruct.ai/t/controlling-a-robot-from-a-django-web-app-how-to-connect-the-robot-to-the-web-app-to-allow-commands-to-be-published-to-it/18482 "2022-08-01T09:27:43Z")

</div>

Hello, I am trying to build a web app using the python framework Django and I am looking for help regarding WebSocket support for Django. I have done research and roslibjs seems to be the most common library for this. I…

---

## [Exam task 3 python in 5 days](https://get-help.theconstruct.ai/t/exam-task-3-python-in-5-days/17121)

<div class="topic-metadata">

**Author:** [@ghassan11](https://get-help.theconstruct.ai/u/ghassan11)\
**Replies:** 2\
**Last updated:** [May 9, 2022, 12:09pm UTC](https://get-help.theconstruct.ai/t/exam-task-3-python-in-5-days/17121 "2022-05-09T12:09:04Z")

</div>

Hello how are you the construct team i need you to help me in my prerequisites exam of python in 5 days i have an error that in the terminal when i run the task three of the exam it goes correctly but in the gradebot i…

---

## [Rosject ROS2 Basics in 5 Days(Python): Part 3 No such file or directory](https://get-help.theconstruct.ai/t/rosject-ros2-basics-in-5-days-python-part-3-no-such-file-or-directory/13665)

<div class="topic-metadata">

**Author:** [@alan0428a](https://get-help.theconstruct.ai/u/alan0428a)\
**Replies:** 4\
**Last updated:** [February 2, 2022, 5:18am UTC](https://get-help.theconstruct.ai/t/rosject-ros2-basics-in-5-days-python-part-3-no-such-file-or-directory/13665 "2022-02-02T05:18:05Z")

</div>

Hello Community, I am working on the rosject of the course ROS2 Basics in 5 Days(Python). For part 3 of the rosject, I need to build a custom action interface that looks like below: --- Point\[\] list\_of\_odoms --- float…

---

## [For some reason my task 3 wont pass](https://get-help.theconstruct.ai/t/for-some-reason-my-task-3-wont-pass/14773)

<div class="topic-metadata">

**Author:** [@thunderbootyclap](https://get-help.theconstruct.ai/u/thunderbootyclap)\
**Replies:** 5\
**Last updated:** [January 19, 2022, 9:57pm UTC](https://get-help.theconstruct.ai/t/for-some-reason-my-task-3-wont-pass/14773 "2022-01-19T21:57:49Z")

</div>

I get the points for my get\_laser\_readings but not main does anyone have any ideas why? from robot\_control\_class import RobotControl import time class ExamControl: def \_\_init\_\_(self): self.rc = RobotCont…

---

## [Rosject of ROS2 Basics in 5 Days(Python) course](https://get-help.theconstruct.ai/t/rosject-of-ros2-basics-in-5-days-python-course/13535)

<div class="topic-metadata">

**Author:** [@alan0428a](https://get-help.theconstruct.ai/u/alan0428a)\
**Replies:** 2\
**Last updated:** [November 6, 2021, 3:55am UTC](https://get-help.theconstruct.ai/t/rosject-of-ros2-basics-in-5-days-python-course/13535 "2021-11-06T03:55:30Z")

</div>

Hello community, I did not find the category for the ROS2 Basics Python, so I just post the question here. I am currently working on the rosject of ROS2 Basics Python, and I encounter some problems in Topic 2 Services. …

---

## [Guidance in developing custom GUI for the robot](https://get-help.theconstruct.ai/t/guidance-in-developing-custom-gui-for-the-robot/10055)

<div class="topic-metadata">

**Author:** [@aashith101991](https://get-help.theconstruct.ai/u/aashith101991)\
**Replies:** 1\
**Last updated:** [September 28, 2021, 8:24am UTC](https://get-help.theconstruct.ai/t/guidance-in-developing-custom-gui-for-the-robot/10055 "2021-09-28T08:24:02Z")

</div>

Hello I am using ROS Noetic i am developing a custom GUI for the ROS package which i developed. the GUI must include the RViz visualization in it. i checked onto Librviz package and tried to embed it to my GUI but i h…

---

## [How to subscribe "/scan" topic, modify message Laserscan.ranges and publish it to the new topic?](https://get-help.theconstruct.ai/t/how-to-subscribe-scan-topic-modify-message-laserscan-ranges-and-publish-it-to-the-new-topic/12473)

<div class="topic-metadata">

**Author:** [@AmirulJ](https://get-help.theconstruct.ai/u/AmirulJ)\
**Replies:** 1\
**Last updated:** [September 10, 2021, 4:01am UTC](https://get-help.theconstruct.ai/t/how-to-subscribe-scan-topic-modify-message-laserscan-ranges-and-publish-it-to-the-new-topic/12473 "2021-09-10T04:01:26Z")

</div>

I would like to improve the LDS-01 sensor of the turtlebot3 by subscribing the message.ranges, modify the messange.ranges by applying some algorithm and publish it to the new topic as shown below. But there are an error …

---

## [Can i see example\_action\_server.py file?](https://get-help.theconstruct.ai/t/can-i-see-example-action-server-py-file/11740)

<div class="topic-metadata">

**Author:** [@VoltaRos2](https://get-help.theconstruct.ai/u/VoltaRos2)\
**Replies:** 1\
**Last updated:** [August 9, 2021, 7:45am UTC](https://get-help.theconstruct.ai/t/can-i-see-example-action-server-py-file/11740 "2021-08-09T07:45:14Z")

</div>

can i see example\_action\_server.py file in web developement for robot course chapter 11 ?

---

## [Using RP-Lidar A2 M8 with Jetson Nano to avoid obstacles](https://get-help.theconstruct.ai/t/using-rp-lidar-a2-m8-with-jetson-nano-to-avoid-obstacles/10919)

<div class="topic-metadata">

**Author:** [@ansjaved67](https://get-help.theconstruct.ai/u/ansjaved67)\
**Replies:** 1\
**Last updated:** [July 5, 2021, 7:54am UTC](https://get-help.theconstruct.ai/t/using-rp-lidar-a2-m8-with-jetson-nano-to-avoid-obstacles/10919 "2021-07-05T07:54:39Z")

</div>

Hi, I’m working on the project of " the Prototype of autonomous car ". I need your help in controlling RPLidarA2. As I do not want to use ROS to control lidar because I do not have much time. Can you tell me some other w…

---

## [Chapter7:how to build venv(python3) on local PC?](https://get-help.theconstruct.ai/t/chapter7-how-to-build-venv-python3-on-local-pc/4184)

<div class="topic-metadata">

**Author:** [@798419633](https://get-help.theconstruct.ai/u/798419633)\
**Replies:** 5\
**Last updated:** [June 17, 2021, 6:14pm UTC](https://get-help.theconstruct.ai/t/chapter7-how-to-build-venv-python3-on-local-pc/4184 "2021-06-17T18:14:50Z")

</div>

I’m trying to build venv(python3) on my local PC to run the openai baseline. Although I have followed the live class ‘How to use ROS with Python3’ step by setp, after I have typed in ‘catkin\_make -DPYTHON…

---

## [Python3: Publisher Best Practice Question](https://get-help.theconstruct.ai/t/python3-publisher-best-practice-question/10228)

<div class="topic-metadata">

**Author:** [@\_RM](https://get-help.theconstruct.ai/u/_RM)\
**Replies:** 2\
**Last updated:** [May 28, 2021, 9:18am UTC](https://get-help.theconstruct.ai/t/python3-publisher-best-practice-question/10228 "2021-05-28T09:18:53Z")

</div>

I recently worked with a service that involved moving the robot in a specific pattern. My code broke that motion up into “go forward”, “turn 90 degrees”, “stop” and assigned each a helper function. I ran into an issue w…

---

## [Python3: Precedence Question](https://get-help.theconstruct.ai/t/python3-precedence-question/10226)

<div class="topic-metadata">

**Author:** [@\_RM](https://get-help.theconstruct.ai/u/_RM)\
**Replies:** 1\
**Last updated:** [May 27, 2021, 2:31pm UTC](https://get-help.theconstruct.ai/t/python3-precedence-question/10226 "2021-05-27T14:31:32Z")

</div>

In python, I thought methods and functions had to be defined in the code before they were called. For example, we always define a subscriber callback function before we instantiate the subscriber (which uses the callback…

---

## [Python3 Exam Task3](https://get-help.theconstruct.ai/t/python3-exam-task3/8822)

<div class="topic-metadata">

**Author:** [@petrouli\_g](https://get-help.theconstruct.ai/u/petrouli_g)\
**Replies:** 6\
**Last updated:** [March 21, 2021, 9:13pm UTC](https://get-help.theconstruct.ai/t/python3-exam-task3/8822 "2021-03-21T21:13:34Z")

</div>

Hello Academy, I had an issue with my exam at the end of the course of Python3. I had task1 and task2 working fine but for task3, I get an error in the correction. According to the instructions of the exercise, the fin…

---

## [How to structure python ros package to include python packages](https://get-help.theconstruct.ai/t/how-to-structure-python-ros-package-to-include-python-packages/6109)

<div class="topic-metadata">

**Author:** [@pwspania](https://get-help.theconstruct.ai/u/pwspania)\
**Replies:** 1\
**Last updated:** [November 6, 2020, 9:38am UTC](https://get-help.theconstruct.ai/t/how-to-structure-python-ros-package-to-include-python-packages/6109 "2020-11-06T09:38:30Z")

</div>

Hi, I’m trying to build a python3 ros2 foxy package with my own custom python package inside, but when I’m not sure how to reference it in code. for example I have the following folder structure - ros\_package\_na…
