rosserial_arduino, unable to locate the package
I am currently using ubuntu 18.04 and ROS is melodic, I am using this on virtual box. I face two types of problems when I am going to make the libraries of Arduino.
1) These command won't work, I also tried by replacing the "indigo" with melodic as well.
sudo apt-get install ros-indigo-rosserial-arduino
sudo apt-get install ros-indigo-rosserial
Note: As this method is the recommended method.
2) when I tried the second method like:
cd <my catkin_workspace>/src
git clone https://github.com/ros-drivers/rosserial.git
cd <my catkin_workspace>
catkin_make
catkin_make install
cd <my sketchbook folder>/libraries
rm -rf ros_lib
rosrun rosserial_arduino make_libraries.py .
when I did this it shows me the error unable to locate rosserial_arduino.
Any advice would be highly appreciated.
Asked by Hamza Ali on 2018-09-16 01:22:58 UTC
Answers
cd <my catkin_workspace>/src git clone https://github.com/ros-drivers/rosserial.git cd <my catkin_workspace> catkin_make catkin_make install cd <my sketchbook folder>/libraries rm -rf ros_lib rosrun rosserial_arduino make_libraries.py .when I did this it shows me the error unable to locate
rosserial_arduino.
I don't see a source <my catkin_workspace>/devel/setup.bash in your list of commands.
Without that, your environment will not have been setup to look for packages in your workspace, leading to rosserial still not being found.
Note also: you are missing a crucial step: making sure you have all dependencies installed before you build.
See #q252478 for an example workflow that includes installing dependencies.
Asked by gvdhoorn on 2018-09-16 03:04:18 UTC
Comments
i also tried this command it show me no such file or directory...
source <my catkin_workspace>/devel/setup.bash
Asked by Hamza Ali on 2018-09-17 05:18:04 UTC
Just making sure: you did replace <my_catkin_workspace> with the actual path right?
In that case: please update your original question (use the edit button/link) with the exact command sequence you used. Right now we're guessing.
Asked by gvdhoorn on 2018-09-17 05:19:40 UTC
Comments
For your first question: see #q303253.
Asked by gvdhoorn on 2018-09-16 03:01:50 UTC