Arduino IDE setup
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.
Have you setup the ROS environment variables correctly when you installed ROS? What is the output of:
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?
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