chvmp / champ

MIT Cheetah I Implementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installing Dependencies Error

abdksyed opened this issue · comments

Hi, (Noob Here)
I am very new to ROS and Robotics in general. I was trying to clone and install all dependencies on my ubuntu 18.04.5(on virtual box), using following commands

sudo apt install -y python-rosdep
cd <your_ws>/src
git clone --recursive https://github.com/chvmp/champ
git clone https://github.com/chvmp/champ_teleop
cd ..
rosdep install --from-paths src --ignore-src -r -y

I created a folder and cloned, and inside my folder, trying to run

rosdep install --from-paths src --ignore-src -r -y

But it's giving me an error:

ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies (ROS distro is not set. Make sure `ROS_DISTRO` environment
variable is set, or use `--rosdistro` option to specify the distro, e.g. `--rosdistro indigo`):

image
I even tried,

rosdep install --from-paths src --ignore-src --rosdistro melodic -r -y

But it isn't working. Can you please help me out.

And sorry, if it is a very basic and stupid question.

Regards

Hi,

Can you try the following?
source /opt/ros/melodic/setup.bash
cd <your_catkin_ws>
source devel/setup.bash

Then continue with rosdep ...

Hi,
I tried running the source command,
But it's giving

bash: /opt/ros/melodic/setup.bash: No such file or directory

I also ran

sudo rosdep init
rosdep update

But same error even after updating.

Thanks for your reply, I check the link and opened the .bashrc and searched for the line

source /opt/ros/......

There is no such line.

My Ubuntu is a clean install which I did just now.

When installing, python-rosdep.
It's automatically giving

Note, selecting 'python-rosdep2' instead of 'python-rosdep'

Is this a problem?

can you please post what's the output when you run this command:
ls /opt/ros

ls: cannot access '/opt/ros': No such file or directory

Sorry, silly question. Have you installed ROS? http://wiki.ros.org/melodic/Installation/Ubuntu

I am a huge nooooooooooob.
I thought

sudo apt install -y python-rosdep

will install ros.

I am extremely sorry for all this questions and issues without installing ROS on the first hand.
I Will install it and repeat the process and update.
Thanks.

No worries. It happens. :) I'll close this for now. Feel free to open a new one if you have any more doubts.