chrisl8 / ArloBot

ROS Package for a Parallax ArloBot Robot
https://log.voidshipephemeral.space/Arlobot/ArloBot+Build+Index
MIT License
39 stars 27 forks source link

Error when running StartRobot.sh #5

Closed remarvel closed 9 years ago

remarvel commented 9 years ago

Hi Chis,

First, I can't thank you enough for putting all of this together! You've given all of us a huge jumpstart on creating our own arlobots.

I'm getting an error "Error: Cannot find module 'roslib'" when I try to run the StartRobot.sh script. image

I am running Ubuntu 14.04 and I just did a fresh install a couple of days ago. I used your install script to install ROS and your packages.

Any idea what I'm doing wrong?

chrisl8 commented 9 years ago

My first guess is some sort of problem with your environment, that is to say, with the list of variables the shell has for where to find things.

That should all be automatically set up by scripts that run every time you log in now. The most important one being ~/catkin_ws/devel/setup.bash, which tells the shell where to find ROS and all of the Arlobot packages.

Is the line 'source ~/catkin_ws/devel/setup.bash' in your ~/.bashrc file? It should have been put there by the setup.

What happens when you run 'roscd roslib'? If that command doesn't work, then the shell environment is certainly not right.

remarvel commented 9 years ago

I apologize in advance if I'm missing something obvious. I should note that I am new to Linux and ROS so this issue is probably something I am doing wrong.

I decided to just start over with a fresh install of Lubuntu then I ran your script to install everything again.

When I double-click on the ArloBot icon on the desktop it brings up a terminal window and then brings up Firefox and I get an error in Firefox "unable to connect"

Then when I just open a new terminal and run the StartRobot.sh I am still getting the same error.

I'm sure that you're right about it being my environment, but being new to both linux and ROS I'm not sure what I'm doing wrong.

Here's a screenshot of what I get when I run StartRobot.sh and then roscd roslib:

image

Thanks again for not only taking the time to put this together, but also to help newbs like me!

chrisl8 commented 9 years ago

I'm glad that you reinstalled, because I fixed a lot of issues. I see I still have an issue though.

Would it be possible for you to run the install script again? You do NOT have to rebuild or anything, you can just run the install again right over the old install, it will just update/fix it. I run it over and over. Here is the command again:

