在bashrc下添加ORB_SLAM2的工作路径
时间: 2023-12-11 13:02:35 浏览: 86
要在bashrc下添加ORB_SLAM2的工作路径,你可以按照以下步骤进行操作:
1. 打开终端并输入以下命令打开bashrc文件:
```
sudo gedit ~/.bashrc
```
2. 在打开的bashrc文件中,找到一个合适的位置,可以在文件的末尾添加以下行:
```
export ROS_PACKAGE_PATH=${ROS_PACKAGE_PATH}:/home/(用户名)/catkin_ws/ORB_SLAM2/Examples/ROS
```
注意,你需要将"(用户名)"替换为你的用户名,并确保路径正确。
3. 保存并关闭bashrc文件。
4. 在终端中运行以下命令以使更改生效:
```
source ~/.bashrc
```
现在,你已经成功在bashrc下添加了ORB_SLAM2的工作路径。
#### 引用[.reference_title]
- *1* [从零开始跑ORB_SLAM2(三) 使用Realsense D435相机跑ORB_SLAM2生成稀疏点阵](https://blog.csdn.net/weixin_41732319/article/details/102469604)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [[详细教程]ubuntu16.04安装ORB-SLAM与ORB-SLAM2](https://blog.csdn.net/weixin_45617478/article/details/110122851)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [ROS ORB_SLAM2报错: [rosbuild] rospack found package “ORB_SLAM2“ at “](https://blog.csdn.net/qq_41035283/article/details/119616822)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文