7 Star 1 Fork 1

Cloudriver / zzrobot_ws

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
BSD-3-Clause

项目说明

开发说明

根据自己的项目,大家创建一个文件夹"名称鲜明"地和共享的功能包区分开来的. 共享的功能包,如Aimooe,UR5等模块大家可以一起开发,自己的项目功能包自己维护.

创建一个工作空间,并且下载的代码

自动安装依赖

  • sudo apt install -y python3-pip
  • sudo pip3 install rosdepc
  • sudo rosdepc init
  • rosdepc update
  • cd ~/zzrobot_ws
  • rosdepc install -i --from-path src --rosdistro humble -y

编译工作空间, 需要安装colcon

  • sudo apt install python3-colcon-ros
  • cd ~/zzrobot_ws/
  • colcon build

设置环境变量

  • source ~/zzrobot_ws/install/local_setup.sh # 仅在当前终端生效
  • echo " source ~/zzrobot_ws/install/local_setup.sh" >> ~/.bashrc # 所有终端均生效(不建议)

为vscode设置环境变量

  • /zzrobot_ws/vscode_env.sh 该脚本将在/zzrobot_ws/.vscode/ros2.env生成PYTHONPATH环境变量,以便vscode导入 在settings.json添加: "python.envFile": "${workspaceFolder}/.vscode/ros2.env"

检查环境变量

  • echo $PYTHONPATH
  • echo $LD_LIBRARY_PATH

移除自己项目文件夹

  1. git rm -r --cached src/my_pkg
  2. 添加src/my_pkg到.gitignore
  3. 提交
BSD 3-Clause License Copyright (c) 2024, Cloudriver All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

简介

医疗机器人项目ROS2开发 展开 收起
BSD-3-Clause
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
C++
1
https://gitee.com/cloudriver0226/zzrobot_ws.git
git@gitee.com:cloudriver0226/zzrobot_ws.git
cloudriver0226
zzrobot_ws
zzrobot_ws
master

搜索帮助