# Do not understand error code Property project has no attribute

**URL:** <https://get-help.theconstruct.ai/t/do-not-understand-error-code-property-project-has-no-attribute/31367>\
**Category:** ROS Basics In 5 Days (Python)\
**Created:** [July 18, 2024, 10:36pm UTC](https://get-help.theconstruct.ai/t/do-not-understand-error-code-property-project-has-no-attribute/31367 "2024-07-18T22:36:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ROxX](https://get-help.theconstruct.ai/letter_avatar_proxy/v4/letter/r/dfb087/32.png) [@ROxX](https://get-help.theconstruct.ai/u/ROxX)\
**Post date:** [July 18, 2024, 10:36pm UTC](https://get-help.theconstruct.ai/t/do-not-understand-error-code-property-project-has-no-attribute/31367/1 "2024-07-18T22:36:14Z")

</div>

This is in the Project Simulation when trying to run the remote simulation model. I don’t see any alternative references.

 ![error statement](https://get-help.theconstruct.ai/uploads/default/original/2X/5/5901bcef933fa11511450c97d81af19fbfb826fc.jpeg)  
 ![code in error statement](https://get-help.theconstruct.ai/uploads/default/original/2X/2/2bdb830c99b46e95aa5845b02dbe1d00ac86ee64.jpeg)

---

<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:** [July 19, 2024, 8:14am UTC](https://get-help.theconstruct.ai/t/do-not-understand-error-code-property-project-has-no-attribute/31367/2 "2024-07-19T08:14:36Z")

</div>

Hi @ROxX, you are not showing the output of a simulation in your terminal output screenshot. It seems like the issue is with the file `wall_following.py`, with the message `self.cmd.linear.x`.

Have you defined `cmd` as a `Twist` message? I don’t see that in your IDE screenshot, so the error output would make sense.

---

<div class="post-metadata">

**Author:** ![ROxX](https://get-help.theconstruct.ai/letter_avatar_proxy/v4/letter/r/dfb087/32.png) [@ROxX](https://get-help.theconstruct.ai/u/ROxX)\
**Post date:** [July 19, 2024, 12:01pm UTC](https://get-help.theconstruct.ai/t/do-not-understand-error-code-property-project-has-no-attribute/31367/3 "2024-07-19T12:01:35Z")

</div>

I have attached the code. I found this old recommendation - [ROS2 Project topics problem - #8 by girishkumar.kannan](https://get-help.theconstruct.ai/t/ros2-project-topics-problem/24261/8) However using the '/cmd\_vel" did not work and ‘cmd\_vel’ does not work. Also reset the terminal using the the commands. Here is my code and error message.

 ![code pg 4](https://get-help.theconstruct.ai/uploads/default/original/2X/0/057c64fa2d81c0779cbfe6e1f6cb54d3006e8a2f.jpeg)  
 ![code pg 1](https://get-help.theconstruct.ai/uploads/default/original/2X/0/044022d8cab820431c7325e6febe62514b2c8bf1.jpeg)  
 ![code pg 3](https://get-help.theconstruct.ai/uploads/default/original/2X/5/5fc1a2de46584923c7c62e1c2cebf4f3b6461f17.jpeg)  
 ![code pg 4](https://get-help.theconstruct.ai/uploads/default/original/2X/0/057c64fa2d81c0779cbfe6e1f6cb54d3006e8a2f.jpeg)  
 ![code pg 4](https://get-help.theconstruct.ai/uploads/default/original/2X/0/057c64fa2d81c0779cbfe6e1f6cb54d3006e8a2f.jpeg)  
 ![code pg 1](https://get-help.theconstruct.ai/uploads/default/original/2X/0/044022d8cab820431c7325e6febe62514b2c8bf1.jpeg)  
 ![code pg 3](https://get-help.theconstruct.ai/uploads/default/original/2X/5/5fc1a2de46584923c7c62e1c2cebf4f3b6461f17.jpeg)

 ![error message 2](https://get-help.theconstruct.ai/uploads/default/original/2X/a/a4a1cbbdcc6fc6c520c2b9b260eb71d2e356fac9.jpeg)

---

<div class="post-metadata">

**Author:** ![ROxX](https://get-help.theconstruct.ai/letter_avatar_proxy/v4/letter/r/dfb087/32.png) [@ROxX](https://get-help.theconstruct.ai/u/ROxX)\
**Post date:** [July 19, 2024, 8:22pm UTC](https://get-help.theconstruct.ai/t/do-not-understand-error-code-property-project-has-no-attribute/31367/4 "2024-07-19T20:22:07Z")

</div>

![begin log in](https://get-help.theconstruct.ai/uploads/default/original/2X/5/5aff235b0e03c8f071eff50e585cd545c521c728.jpeg)

---

<div class="post-metadata">

**Author:** ![bayodesegun](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/bayodesegun/32/10684_2.png) [@bayodesegun](https://get-help.theconstruct.ai/u/bayodesegun)\
**Post date:** [July 22, 2024, 10:10am UTC](https://get-help.theconstruct.ai/t/do-not-understand-error-code-property-project-has-no-attribute/31367/5 "2024-07-22T10:10:26Z")

</div>

There is a bug on line 7 of your code:

```auto
# Here, you are assigning the class `Twist` to `self.cmd`
# This is not what you wanted to do
self.cmd = Twist

```

It should be:

```auto
# Here, you assigning an instance of the class `Twist` to `self.cmd`
# This is what you really wanted to do!
self.cmd = Twist()

```

Please check that you don’t have similar bugs elsewhere.

---

<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:** [July 27, 2024, 10:10am UTC](https://get-help.theconstruct.ai/t/do-not-understand-error-code-property-project-has-no-attribute/31367/6 "2024-07-27T10:10:52Z")

</div>

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