Issue with Exercise 4.1 (from geometry_msgs.msg import Twist)

user:~/catkin_ws/src/linux_course_files/move_bb8_pkg/my_scripts$ chmod 755 test_process.py
user:~/catkin_ws/src/linux_course_files/move_bb8_pkg/my_scripts$ ls -la
total 20
drwxr-xr-x 2 user user 4096 Jun 30 18:26 .
drwxr-xr-x 4 user user 4096 Jun 29 22:58 …
-rwxr-xr-x 1 user user 43 Jun 30 03:39 bash_script.sh
-rwxr-xr-x 1 user user 2257 Jun 29 22:30 move_bb8_square.py
-rwxr-xr-x 1 user user 1696 Jun 30 18:26 test_process.py
user:~/catkin_ws/src/linux_course_files/move_bb8_pkg/my_scripts$ rosrun move_bb8_pkg test_process.py
File “/home/user/catkin_ws/src/linux_course_files/move_bb8_pkg/my_scripts/test_process.py”, line 3
import rospy_pometry_msgs.msg import Twist
^
SyntaxError: invalid syntax
user:~/catkin_ws/src/linux_course_files/move_bb8_pkg/my_scripts$

Hi @charles2 ,

I think it is: from rospy_pometry_msgs.msg import Twist

Best regards

1 Like

The changed code runs fine now. Thanks!

2 Likes