Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
fishros committed Sep 8, 2024
1 parent c268477 commit 2e9bc07
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/tool_config_rosdep.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ def __init__(self):

def install_rosdepc(self):
CmdTask("sudo apt install python3-pip -y", 0).run()
CmdTask("sudo pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple rosdepc", 0).run()
cmd_ret = CmdTask("sudo pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple rosdepc").run()
if cmd_ret[0]!=0:
# fix: https://fishros.org.cn/forum/topic/2981
cmd_ret = CmdTask("sudo pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple rosdepc --break-system-packages").run()
CmdTask("sudo rosdepc init", 0).run()
CmdTask("sudo rosdepc fix-permissions", 0).run()
PrintUtils.print_info('已为您安装好rosdepc,请使用:\nrosdepc update \n进行测试更新,最后欢迎关注微信公众号《鱼香ROS》')
Expand Down

0 comments on commit 2e9bc07

Please sign in to comment.