当前位置:网站首页>ROS create workspace
ROS create workspace
2022-07-02 06:07:00 【melodic18】
If some partners have optimized the terminal , Sometimes it may be inconvenient to use only one , The following commands can switch the terminal .
Switch to terminal bash:
exec bash
Switch to terminal zsh:
exec zsh

(1) Create a workspace :
mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/src
catkin_init_workspace
(2) Compile workspace :
cd ~/catkin_ws/
catkin_make
(3) Set the environment variable :
source devel/setup.sh
Or put the following sentence , Add to .bashrc in :
source ~/catkin_ws/devel/setup.bash
Simply speaking , Is to develop space devel Medium setup.bash file , stay .bashrc in source once , The system sets the environment variable , You can find a workspace and know it , Find various function packs inside .
If the terminal used is zsh, The reason is the same , Add the following words to .zsh in :
source ~/catkin_ws/devel/setup.zsh
see ros Workspace path for :
echo $ROS_PACKAGE_PATH
(4) Generate installation space
catkin_make install
(5) Function pack
package.xml: name , Version number , describe ( purpose ), Contact address , license , rely on ;
CMakeLists.txt: Set Compilation Rules
Before compiling , We need to find some function packs :
Create a feature pack and include some dependencies :
catkin_create_pkg <package_name> [depend1] [depend2] [depend3]
for example :
catkin_create_pkg learning_topic roscpp rospy std_msgs geometry_msgs turtlesim

边栏推荐
- Contest3145 - the 37th game of 2021 freshman individual training match_ H: Eat fish
- Stc8h8k series assembly and C51 actual combat - digital display ADC, key serial port reply key number and ADC value
- Redis Key-Value数据库 【高级】
- Keepalived installation, use and quick start
- 让每一位开发者皆可使用机器学习技术
- DRM display framework as I understand it
- 经典文献阅读之--SuMa++
- Classic literature reading -- deformable Detr
- LeetCode 47. 全排列 II
- Deep learning classification network -- vggnet
猜你喜欢

Data playback partner rviz+plotjuggler

Classic literature reading -- deformable Detr

Current situation analysis of Devops and noops

Reading classic literature -- Suma++

Jetpack Compose 与 Material You 常见问题解答

Comment utiliser mitmproxy

Mathematical statistics and machine learning

Let every developer use machine learning technology

Sumo tutorial Hello World

借力 Google Cloud 基础设施和着陆区,构建企业级云原生卓越运营能力
随机推荐
Google Play Academy 组队 PK 赛,正式开赛!
浏览器原理思维导图
servlet的web.xml配置详解(3.0)
Unity Shader 学习笔记(3)URP渲染管线带阴影PBR-Shader模板(ASE优化版本)
Common websites for Postgraduates in data mining
Let every developer use machine learning technology
Sumo tutorial Hello World
官方零基础入门 Jetpack Compose 的中文课程来啦!
Style modification of Mui bottom navigation
Redis key value database [seckill]
Spark概述
Cookie plugin and localforce offline storage plugin
Linkage between esp8266 and stc8h8k single chip microcomputer - Weather Clock
Lambda 表达式 和 方法引用
Shenji Bailian 3.52-prim
Web page user step-by-step operation guide plug-in driver js
借力 Google Cloud 基础设施和着陆区,构建企业级云原生卓越运营能力
Contest3147 - game 38 of 2021 Freshmen's personal training match_ G: Flower bed
STC8H8K系列汇编和C51实战——数码管显示ADC、按键串口回复按键号与ADC数值
如何使用MITMPROXy