Creating ROS Workspace

When we create workspace for ROS there will be three folders in it named devel, build and src, src(script) in this we have to include our scripts which in this case will be talker and listner

Following commands should be ran in the terminal for creating ros workspace

  • $ cd ~/catkin_ws

  • $ catkin_make

  • $ . ~/catkin_ws/devel/setup.bash

Following commands should be ran in the terminal for creating ros package

  • $ cd ~/catkin_ws/src

  • $ catkin_create_pkg beginner_tutorials std_msgs rospy roscpp

Following commands should be ran in the terminal for Building and Sourcing Package

  • $ cd ~/catkin_ws

  • $ catkin_make

  • $ . ~/catkin_ws/devel/setup.bash

Last updated

Was this helpful?