---
title: "Discussion on \"5. ROS Package và Workspace là gì?\" | Hashnode"
description: "Discussion on \"5. ROS Package và Workspace là gì?\". ROS package là một thư mục chứa các tệp thực thi và những tệp hỗ trợ để phục vụ một mục đích cụ thể. ROS workspace là một thư mục chứa các package."
url: "https://hashnode.com/posts/ros-package-va-workspace-la-gi/63b6d5157c3c989d2e872e23"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [5\. ROS Package và Workspace là gì?](https://robodev.blog/ros-package-va-workspace-la-gi?utm_source=hashnode&utm_medium=feed)

ROS package là một thư mục chứa các tệp thực thi và những tệp hỗ trợ để phục vụ một mục đích cụ thể. ROS workspace là một thư mục chứa các package.

Jan 5, 2023 · 7 min read · robodev.blog  
Updated Mar 24, 2024  
Read the article

-   [#ros](https://hashnode.com/tag/ros)
-   [#robot-operating-system](https://hashnode.com/tag/robot-operating-system)
-   [#tutorial](https://hashnode.com/tag/tutorial)
-   [#robotics](https://hashnode.com/tag/robotics)

## Written by

[Trinh Nguyen](https://hashnode.com/@TrinhNC)

@TrinhNC

  
[View profile](https://hashnode.com/@TrinhNC)

#robotics #digitaltwin #ros #python #c++ #computer\_vision #ai #machine\_learning

## Responses 2

Markdown supported · ⌘↵ to post

[Nguyen Cuong](https://hashnode.com/@nvcuong)

[Jul 31, 2023](https://hashnode.com/posts/ros-package-va-workspace-la-gi/63b6d5157c3c989d2e872e23/comment/64c7ef38e4307e974fbddf66)

Bạn có thể cho mình xin số Zalo mình hỏi chút được không! cám ơn bạn nhiều!

[Minh](https://hashnode.com/@kangurouo)

[Jan 10, 2023](https://hashnode.com/posts/ros-package-va-workspace-la-gi/63b6d5157c3c989d2e872e23/comment/63bda8f7a02a7de436a2f74e)

Chào anh, cảm ơn anh về bài hướng dẫn rất chi tiết. Em gặp phải 1 lỗi khi làm theo hướng dẫn của anh. Sau khi tạo package **my\_cam** thì mọi thứ đêù bình thường. Nhưng sau đó em không chạy được lệnh **rosrun my\_cam image\_publisher py** Sau khi tìm lỗi thì em phát hiện ra package **my\_ cam** ko được ros xem là 1 package. **\[rospack\] Error: package 'my\_cam' not found**

Anh có thể giúp em sửa lỗi này được không ạ. em xin cảm ơn

[Trinh Nguyen](https://hashnode.com/@TrinhNC)

[Jan 10, 2023](https://hashnode.com/posts/ros-package-va-workspace-la-gi/63b6d5157c3c989d2e872e23/comment/63bda8f7a02a7de436a2f74e#reply-63bdca5fa02a7de436a2fb3a)

Em đã build workspace chưa? Nếu chưa em mở một terminal rồi `cd` tới `~/catkin_ws` và chạy `catkin build`. Sau khi build xong nhớ chạy `source devel/setup.bash`.

[Minh](https://hashnode.com/@kangurouo)

[Jan 10, 2023](https://hashnode.com/posts/ros-package-va-workspace-la-gi/63b6d5157c3c989d2e872e23/comment/63bda8f7a02a7de436a2f74e#reply-63bde7f1a02a7de436a2fda5)

Em đã sửa được lỗi này rồi ạ. Sau khi tạo package thì phải chạy lệnh **catkin build** một lần nữa ở thư nục workplace để update package vừa tạo.
