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

Revision history [back]

click to hide/show revision 1
initial version

Dear ROSnewbie11,

At this line: catkin_create_pkg serial_test01 std_msgs rospy roscpp rosserial You say that you want to create a new package serial_test01 that depends on these packages std_msgs rospy roscpp rosserial. Appearantly rosserial cannot be found. That is either because it is not installed, or because ROS cannot find it.

To install do: sudo apt-get install ros-hydro-rosserial if you are on ROS Hydro (or sudo apt-get install ros-groovy-rosserial for example. You can install it through apt-get, as it is an official package.

To make sure ROS finds it when it is installed, make sure to source both your installation as your workspace (make it part of your ~/.bashrc for convenience). So source /opt/ros/hydro/setup.bash and source ~/catkin_ws/devel/setup.bash.

To test, you could do roscd rosserial: you should get to the folder containing the rosserial package. This otherwise would have failed.

The other solution is to remove rosserial from the packages dependencies (catkin_create_pkg serial_test01 std_msgs rospy roscpp). Do you need it? It is not in the tutorial you link to? Also, you can easily manually add dependencies at a later stage by adding them to the CMakeLists.txt and package.xml files at the top level of your package.

Good luck!