ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

rosserial_arduino, unable to locate the package

asked 2018-09-16 01:22:58 -0500

Hamza Ali gravatar image

updated 2018-09-16 03:00:16 -0500

gvdhoorn gravatar image

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.

edit retag flag offensive close merge delete

Comments

For your first question: see #q303253.

gvdhoorn gravatar image gvdhoorn  ( 2018-09-16 03:01:50 -0500 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2018-09-16 03:04:18 -0500

gvdhoorn gravatar image
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.

edit flag offensive delete link more

Comments

i also tried this command it show me no such file or directory...

source <my catkin_workspace>/devel/setup.bash
Hamza Ali gravatar image Hamza Ali  ( 2018-09-17 05:18:04 -0500 )edit

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.

gvdhoorn gravatar image gvdhoorn  ( 2018-09-17 05:19:40 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2018-09-16 01:22:58 -0500

Seen: 1,953 times

Last updated: Sep 16 '18