0% found this document useful (0 votes)
3 views2 pages

ROS Catkin Workspace Setup Guide

Uploaded by

wastaken4
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

ROS Catkin Workspace Setup Guide

Uploaded by

wastaken4
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

ros@ros-VirtualBox:~$ cd catkin_ws/

ros@ros-VirtualBox:~/catkin_ws$ cd src
ros@ros-VirtualBox:~/catkin_ws/src$ ls
[Link]
ros@ros-VirtualBox:~/catkin_ws/src$ mkdir catkin_ws
ros@ros-VirtualBox:~/catkin_ws/src$ ls
catkin_ws [Link]
ros@ros-VirtualBox:~/catkin_ws/src$ rmdir catkin_ws/
ros@ros-VirtualBox:~/catkin_ws/src$ cd ..
ros@ros-VirtualBox:~/catkin_ws$ ls
build devel src
ros@ros-VirtualBox:~/catkin_ws$ catkin_make

ros@ros-VirtualBox:~/catkin_ws$ ls
build devel src
ros@ros-VirtualBox:~/catkin_ws$ cd src
ros@ros-VirtualBox:~/catkin_ws/src$ ls
[Link]
ros@ros-VirtualBox:~/catkin_ws/src$ catkin_create_pkg my_robot roscpp rospy
std_msgs

ros@ros-VirtualBox:~/catkin_ws/src$ cd my_robot/
ros@ros-VirtualBox:~/catkin_ws/src/my_robot$ ls
[Link] include [Link] src
ros@ros-VirtualBox:~/catkin_ws/src/my_robot$ cd src/
ros@ros-VirtualBox:~/catkin_ws/src/my_robot/src$ cd ../.
ros@ros-VirtualBox:~/catkin_ws/src/my_robot$ cd ..
ros@ros-VirtualBox:~/catkin_ws/src$ cd my_robot/
ros@ros-VirtualBox:~/catkin_ws/src/my_robot$ vim [Link]
ros@ros-VirtualBox:~/catkin_ws/src/my_robot$ vim [Link]
ros@ros-VirtualBox:~/catkin_ws/src/my_robot$ cd ..

#!/usr/bin/env python3
import rospy
if __name__ == '__main__':
rospy.init_node('My_first_python_node')
[Link]("this node has been started")
# rate = [Link](10)
# while not rospy.is_shutdown():
# [Link]("HELO")
# [Link]()

[Link](1)
[Link]("Exit now")
~

You might also like