当前位置:网站首页>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
边栏推荐
- PHP extensions
- PHP inner class name is the same as the inner class method name
- 492. Construction rectangle
- Happy Lantern Festival | Qiming cloud invites you to guess lantern riddles
- Google Go to sea entrepreneurship accelerator registration countdown 3 days, entrepreneurs pass through the guide in advance collection!
- Community theory | kotlin flow's principle and design philosophy
- 借力 Google Cloud 基础设施和着陆区,构建企业级云原生卓越运营能力
- 使用HBuilderX的一些常用功能
- Stc8h8k Series Assembly and c51 Real combat - NIXIE TUBE displays ADC, Key Series port reply Key number and ADC value
- 页面打印插件print.js
猜你喜欢
Deep learning classification network -- alexnet
Memcached installation
经典文献阅读之--SuMa++
Little bear sect manual query and ADC in-depth study
穀歌出海創業加速器報名倒計時 3 天,創業人闖關指南提前收藏!
ZABBIX server trap command injection vulnerability (cve-2017-2824)
经典文献阅读之--Deformable DETR
Redis key value database [primary]
I/o impressions from readers | prize collection winners list
Happy Lantern Festival | Qiming cloud invites you to guess lantern riddles
随机推荐
Detailed steps of JS foreground parsing of complex JSON data "case: I"
Fundamentals of software testing
492.构造矩形
官方零基础入门 Jetpack Compose 的中文课程来啦!
[whether PHP has soap extensions installed] a common problem for PHP to implement soap proxy: how to handle class' SoapClient 'not found in PHP
Go 学习笔记整合
The official zero foundation introduction jetpack compose Chinese course is coming!
LeetCode 40. 组合总和 II
步骤详解 | 助您轻松提交 Google Play 数据安全表单
Contest3147 - game 38 of 2021 Freshmen's personal training match_ 1: Maximum palindromes
Summary of MySQL constraints
深度学习分类网络 -- AlexNet
cookie插件和localForage离线储存插件
Contest3147 - game 38 of 2021 Freshmen's personal training match_ E: Listen to songs and know music
Several keywords in C language
Scheme and implementation of automatic renewal of token expiration
Verifying downloaded files using sha256 files
uni-app开发中遇到的问题(持续更新)
CNN可视化技术 -- CAM & Grad-CAM详解及pytorch简洁实现
How vite is compatible with lower version browsers