Rosrun not working chapter 4

The program says it’s a success, but BB8 isn’t moving, and nothing appears

So we can help you faster,

  • Which unit and which specific exercise is this? A screenshot of the exercise/example would greatly help.
  • What were you asked to do?
  • What did you do?
  • What result were you expecting, and what did you get?

I am currently working on section 4.1.1: Visualize Processes – Exercise 4.1. I created the required file, inserted the algorithm using “vi”, and gave full permission for the file, and then executed the command “rosrun move_bb8_pkg test_process.py”, as instructed.

According to the exercise, the robot should start moving, but in my case, nothing happens. Instead, I receive a “Success” message.

The exercise then suggests using the command “ps faux | grep test_process”, and it mentions that I should expect an error message similar to this:

However, this is the output I received:

user:~$ rosrun move_bb8_pkg test_process.py
/opt/ros/noetic/bin/rosrun: line 150: /home/user/catkin_ws/src/linux_course_files/move_bb8_pkg/my_scripts/test_process.py: Success
user:~$ ps faux | grep test_process
user 1144 0.0 0.0 3312 652 pts/0 S+ 13:10 0:00 | _ grep --color=auto test_p

I was expecting to see the following output from the program:
“user :~ /catkin ws/src/linux course files/move bb8 pkg/my scripts$ rosrun move bb8 pkg test process.py
[1565090252.397405, 2827.778000]: Moving BB-8 forward! !
[1565090261.700165, 2835.778000]: Moving BB-8 forward! !”

Please go over the instructions again and make sure you do things exactly as instructed. For instance

  • Were you asked to use the vi program? Normally, you should use the IDE for creating files.
  • Did you actually copy the given code into your file? Again, please make sure you copy it using the IDE, not the vi program.

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