Code Monkey home page Code Monkey logo

Comments (13)

Tobias-Fischer avatar Tobias-Fischer commented on August 17, 2024 1

It's already patched in the conda-forge feedstock: https://github.com/conda-forge/rosdep-feedstock/blob/master/recipe/add-robostack.patch

So we just need to define ROS_ETC_DIR somewhere, similarly to https://github.com/ros/ros_environment/blob/noetic/env-hooks/1.ros_etc_dir.sh.em

from ros-galactic.

Tobias-Fischer avatar Tobias-Fischer commented on August 17, 2024 1

After rebuilding the workspace package that should be fixed

from ros-galactic.

traversaro avatar traversaro commented on August 17, 2024

Related to #7 .

fyi @Tobias-Fischer @gregfreeman

from ros-galactic.

traversaro avatar traversaro commented on August 17, 2024

Possibly a duplicate of #1 .

from ros-galactic.

traversaro avatar traversaro commented on August 17, 2024

I just tried after manually sourcing the environment via the commands described in #5 (comment) , but the issue persists. On Windows a file outside the environment is created, but it is not creating an error as apparently I have the permission to do so:

(ros2) C:\Users\STraversaro>rosdep init
Wrote /etc/ros\rosdep\sources.list.d\20-default.list
Recommended: please run

        rosdep update

from ros-galactic.

wolfv avatar wolfv commented on August 17, 2024

but the rosdep is essentially the same as for noetic, isn't it?

from ros-galactic.

nuclearsandwich avatar nuclearsandwich commented on August 17, 2024

ERROR: cannot create /etc/ros/rosdep/sources.list.d:
[Errno 13] Permission denied: '/etc/ros'

This looks like rosdep init is failing to run because it is trying to write to the root /etc/ros rather than a conda environment. As far as I know there is no way to avoid this without the changes proposed in ros-infrastructure/rosdep#583

How is that working for the noetic instructions?

from ros-galactic.

traversaro avatar traversaro commented on August 17, 2024

I guess it is somehow related to this patch: https://github.com/RoboStack/ros-noetic/blob/cbd8a2011de90923a154bca7533d0e1578269065/patch/ros-noetic-rosdep.patch . However, I tought rosdep is not package by robostack but in conda-forge, let me check that.

from ros-galactic.

traversaro avatar traversaro commented on August 17, 2024

Based on the rosdep patch in conda-forge, I guess we need to set ROS_ETC_DIR somehow, see https://github.com/conda-forge/rosdep-feedstock/blob/master/recipe/add-robostack.patch#L326 .

from ros-galactic.

traversaro avatar traversaro commented on August 17, 2024

At a first glance, it seems that in ROS1 ROS_ETC_DIR is defined in https://github.com/ros/ros_environment/blob/noetic/env-hooks/1.ros_etc_dir.sh.em, that then is copied in the correct location by https://github.com/RoboStack/ros-noetic/blob/6aee2cd0311ebe70219cd32bf85e67a313bb7e0d/additional_recipes/build_catkin.sh#L85 .

This is a related issue: ros/ros_environment#25 .

from ros-galactic.

traversaro avatar traversaro commented on August 17, 2024

Ok, it seems that the options are:

Do you see any other possible solution @Tobias-Fischer @nuclearsandwich ?

from ros-galactic.

Tobias-Fischer avatar Tobias-Fischer commented on August 17, 2024

Fix suggested in RoboStack/vinca#13

from ros-galactic.

Tobias-Fischer avatar Tobias-Fischer commented on August 17, 2024

Works fine

from ros-galactic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.