# Question for course ROS manipulator

**URL:** <https://get-help.theconstruct.ai/t/question-for-course-ros-manipulator/30661>\
**Category:** ROS Manipulation In 5 Days\
**Created:** [May 26, 2024, 9:26am UTC](https://get-help.theconstruct.ai/t/question-for-course-ros-manipulator/30661 "2024-05-26T09:26:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![huynhtancuongrus](https://get-help.theconstruct.ai/letter_avatar_proxy/v4/letter/h/71e660/32.png) [@huynhtancuongrus](https://get-help.theconstruct.ai/u/huynhtancuongrus)\
**Post date:** [May 26, 2024, 9:26am UTC](https://get-help.theconstruct.ai/t/question-for-course-ros-manipulator/30661/1 "2024-05-26T09:26:24Z")

</div>

The problem is in ex 5.2. I created the folder “my\_motion\_scripts”. When I run the launch file I get the following error:  
[planning\_scripts\_node\_launch-1] process has finished cleanly  
log file: /home/user/.ros/log/b08b8c8c-1b35-11ef-b4bd-0242c0a8d006/planning\_scripts\_node\_launch-1\*.log  
all processes on machine have died, roslaunch will exit  
shutting down processing monitor…  
… shutting down processing monitor complete  
How can I fix it?

 ![03](https://get-help.theconstruct.ai/uploads/default/original/2X/3/3519a7cddcd065943e6b537242e5f06a2dd02b1a.png)

---

<div class="post-metadata">

**Author:** ![roalgoal](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/roalgoal/32/7280_2.png) [@roalgoal](https://get-help.theconstruct.ai/u/roalgoal)\
**Post date:** [May 27, 2024, 8:09am UTC](https://get-help.theconstruct.ai/t/question-for-course-ros-manipulator/30661/2 "2024-05-27T08:09:30Z")

</div>

Hi @huynhtancuongrus, welcome to the community!

What you shared isn’t an error, it’s just your program finishing cleanly.

You should structure your file with an ` __init__ ` method that initializes the node, as well as a `main()` function as an entry point where you spin the node.

Something like:

```auto
class RobotClass(Node):

    def __init__ (self):
        super(). __init__ ("my_node")

def main():
    rospy.init()
    my_node = RobotClass()
    rospy.spin(my_node)
    rospy.shutdown()

if __name__ == " __main__":
    main()

```

I recommend taking our course [ROS Basics in 5 Days (Python)](https://app.theconstruct.ai/courses/ros-basics-in-5-days-python-55/) to get a deeper understanding on creating ROS nodes in Python.

---

<div class="post-metadata">

**Author:** ![system](https://get-help.theconstruct.ai/uploads/default/original/2X/9/9d3ce8305cc0d0d9b6e07d15767a6f245c526f1b.jpeg) [@system](https://get-help.theconstruct.ai/u/system)\
**Post date:** [June 1, 2024, 8:09am UTC](https://get-help.theconstruct.ai/t/question-for-course-ros-manipulator/30661/3 "2024-06-01T08:09:32Z")

</div>

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.
