Arduino IDE setup

asked 2018-10-09 03:02:01 -0500

Spyros gravatar image

I am running Ubuntu 16.04 and ROS kinetic. I am trying to do the complete the connection between ROS and Arduino using the Arduino IDE setup tutorial: http://wiki.ros.org/rosserial_arduino... I did the recommended installation process and when I run the command rosrun rosserial_arduino make_libraries.py . I get the following error:

Traceback (most recent call last): File "/opt/ros/kinetic/share/rosserial_arduino/make_libraries.py", line 45, in <module> import rospkg ImportError: No module named rospkg

I don't know what is going wrong. Any ideas would be appreciated.

edit retag flag offensive close merge delete

Comments

Have you setup the ROS environment variables correctly when you installed ROS? What is the output of:

printenv | grep ROS
PeteBlackerThe3rd gravatar image PeteBlackerThe3rd  ( 2018-10-09 03:14:24 -0500 )edit

Also has the line "source /opt/ros/kinetic/setup.bash" been added to your .bashrc file and have you re-run this script or started a new terminal window since modifying it?

PeteBlackerThe3rd gravatar image PeteBlackerThe3rd  ( 2018-10-09 03:16:17 -0500 )edit

after printenv | grep ROS: ROS_ROOT=/opt/ros/kinetic/share/ros ROS_PACKAGE_PATH=/opt/ros/kinetic/share ROS_MASTER_URI=http://localhost:11311 ROS_VERSION=1 ROSLISP_PACKAGE_DIRECTORIES= ROS_DISTRO=kinetic ROS_ETC_DIR=/opt/ros/kinetic/etc/ros and I sourced the ros environment when I opened the terminal

Spyros gravatar image Spyros  ( 2018-10-09 03:21:09 -0500 )edit