当前位置:网站首页>[ROS] The difference between roscd and cd
[ROS] The difference between roscd and cd
2022-08-02 14:18:00 【CynalFly】

Linux: Ubuntu 18.04 (Bionic)
ROS: ROS Melodic Morenia
1. The difference between roscd and cd
cd, change directory, change directory.Both roscd and cd commands are used to switch to the specified directory.The differences between them are:
cdis the command for UNIX/Linux systems;roscdis a command of the ROS system and is part of therosbashcommand set;roscdcan only switch to those paths already included in>ROS_PACKAGE_PATHpackage in the environment variable.
2. Example
assumes you have created a catkin workspace and a catkin package named beginner_tutorials.
cd ~/catkin_ws/src/beginner_tutorials/roscd beginner_tutorialsBy comparison, roscd is faster to enter commands than cd.
3. Notes
If roscd prompts something like roscd: No such package/stack 'beginner_tutorials', you need to create catkin workspaceThe following steps make the environment variables take effect:
cd ~/catkin_wssource devel/setup.bashroscd beginner_tutorials But every time you compile catkin_make, you must use source devel/setup.bash to refresh the environment, otherwise the above problem will occur.How to solve this problem?It's actually very simple, just add the source ~/catkin_ws/devel/setup.bash command to the .bashrc script file, and let the system automatically refresh the workspace.
echo “source ~/catkin_ws/devel/setup.bash” >> ~/.bashrc We can open the bashrc file with the following command, the source ~/catkin_ws/devel/setup.bash command is in the last line of the script.
gedit ~/.bashrc4. References
[1] ROS.org. ROS Tutorial [EB/OL]. [2022-6-29]. http://wiki.ros.org/en/ROS/Tutorials
边栏推荐
猜你喜欢

The world's largest Apache open source foundation is how it works?

浅浅写一下PPOCRLabel的使用及体验

世界上最大的开源基金会 Apache 是如何运作的?
ROS通信 —— 节点,Nodes & Master](/img/f5/c541259b69a0db3dc15a61e87f0415.png)
[ROS](05)ROS通信 —— 节点,Nodes & Master

logback源码阅读(一)获取ILoggerFactory、Logger

你接受不了60%的暴跌,就没有资格获得6000%的涨幅 2021-05-27
![[ROS]roscd和cd的区别](/img/a8/a1347568170821e8f186091b93e52a.png)
[ROS]roscd和cd的区别

【Tensorflow】AttributeError: '_TfDeviceCaptureOp' object has no attribute '_set_device_from_string'

Flask项目的完整创建 七牛云与容联云

深度学习框架pytorch快速开发与实战chapter3
随机推荐
第六单元 初识ORM
Minio文件上传
云片网案例
【ROS】工控机的软件包不编译
hsql是什么_MQL语言
idea社区版下载安装教程_安装天然气管道的流程
How does Apache, the world's largest open source foundation, work?
ping命令的使用及代码_通过命令查看ping路径
[ROS]ROS常用工具介绍(待续)
RHCE第一天作业
EasyExcel 的使用
[ROS](03)CMakeLists.txt详解
Gstreamer Plugin注册流程详解
shell脚本“画画”
IDEA打包jar包
xshell连接虚拟机步骤_建立主机与vm虚拟机的网络连接
window10下半自动标注
数据机构---第六章图---图的遍历---选择题
Sentinel源码(四)(滑动窗口流量统计)
drf源码分析与全局捕获异常