0
$\begingroup$

Rosanswers logo

I created a python file contain the code for the robot patrol around, however, I am not sure how to run the file. I created a package name patrol inside Navigation folder using command:

catkin_create_pkg patrol rospy move_base_msgs.msg
chmod +x patrolling.py
rosrun patrol patrolling.py

The error said: cannot find the package. I am still new to ROS, so I would like to ask how do I compiled and run the code that I wrote and possibly to launch it with the rviz ? Thank you,


Originally posted by kimnguyen on ROS Answers with karma: 21 on 2017-08-22

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

Also, don't forget to source setup.sh !


Originally posted by skander_hannachi with karma: 26 on 2017-08-23

This answer was ACCEPTED on the original site

Post score: 1

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.