bash <(wget -qO- --no-cache https://raw.githubusercontent.com/chrisl8/ArloBot/master/setup.sh)

and send me all of the output? You should be able to copy and paste it from the terminal session. Just use your mouse to select it, and right click to get the menu to "Copy"

I would like to see what the output is to see if it shows why it isn't installing all of the packages.

After you do that, what might fix the issue is to run these commands:

cd ~/catkin_ws/src/Metatron/node/
npm install

If you do run those commands, please send me the output if there is any,

remarvel commented 9 years ago

Ok, here is the output from running the install script again:

harvy@HarvyBot:~$ bash <(wget -qO- --no-cache https://raw.githubusercontent.com/chrisl8/ArloBot/master/setup.sh)

SETTING UP ROBOT OPERATING SYSTEM FOR YOUR ARLOBOT!

You will be asked for your password for running commands as root!

[Checking the Ubuntu version] Ubuntu trusty found

[Updating & upgrading all existing Ubuntu packages] [sudo] password for harvy: Ign http://security.ubuntu.com trusty-security InRelease Ign http://us.archive.ubuntu.com trusty InRelease
Hit http://security.ubuntu.com trusty-security Release.gpg
Hit http://packages.ros.org trusty InRelease
Ign http://us.archive.ubuntu.com trusty-updates InRelease
Hit http://security.ubuntu.com trusty-security Release
Ign http://us.archive.ubuntu.com trusty-backports InRelease
Ign http://ppa.launchpad.net trusty InRelease
Hit http://us.archive.ubuntu.com trusty Release.gpg
Ign http://extras.ubuntu.com trusty InRelease
Get:1 http://us.archive.ubuntu.com trusty-updates Release.gpg [933 B]
Hit http://packages.ros.org trusty/main amd64 Packages
Hit http://security.ubuntu.com trusty-security/main Sources
Hit http://us.archive.ubuntu.com trusty-backports Release.gpg
Hit http://ppa.launchpad.net trusty Release.gpg
Hit http://packages.ros.org trusty/main i386 Packages
Hit http://security.ubuntu.com trusty-security/restricted Sources
Hit http://extras.ubuntu.com trusty Release.gpg
Hit http://us.archive.ubuntu.com trusty Release
Hit http://security.ubuntu.com trusty-security/universe Sources
Get:2 http://us.archive.ubuntu.com trusty-updates Release [63.5 kB]
Hit http://security.ubuntu.com trusty-security/multiverse Sources
Hit http://ppa.launchpad.net trusty Release
Hit http://extras.ubuntu.com trusty Release
Hit http://security.ubuntu.com trusty-security/main amd64 Packages
Hit http://us.archive.ubuntu.com trusty-backports Release
Hit http://security.ubuntu.com trusty-security/restricted amd64 Packages
Hit http://us.archive.ubuntu.com trusty/main Sources
Hit http://security.ubuntu.com trusty-security/universe amd64 Packages
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Hit http://security.ubuntu.com trusty-security/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com trusty/restricted Sources
Hit http://extras.ubuntu.com trusty/main Sources
Hit http://security.ubuntu.com trusty-security/main i386 Packages
Hit http://us.archive.ubuntu.com trusty/universe Sources
Hit http://security.ubuntu.com trusty-security/restricted i386 Packages
Hit http://us.archive.ubuntu.com trusty/multiverse Sources
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit http://extras.ubuntu.com trusty/main amd64 Packages
Hit http://security.ubuntu.com trusty-security/universe i386 Packages
Hit http://us.archive.ubuntu.com trusty/main amd64 Packages
Ign http://packages.ros.org trusty/main Translation-en_US
Hit http://security.ubuntu.com trusty-security/multiverse i386 Packages
Hit http://us.archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://us.archive.ubuntu.com trusty/universe amd64 Packages
Hit http://security.ubuntu.com trusty-security/main Translation-en
Ign http://packages.ros.org trusty/main Translation-en
Hit http://ppa.launchpad.net trusty/main Translation-en
Hit http://extras.ubuntu.com trusty/main i386 Packages
Hit http://security.ubuntu.com trusty-security/multiverse Translation-en
Hit http://us.archive.ubuntu.com trusty/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com trusty/main i386 Packages
Hit http://security.ubuntu.com trusty-security/restricted Translation-en
Hit http://us.archive.ubuntu.com trusty/restricted i386 Packages
Hit http://security.ubuntu.com trusty-security/universe Translation-en
Hit http://us.archive.ubuntu.com trusty/universe i386 Packages
Hit http://us.archive.ubuntu.com trusty/multiverse i386 Packages
Hit http://us.archive.ubuntu.com trusty/main Translation-en
Hit http://us.archive.ubuntu.com trusty/multiverse Translation-en Hit http://us.archive.ubuntu.com trusty/restricted Translation-en Hit http://us.archive.ubuntu.com trusty/universe Translation-en
Get:3 http://us.archive.ubuntu.com trusty-updates/main Sources [237 kB] Get:4 http://us.archive.ubuntu.com trusty-updates/restricted Sources [4,722 B] Get:5 http://us.archive.ubuntu.com trusty-updates/universe Sources [139 kB]
Get:6 http://us.archive.ubuntu.com trusty-updates/multiverse Sources [5,144 B] Get:7 http://us.archive.ubuntu.com trusty-updates/main amd64 Packages [627 kB] Ign http://extras.ubuntu.com trusty/main Translation-en_US
Get:8 http://us.archive.ubuntu.com trusty-updates/restricted amd64 Packages [15.4 kB] Ign http://extras.ubuntu.com trusty/main Translation-en
Get:9 http://us.archive.ubuntu.com trusty-updates/universe amd64 Packages [320 kB] Get:10 http://us.archive.ubuntu.com trusty-updates/multiverse amd64 Packages [11.9 kB] Get:11 http://us.archive.ubuntu.com trusty-updates/main i386 Packages [608 kB] Get:12 http://us.archive.ubuntu.com trusty-updates/restricted i386 Packages [15.1 kB] Get:13 http://us.archive.ubuntu.com trusty-updates/universe i386 Packages [320 kB] Get:14 http://us.archive.ubuntu.com trusty-updates/multiverse i386 Packages [12.1 kB] Hit http://us.archive.ubuntu.com trusty-updates/main Translation-en
Hit http://us.archive.ubuntu.com trusty-updates/multiverse Translation-en Hit http://us.archive.ubuntu.com trusty-updates/restricted Translation-en Hit http://us.archive.ubuntu.com trusty-updates/universe Translation-en Hit http://us.archive.ubuntu.com trusty-backports/main Sources
Hit http://us.archive.ubuntu.com trusty-backports/restricted Sources
Hit http://us.archive.ubuntu.com trusty-backports/universe Sources
Hit http://us.archive.ubuntu.com trusty-backports/multiverse Sources
Hit http://us.archive.ubuntu.com trusty-backports/main amd64 Packages Hit http://us.archive.ubuntu.com trusty-backports/restricted amd64 Packages Hit http://us.archive.ubuntu.com trusty-backports/universe amd64 Packages Hit http://us.archive.ubuntu.com trusty-backports/multiverse amd64 Packages Hit http://us.archive.ubuntu.com trusty-backports/main i386 Packages Hit http://us.archive.ubuntu.com trusty-backports/restricted i386 Packages Hit http://us.archive.ubuntu.com trusty-backports/universe i386 Packages Hit http://us.archive.ubuntu.com trusty-backports/multiverse i386 Packages Hit http://us.archive.ubuntu.com trusty-backports/main Translation-en Hit http://us.archive.ubuntu.com trusty-backports/multiverse Translation-en Hit http://us.archive.ubuntu.com trusty-backports/restricted Translation-en Hit http://us.archive.ubuntu.com trusty-backports/universe Translation-en Ign http://us.archive.ubuntu.com trusty/main Translation-en_US Ign http://us.archive.ubuntu.com trusty/multiverse Translation-en_US Ign http://us.archive.ubuntu.com trusty/restricted Translation-en_US Ign http://us.archive.ubuntu.com trusty/universe Translation-en_US Fetched 2,380 kB in 5s (401 kB/s) Reading package lists... Done Reading package lists... Done Building dependency tree
Reading state information... Done Calculating upgrade... Done The following packages were automatically installed and are no longer required: gstreamer1.0-plugins-bad-faad gstreamer1.0-plugins-bad-videoparsers libchromaprint0 libgstreamer-plugins-bad1.0-0 libsbc1 libsrtp0 Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

[Installing additional Ubuntu and ROS Packages for Arlo] This runs every time, in case new packages were added. Reading package lists... Done Building dependency tree
Reading state information... Done Note, selecting 'ros-indigo-rqt' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-rqt-logger-level' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-rqt-dep' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-rqt-runtime-monitor' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-rqt-pose-view' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-rqt-service-caller' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-rqt-top' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-rqt-py-console' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-rqt-action' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-rqt-graph' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-rqt-web' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-rqt-image-view' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-rqt-py-common' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-rqt-srv' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-rqt-graphprofiler' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-rqt-bag' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-rqt-rviz' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-rqt-reconfigure' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-rqt-bag-plugins' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-rqt-robot-dashboard' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-rqt-launch' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-rqt-msg' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-rqt-nav-view' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-rqt-bhand' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-rqt-capabilities' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-rqt-moveit' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-rqt-shell' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-rqt-ez-publisher' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-rqt-gui-cpp' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-rqt-publisher' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-rqt-robot-monitor' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-rqt-robot-steering' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-rqt-plot' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-rqt-topic' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-rqt-common-plugins' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-rqt-gui' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-rqt-controller-manager' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-rqt-tf-tree' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-rqt-joint-trajectory-controller' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-rqt-robot-plugins' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-rqt-console' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-rqt-gui-py' for regex 'ros-indigo-rqt-' Note, selecting 'ros-indigo-openni2-camera' for regex 'ros-indigo-openni-' Note, selecting 'ros-indigo-openni-camera' for regex 'ros-indigo-openni-' Note, selecting 'ros-indigo-openni2-launch' for regex 'ros-indigo-openni-' Note, selecting 'ros-indigo-openni-launch' for regex 'ros-indigo-openni-' Note, selecting 'ros-indigo-openni2-camera' for regex 'ros-indigo-openni2-' Note, selecting 'ros-indigo-openni2-launch' for regex 'ros-indigo-openni2-' Note, selecting 'ros-indigo-freenect-camera' for regex 'ros-indigo-freenect-' Note, selecting 'ros-indigo-freenect-launch' for regex 'ros-indigo-freenect-' Note, selecting 'ros-indigo-freenect-stack' for regex 'ros-indigo-freenect-*' expect-dev is already the newest version. imagemagick is already the newest version. libftdi1 is already the newest version. libftdi1 set to manually installed. libv4l-dev is already the newest version. python-serial is already the newest version. festival is already the newest version. fswebcam is already the newest version. jq is already the newest version. libopencv-dev is already the newest version. python-ftdi is already the newest version. python-opencv is already the newest version. zbar-tools is already the newest version. festvox-en1 is already the newest version. curl is already the newest version. openssh-server is already the newest version. libav-tools is already the newest version. python-pip is already the newest version. tlp is already the newest version. tlp-rdw is already the newest version. ros-indigo-freenect-camera is already the newest version. ros-indigo-freenect-launch is already the newest version. ros-indigo-freenect-stack is already the newest version. ros-indigo-kobuki-ftdi is already the newest version. ros-indigo-openni-camera is already the newest version. ros-indigo-openni-launch is already the newest version. ros-indigo-openni2-camera is already the newest version. ros-indigo-openni2-launch is already the newest version. ros-indigo-rosbridge-server is already the newest version. ros-indigo-rqt is already the newest version. ros-indigo-rqt-action is already the newest version. ros-indigo-rqt-bag is already the newest version. ros-indigo-rqt-bag-plugins is already the newest version. ros-indigo-rqt-bhand is already the newest version. ros-indigo-rqt-capabilities is already the newest version. ros-indigo-rqt-common-plugins is already the newest version. ros-indigo-rqt-console is already the newest version. ros-indigo-rqt-controller-manager is already the newest version. ros-indigo-rqt-dep is already the newest version. ros-indigo-rqt-ez-publisher is already the newest version. ros-indigo-rqt-graph is already the newest version. ros-indigo-rqt-graphprofiler is already the newest version. ros-indigo-rqt-gui is already the newest version. ros-indigo-rqt-gui-cpp is already the newest version. ros-indigo-rqt-gui-py is already the newest version. ros-indigo-rqt-image-view is already the newest version. ros-indigo-rqt-joint-trajectory-controller is already the newest version. ros-indigo-rqt-launch is already the newest version. ros-indigo-rqt-logger-level is already the newest version. ros-indigo-rqt-moveit is already the newest version. ros-indigo-rqt-msg is already the newest version. ros-indigo-rqt-nav-view is already the newest version. ros-indigo-rqt-plot is already the newest version. ros-indigo-rqt-pose-view is already the newest version. ros-indigo-rqt-publisher is already the newest version. ros-indigo-rqt-py-common is already the newest version. ros-indigo-rqt-py-console is already the newest version. ros-indigo-rqt-reconfigure is already the newest version. ros-indigo-rqt-robot-dashboard is already the newest version. ros-indigo-rqt-robot-monitor is already the newest version. ros-indigo-rqt-robot-plugins is already the newest version. ros-indigo-rqt-robot-steering is already the newest version. ros-indigo-rqt-runtime-monitor is already the newest version. ros-indigo-rqt-rviz is already the newest version. ros-indigo-rqt-service-caller is already the newest version. ros-indigo-rqt-shell is already the newest version. ros-indigo-rqt-srv is already the newest version. ros-indigo-rqt-tf-tree is already the newest version. ros-indigo-rqt-top is already the newest version. ros-indigo-rqt-topic is already the newest version. ros-indigo-rqt-web is already the newest version. ros-indigo-turtlebot is already the newest version. ros-indigo-turtlebot-apps is already the newest version. ros-indigo-turtlebot-interactions is already the newest version. ros-indigo-turtlebot-simulator is already the newest version. ros-indigo-vision-opencv is already the newest version. The following packages were automatically installed and are no longer required: gstreamer1.0-plugins-bad-faad gstreamer1.0-plugins-bad-videoparsers libchromaprint0 libgstreamer-plugins-bad1.0-0 libsbc1 libsrtp0 Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Requirement already satisfied (use --upgrade to upgrade): pylibftdi in /usr/local/lib/python2.7/dist-packages Cleaning up...

[Cloning or Updating git repositories] Already up-to-date. Already up-to-date. remote: Counting objects: 13, done. remote: Compressing objects: 100% (4/4), done. Unpacking objects: 100% (13/13), done. remote: Total 13 (delta 9), reused 12 (delta 8), pack-reused 0 From https://github.com/chrisl8/ArloBot cde6b2a..fba8600 master -> origin/master Updating cde6b2a..fba8600 Fast-forward Propeller C Code for ArloBot/README.md | 12 ++---------- README.md | 13 +------------ setup.sh | 3 ++- src/arlobot/arlobot_safety/scripts/arlobot_safety.py | 5 ++++- 4 files changed, 9 insertions(+), 24 deletions(-) remote: Counting objects: 9, done. remote: Compressing objects: 100% (3/3), done. remote: Total 9 (delta 7), reused 8 (delta 6), pack-reused 0 Unpacking objects: 100% (9/9), done. From https://github.com/chrisl8/Metatron d79416e..0b7e39c master -> origin/master Updating d79416e..0b7e39c Fast-forward node/index.js | 5 +++-- node/webModel.js | 3 ++- scripts/setup.sh | 32 ++++++++++++++++++++++++-------- 3 files changed, 29 insertions(+), 11 deletions(-) Already up-to-date. Already up-to-date. Already up-to-date.

[(Re)Building ROS Source files.] Base path: /home/harvy/catkin_ws Source space: /home/harvy/catkin_ws/src Build space: /home/harvy/catkin_ws/build Devel space: /home/harvy/catkin_ws/devel Install space: /home/harvy/catkin_ws/install

Running command: "make cmake_check_build_system" in "/home/harvy/catkin_ws/build"

Running command: "make -j4 -l4" in "/home/harvy/catkin_ws/build"

[ 0%] [ 0%] Built target std_msgs_generate_messages_lisp Built target geometry_msgs_generate_messages_lisp [ 0%] [ 0%] Built target std_msgs_generate_messages_py Built target geometry_msgs_generate_messages_py [ 0%] Built target std_msgs_generate_messages_cpp [ 0%] Built target geometry_msgs_generate_messages_cpp [ 0%] Built target _hector_elevation_msgs_generate_messages_check_deps_ElevationGrid [ 0%] Built target _hector_elevation_msgs_generate_messages_check_deps_ElevationMapMetaData [ 0%] Built target nav_msgs_generate_messages_lisp [ 0%] [ 0%] Built target _hector_nav_msgs_generate_messages_check_deps_GetDistanceToObstacle Built target _hector_nav_msgs_generate_messages_check_deps_GetRecoveryInfo [ 0%] Built target _hector_nav_msgs_generate_messages_check_deps_GetNormal [ 0%] [ 0%] Built target nav_msgs_generate_messages_cpp Built target _hector_nav_msgs_generate_messages_check_deps_GetRobotTrajectory [ 0%] Built target nav_msgs_generate_messages_py [ 0%] Built target _hector_nav_msgs_generate_messages_check_deps_GetSearchPosition [ 0%] Built target _arlobot_msgs_generate_messages_check_deps_FindRelay [ 0%] Built target _arlobot_msgs_generate_messages_check_deps_UnPlug [ 0%] Built target _arlobot_msgs_generate_messages_check_deps_go_to_goal [ 0%] Built target _arlobot_msgs_generate_messages_check_deps_arloStatus [ 0%] Built target _arlobot_msgs_generate_messages_check_deps_usbRelayStatus [ 0%] Built target _arlobot_msgs_generate_messages_check_deps_ToggleRelay [ 0%] Built target _arlobot_msgs_generate_messages_check_deps_arloSafety [ 0%] Built target roscpp_generate_messages_cpp [ 0%] Built target _arlobot_msgs_generate_messages_check_deps_pause_explorer [ 0%] Built target roscpp_generate_messages_py [ 1%] [ 1%] Built target hector_driving_aid_markers_node Built target roscpp_generate_messages_lisp [ 1%] Built target rosgraph_msgs_generate_messages_py [ 1%] Built target rosgraph_msgs_generate_messages_cpp [ 1%] Built target actionlib_msgs_generate_messages_py [ 1%] Built target rosgraph_msgs_generate_messages_lisp [ 1%] Built target actionlib_msgs_generate_messages_lisp [ 1%] Built target actionlib_msgs_generate_messages_cpp [ 1%] Built target _metatron_services_generate_messages_check_deps_WakeScreen [ 1%] Built target _metatron_services_generate_messages_check_deps_ToggleArloMinimal [ 1%] Built target _metatron_services_generate_messages_check_deps_AddTwoInts [ 1%] Built target _metatron_services_generate_messages_check_deps_SpeakText [ 1%] Built target _metatron_services_generate_messages_check_deps_SetMap [ 1%] Built target _metatron_services_generate_messages_check_deps_ToggleCamera [ 1%] Built target _metatron_services_generate_messages_check_deps_metatron_status [ 2%] Built target hector_elevation_visualization_gencfg [ 2%] Built target tf2_msgs_generate_messages_py [ 4%] [ 4%] Built target imu_attitude_to_tf_node Built target pose_and_orientation_to_imu_node [ 4%] [ 4%] Built target visualization_msgs_generate_messages_lisp Built target visualization_msgs_generate_messages_py [ 4%] Built target visualization_msgs_generate_messages_cpp [ 5%] Built target map_to_image_node [ 5%] [ 5%] Built target sensor_msgs_generate_messages_cpp Built target sensor_msgs_generate_messages_lisp [ 5%] Built target sensor_msgs_generate_messages_py [ 5%] [ 5%] Built target tf2_msgs_generate_messages_cpp Built target actionlib_generate_messages_cpp [ 5%] [ 5%] Built target actionlib_generate_messages_py Built target actionlib_generate_messages_lisp [ 5%] [ 5%] Built target tf_generate_messages_lisp Built target tf_generate_messages_cpp [ 5%] [ 5%] Built target tf_generate_messages_py Built target tf2_msgs_generate_messages_lisp [ 5%] [ 5%] Built target hector_path_follower Built target hector_costmap_gencfg [ 7%] Built target hector_path_follower_node [ 9%] Built target rbx1_nav_gencfg [ 9%] Built target hector_exploration_planner_gencfg [ 10%] Built target usb_cam [ 10%] [ 10%] Built target _hector_mapping_generate_messages_check_deps_HectorIterData Built target _hector_mapping_generate_messages_check_deps_HectorDebugInfo [ 11%] Built target neato_laser_publisher [ 15%] [ 15%] Built target hector_elevation_msgs_generate_messages_cpp Built target hector_elevation_msgs_generate_messages_lisp [ 17%] Built target hector_elevation_msgs_generate_messages_py [ 23%] Built target hector_nav_msgs_generate_messages_py [ 31%] [ 31%] Built target hector_nav_msgs_generate_messages_lisp Built target hector_nav_msgs_generate_messages_cpp [ 40%] Built target arlobot_msgs_generate_messages_py [ 47%] Built target arlobot_msgs_generate_messages_cpp [ 55%] [ 63%] Built target arlobot_msgs_generate_messages_lisp Built target metatron_services_generate_messages_py [ 69%] Built target metatron_services_generate_messages_cpp [ 75%] Built target metatron_services_generate_messages_lisp [ 76%] Built target simple_exploration_controller [ 78%] [ 79%] Built target hector_map_server Built target hector_elevation_visualization_node [ 80%] Built target hector_trajectory_server [ 81%] Built target ElevationMappingNode [ 83%] Built target hector_mapping_generate_messages_cpp [ 86%] [ 87%] Built target hector_mapping_generate_messages_lisp Built target hector_mapping_generate_messages_py [ 87%] Built target ElevationMapping [ 88%] Built target usb_cam_node [ 90%] Built target hector_costmap [ 90%] Built target hector_elevation_msgs_generate_messages [ 91%] Built target hector_exploration_planner [ 91%] [ 91%] Built target hector_nav_msgs_generate_messages Built target arlobot_msgs_generate_messages [ 91%] Built target metatron_services_generate_messages [ 91%] Built target hector_mapping_generate_messages [ 92%] Built target hector_exploration_base_global_planner_plugin [ 95%] Built target hector_mapping [ 96%] Built target geotiff_writer [ 97%] Built target exploration_planner_node [ 98%] Built target geotiff_saver [100%] Built target hector_geotiff_plugins [100%] Built target geotiff_node Full tree crawl took 0.093340 seconds. Directories marked with (*) contain no manifest. You may want to delete these directories. To get just of list of directories without manifests,

re-run the profile with --zombie-only

0.059523 /home/harvy/catkin_ws/src 0.053228 /home/harvy/catkin_ws/src/Metatron 0.049460 * /home/harvy/catkin_ws/src/Metatron/node 0.047756 * /home/harvy/catkin_ws/src/Metatron/node/node_modules 0.033050 /opt/ros/indigo/share 0.010861 * /home/harvy/catkin_ws/src/Metatron/node/node_modules/socket.io 0.010772 * /home/harvy/catkin_ws/src/Metatron/node/node_modules/socket.io/node_modules 0.007127 * /home/harvy/catkin_ws/src/Metatron/node/node_modules/twilio 0.006930 * /home/harvy/catkin_ws/src/Metatron/node/node_modules/say 0.006838 * /home/harvy/catkin_ws/src/Metatron/node/node_modules/say/node_modules 0.006745 * /home/harvy/catkin_ws/src/Metatron/node/node_modules/say/node_modules/translate 0.006629 * /home/harvy/catkin_ws/src/Metatron/node/node_modules/twilio/node_modules 0.006610 * /home/harvy/catkin_ws/src/Metatron/node/node_modules/say/node_modules/translate/node_modules 0.006547 * /home/harvy/catkin_ws/src/Metatron/node/node_modules/say/node_modules/translate/node_modules/request 0.006384 * /home/harvy/catkin_ws/src/Metatron/node/node_modules/say/node_modules/translate/node_modules/request/node_modules 0.006023 * /home/harvy/catkin_ws/src/Metatron/node/node_modules/twilio/node_modules/request 0.005845 * /home/harvy/catkin_ws/src/Metatron/node/node_modules/twilio/node_modules/request/node_modules 0.005435 * /home/harvy/catkin_ws/src/Metatron/node/node_modules/socket.io/node_modules/socket.io-client 0.005332 * /home/harvy/catkin_ws/src/Metatron/node/node_modules/socket.io/node_modules/socket.io-client/node_modules 0.004625 * /home/harvy/catkin_ws/src/Metatron/node/node_modules/chokidar

[Setting the ROS environment in your .bashrc file]

[Setting up the Metatron Package.]

[Installing/Updating Node Version Manager] Deactivating existing Node Version Manager: Could not find /home/harvy/.nvm//bin in $PATH Could not find /home/harvy/.nvm//share/man in $MANPATH => nvm is already installed in /home/harvy/.nvm, trying to update using git => => Source string already in /home/harvy/.bashrc => Close and reopen your terminal to start using nvm

[Initializing the required Node version] This is the version I'm developing with now, so stick with it. v0.12.7 is already installed. Now using node v0.12.7 (npm v2.11.3)

[Grabbing dependencies for node packages] /

roslib@0.17.0 preinstall /home/harvy/catkin_ws/src/Metatron/node/node_modules/roslib sh misc/check.sh

libcairo2 dev files found.

ws@0.4.32 install /home/harvy/catkin_ws/src/Metatron/node/node_modules/roslib/node_modules/ws (node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory /home/harvy/catkin_ws/src/Metatron/node/node_modules/roslib/node_modules/ws/build' CXX(target) Release/obj.target/bufferutil/src/bufferutil.o SOLINK_MODULE(target) Release/obj.target/bufferutil.node COPY Release/bufferutil.node CXX(target) Release/obj.target/validation/src/validation.o SOLINK_MODULE(target) Release/obj.target/validation.node COPY Release/validation.node make: Leaving directory/home/harvy/catkin_ws/src/Metatron/node/node_modules/roslib/node_modules/ws/build'

canvas@1.2.9 install /home/harvy/catkin_ws/src/Metatron/node/node_modules/roslib/node_modules/canvas node-gyp rebuild

make: Entering directory `/home/harvy/catkin_ws/src/Metatron/node/node_modules/roslib/node_modules/canvas/build' SOLINK_MODULE(target) Release/obj.target/canvas-postbuild.node COPY Release/canvas-postbuild.node CXX(target) Release/obj.target/canvas/src/Canvas.o CXX(target) Release/obj.target/canvas/src/CanvasGradient.o CXX(target) Release/obj.target/canvas/src/CanvasPattern.o In file included from ../src/CanvasPattern.cc:9:0: ../src/Image.h:19:21: fatal error: gif_lib.h: No such file or directory

include

                 ^

compilation terminated. make: *** [Release/obj.target/canvas/src/CanvasPattern.o] Error 1 make: Leaving directory/home/harvy/catkin_ws/src/Metatron/node/node_modules/roslib/node_modules/canvas/build' gyp ERR! build error gyp ERR! stack Error:make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/home/harvy/.nvm/versions/node/v0.12.7/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23) gyp ERR! stack at ChildProcess.emit (events.js:110:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12) gyp ERR! System Linux 3.19.0-30-generic gyp ERR! command "node" "/home/harvy/.nvm/versions/node/v0.12.7/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/harvy/catkin_ws/src/Metatron/node/node_modules/roslib/node_modules/canvas gyp ERR! node -v v0.12.7 gyp ERR! node-gyp -v v2.0.1 gyp ERR! not ok npm ERR! Linux 3.19.0-30-generic npm ERR! argv "/home/harvy/.nvm/versions/node/v0.12.7/bin/node" "/home/harvy/.nvm/versions/node/v0.12.7/bin/npm" "install" npm ERR! node v0.12.7 npm ERR! npm v2.11.3 npm ERR! code ELIFECYCLE

npm ERR! canvas@1.2.9 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the canvas@1.2.9 install script 'node-gyp rebuild'. npm ERR! This is most likely a problem with the canvas package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get their info via: npm ERR! npm owner ls canvas npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /home/harvy/catkin_ws/src/Metatron/node/npm-debug.log

roslib@0.17.0 preinstall /home/harvy/catkin_ws/src/Metatron/node/node_modules/roslib sh misc/check.sh

libcairo2 dev files found.

canvas@1.2.9 install /home/harvy/catkin_ws/src/Metatron/node/node_modules/roslib/node_modules/canvas node-gyp rebuild

make: Entering directory `/home/harvy/catkin_ws/src/Metatron/node/node_modules/roslib/node_modules/canvas/build' SOLINK_MODULE(target) Release/obj.target/canvas-postbuild.node COPY Release/canvas-postbuild.node CXX(target) Release/obj.target/canvas/src/Canvas.o CXX(target) Release/obj.target/canvas/src/CanvasGradient.o CXX(target) Release/obj.target/canvas/src/CanvasPattern.o In file included from ../src/CanvasPattern.cc:9:0: ../src/Image.h:19:21: fatal error: gif_lib.h: No such file or directory

include

                 ^

compilation terminated. make: *** [Release/obj.target/canvas/src/CanvasPattern.o] Error 1 make: Leaving directory/home/harvy/catkin_ws/src/Metatron/node/node_modules/roslib/node_modules/canvas/build' gyp ERR! build error gyp ERR! stack Error:make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/home/harvy/.nvm/versions/node/v0.12.7/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23) gyp ERR! stack at ChildProcess.emit (events.js:110:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12) gyp ERR! System Linux 3.19.0-30-generic gyp ERR! command "node" "/home/harvy/.nvm/versions/node/v0.12.7/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/harvy/catkin_ws/src/Metatron/node/node_modules/roslib/node_modules/canvas gyp ERR! node -v v0.12.7 gyp ERR! node-gyp -v v2.0.1 gyp ERR! not ok

ws@0.4.32 install /home/harvy/catkin_ws/src/Metatron/node/node_modules/roslib/node_modules/ws (node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory /home/harvy/catkin_ws/src/Metatron/node/node_modules/roslib/node_modules/ws/build' CXX(target) Release/obj.target/bufferutil/src/bufferutil.o SOLINK_MODULE(target) Release/obj.target/bufferutil.node COPY Release/bufferutil.node CXX(target) Release/obj.target/validation/src/validation.o SOLINK_MODULE(target) Release/obj.target/validation.node COPY Release/validation.node make: Leaving directory/home/harvy/catkin_ws/src/Metatron/node/node_modules/roslib/node_modules/ws/build' npm ERR! Linux 3.19.0-30-generic npm ERR! argv "/home/harvy/.nvm/versions/node/v0.12.7/bin/node" "/home/harvy/.nvm/versions/node/v0.12.7/bin/npm" "update" npm ERR! node v0.12.7 npm ERR! npm v2.11.3 npm ERR! code ELIFECYCLE

npm ERR! canvas@1.2.9 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the canvas@1.2.9 install script 'node-gyp rebuild'. npm ERR! This is most likely a problem with the canvas package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get their info via: npm ERR! npm owner ls canvas npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /home/harvy/catkin_ws/src/Metatron/node/npm-debug.log

[Updating lcars CSS Framework repo] Already up-to-date.

Anytime you want to update ArloBot code from the web you can run this same script again. It will pull down and compile new code without wiping out custom configs in ~/.arlarbot. I run this script myself almost every day.


ALL DONE! REBOOT AND START TESTING! I have a list of tests here: cat /home/harvy/catkin_ws/src/ArloBot/manualTests.txt Look at README.md for testing ideas. See here for your next step: http://ekpyroticfrood.net/?p=165

harvy@HarvyBot:~$

remarvel commented 9 years ago

I also tried installing npm with your commands and it said to use 'sudo apt-get install npm' so I did that as well. Here's the output from running the commands you gave me:

image

chrisl8 commented 9 years ago

Thank you for the output. For some reason the roslib package isn't building. I will have to erase my install and try it to see what is wrong.

Let me work on the install script a bit and see if I can find out why it is failing to install roslib.

If you want to play with ROS itself you can look at the documentation some more and go into ~/catkin_ws/src/Metatron/scripts/ and run start-arlobot-only.sh and/or start-metatron.sh

chrisl8 commented 9 years ago

Also, don't install npm with apt-get, that will cause problems.

chrisl8 commented 9 years ago

I found it! One missing dependency to make roslib compile. I guess I had it on my system already. I added it to the install script, so can you try it again?

bash <(wget -qO- --no-cache https://raw.githubusercontent.com/chrisl8/ArloBot/master/setup.sh)

It should complete without error now. After it is done, if it has errors, send me the output, other wise be sure to log out and back in, and then startRobot.sh should work

~/catkin_ws/src/Metatron/startRobot.sh
remarvel commented 9 years ago

I think we're getting closer. When I run startRobot.sh now it does bring up the web page, but here is the output in the terminal:

harvy@HarvyBot:~$ ~/catkin_ws/src/Metatron/startRobot.sh Now using node v0.12.7 (npm v2.11.3) Go to: http://HarvyBot:8080/ Arlobot > Press Enter to get a prompt. Run 'help()' for a list of options. Use Ctrl+d to shut down robot. Process Error: { [Error: listen EADDRINUSE] code: 'EADDRINUSE', errno: 'EADDRINUSE', syscall: 'listen' } Error: listen EADDRINUSE at exports._errnoException (util.js:746:11) at Server._listen2 (net.js:1156:14) at listen (net.js:1182:10) at Server.listen (net.js:1267:5) at EventEmitter.listen (/home/harvy/catkin_ws/src/Metatron/node/node_modules/express/lib/application.js:617:24) at Object.start (/home/harvy/catkin_ws/src/Metatron/node/webserver.js:194:25) at Object. (/home/harvy/catkin_ws/src/Metatron/node/index.js:116:11) at Module._compile (module.js:460:26) at Object.Module._extensions..js (module.js:478:10) at Module.load (module.js:355:32) Main process exit, calling killROS Running kill_ros.sh . . . Process Error: { [Error: listen EADDRINUSE] code: 'EADDRINUSE', errno: 'EADDRINUSE', syscall: 'listen' } Error: listen EADDRINUSE at exports._errnoException (util.js:746:11) at Server._listen2 (net.js:1156:14) at listen (net.js:1182:10) at Server.listen (net.js:1267:5) at Object. (/home/harvy/catkin_ws/src/Metatron/node/index.js:855:4) at Module._compile (module.js:460:26) at Object.Module._extensions..js (module.js:478:10) at Module.load (module.js:355:32) at Function.Module._load (module.js:310:12) at Function.Module.runMain (module.js:501:10) Main process exit, calling killROS Shutdown:Killing everything, please wait... Shutdown:Everything Killed. Shutdown:Turning off all relays lexicon english_poslex not defined

Shutdown:Error: Need to state which relay kill_ros.sh closed with code 1 Shutdown complete. harvy@HarvyBot:~$

chrisl8 commented 9 years ago

This error: { [Error: listen EADDRINUSE] code: 'EADDRINUSE', errno: 'EADDRINUSE', syscall: 'listen' } Indicates that the Web port is already in use. You said the site works though? My first guess is that it is somehow running twice. I hate to say this, but did you try rebooting and running it again?

remarvel commented 9 years ago

You're right. Not sure how that happened, but after rebooting it works! This is really amazing!! Thank you!! I only have one more question (for now), how do I get the teleop web page to work? I can bring up ROS on the main page, but when I go to the remote control page it is not connected? Here are some screenshots. I'm sure it's something obvious that I'm missing.

image

image

chrisl8 commented 9 years ago

Let me know if the issue with it running twice keeps happening. I've never had it happen, so I haven't built any code check for it.

Regarding the remote control page, I think the page isn't finishing loading because of there being no relay board. Someone else had this issue also and I need to fix it. If you can, press F12 and see if it shows any errors. You could post them here.

If you want to try fixing it open up ~/catkin_ws/src/Metatron/node/public/remote-control.js and see if you can work out what parts need to be eliminated or changed, although the final solution probably needs to affect more files. In another issue chronoglass said that he: "I've commented out the references to the device in node/public/remote-control.js lines 1162 -1166 lines 1205 - 1209" I think, though, that that might completely break the page so that it doesn't work at all, instead of just ignoring the relay. So focus on any lines that talk about subscribing to the "relay" services.

When you make changes to ~/catkin_ws/src/Metatron/node/public/remote-control.js you don't have to restart the entire program, just refresh the remote control page. Also, you can use that page from another computer in the house.

I will try to solve this later this week, but I doubt that I will get to it today.

remarvel commented 9 years ago

Thanks a lot Chris! I haven't had any more trouble with it starting up twice. I've just about got the remote control page to come up without any errors by commenting out most anything to do with the relays. Still can't get the teleop to work, but I think I have a different problem there because I can't get the keyboard teleop to work either. I'll keep plugging away at it.

Thanks again for all the help and patience!!

chrisl8 commented 9 years ago

You should be able to run this in one terminal window: ~/catkin_ws/src/Metatron/scripts/start-arlobot-only.sh and then this in another: ~/catkin_ws/src/Metatron/scripts/keyboard-teleop.sh and drive the robot around.

Until that works, I wouldn' try anything else. :)

chrisl8 commented 9 years ago

I fixed the system so that the web remote control should work without modification even if you have no USB Relay board.

If you have made changes to your files at all it will probably work best to just delete the entire ~/catkin_ws folder and run the setup again if you want to start fresh and see if it works. Otherwise you have to know how to use git to overwrite your changes.

If you have a chance to test this, please let me know, otherwise I'll close this in a day or two.

Thanks!

remarvel commented 9 years ago

That did the trick! The remote control page comes up without errors and no need to modify. I deleted my catkin_ws folder before installing to make sure.

Still haven't gotten the teleop working, but I'm pretty sure that's an issue on my end.

Thanks again for all the help and taking the time to put all of this together to share with others!!