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

Nezteb's profile - activity

2015-03-02 19:05:57 -0500 received badge  Taxonomist
2013-09-01 09:36:06 -0500 received badge  Famous Question (source)
2012-11-23 19:01:39 -0500 received badge  Student (source)
2012-11-05 01:07:07 -0500 received badge  Famous Question (source)
2012-10-12 04:30:14 -0500 received badge  Famous Question (source)
2012-10-12 04:30:14 -0500 received badge  Notable Question (source)
2012-10-12 04:30:14 -0500 received badge  Popular Question (source)
2012-10-07 10:19:59 -0500 received badge  Notable Question (source)
2012-09-20 04:50:23 -0500 received badge  Famous Question (source)
2012-09-20 04:50:23 -0500 received badge  Popular Question (source)
2012-09-20 04:50:23 -0500 received badge  Notable Question (source)
2012-08-16 20:53:25 -0500 received badge  Popular Question (source)
2012-08-16 10:10:02 -0500 received badge  Notable Question (source)
2012-08-16 10:10:02 -0500 received badge  Popular Question (source)
2012-06-26 14:02:45 -0500 marked best answer "Unable to locate package ros-diamondback/electric-nxtall"

My name is Noah and I am a novice programmer looking to use ROS with the NXT Lego robotics kits. I succeeded in installing the generic ROS and am partway through the beginner tutorials even. However, I recently tried to install the ROS NXT release and received the error message in the title. The first thing I realized was that there doesn't seem to be an NXT package for Fuerte, although I don't know if that is an issue for sure. However, I have tried the main ROS server as well as each of the mirrors and cannot locate any of the NXT packages even though looking through the mirrors manually I can even see the packages that I am looking for. Any help would be greatly appreciated. :)

EDIT: Also using a Virtual Machine (VirtualBox) running Ubuntu Precise 12.04 LTS and ROS Fuerte. The command I tried running was:

sudo apt-get install ros-electric-nxtall (also tried for diamondback)

Which returned the following:

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package ros-electric-nxtall

I think what I'm going to try to do is just removing this VM and reinstalling with something like Ubuntu 10.04 and getting ROS Electric, which as far as I can tell will definitely work. I just wanted to avoid doing so as my internet connection is relatively slow and I'd like to avoid wasting the several hours I spent setting ROS up. Oh well though; I guess that's the life of a programmer.

2012-06-26 08:16:13 -0500 received badge  Supporter (source)
2012-06-26 08:15:32 -0500 commented answer NXT BrickNotFoundError

I don't have enough karma unfortunately. But yes, my brick had firmware version 1.01 and I updated it to 1.31.

2012-06-25 16:45:38 -0500 asked a question ROS_NXT Advanced Capabilites?

Does ROS for the NXT have the capability to do sophisticated statistical calculations such as matrix multiplication and inversion? I'm looking at using it to do some Qlearning algorithms.

EDIT: Are the packages created in ROS not stored on the NXT then? Does your computer need to constantly be connected via bluetooth or USB in order to relay the package info to the brick?

2012-06-25 07:35:20 -0500 asked a question Permission denied /opt/ros/electric/stacks/nxt/learning_nxt

Using Ubuntu 10.04 Lucid and ROS Electric. I had successfully installed the NXT packages for ROS and tested them with my brick. Everything seemed to be going well. I'm trying to do the NXT tutorials:

Entered: roscd nxt

Brought me to: /opt/ros/electric/stacks/nxt

Entered: roscreate-pkg learning_nxt rospy nxt_ros

Returned:

Traceback (most recent call last):
  File "/opt/ros/electric/ros/bin/roscreate-pkg", line 35, in <module>
    roscreate.roscreatepkg.roscreatepkg_main()
  File "/opt/ros/electric/ros/tools/roscreate/src/roscreate/roscreatepkg.py", line 125, in roscreatepkg_main
    create_package(package, author_name(), depends, uses_roscpp=uses_roscpp, uses_rospy=uses_rospy)
  File "/opt/ros/electric/ros/tools/roscreate/src/roscreate/roscreatepkg.py", line 63, in create_package
    os.makedirs(p)
  File "/usr/lib/python2.6/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/opt/ros/electric/stacks/nxt/learning_nxt'

Before this I had been using roscreate-pkg just fine with the regular ROS tutorials. Now that I'm trying to use it with the NXT packages, it seems to not work.

EDIT 1: In reply to Lorenz, thank you. That is one thing that has confused me about the differences between Fuerte and Electric. In the installing Electric tutorial page, overlays aren't mentioned and I feel like my bashrc isn't setup the way it should be, even though I followed the isntructions verbatim from the install and configuration tutorials. The last three lines of my bashrc are currently (before applying Lorenz's update):

source /opt/ros/electric/setup.bash
export ROS_PACKAGE_PATH=~/ros_workspace:/opt/ros/electric/stacks
export ROS_WORKSPACE=~/ros_workspace

I also don't understand why roscreate-pkg works fine when I use it without NXT in mind.

EDIT 1.1: I ran all of Lorenz's suggested commands verbatim. After trying to run the command: rosws set ~/ros_overlay/sandbox

I get this:

     Add element: 
 {'other': {'local-name': '/home/noah/ros_overlay/sandbox'}}
Continue(y/n): y
Overwriting /home/noah/ros_workspace/.rosinstall
Traceback (most recent call last):
  File "/usr/local/bin/rosws", line 66, in <module>
    sys.exit(rosinstall.rosws_cli.rosws_main(sys.argv))
  File "/usr/local/lib/python2.6/dist-packages/rosinstall/rosws_cli.py", line 519, in rosws_main
    return ws_commands[command](workspace, args)
  File "/usr/local/lib/python2.6/dist-packages/rosinstall/multiproject_cli.py", line 318, in cmd_set
    shutil.move(os.path.join(config.get_base_path(), self.config_filename), "%s.bak"%os.path.join(config.get_base_path(), self.config_filename))
  File "/usr/lib/python2.6/shutil.py", line 264, in move
    copy2(src, real_dst)
  File "/usr/lib/python2.6/shutil.py", line 99, in copy2
    copyfile(src, dst)
  File "/usr/lib/python2.6/shutil.py", line 52, in copyfile
    fsrc = open(src, 'rb')
IOError: [Errno 2] No such file or directory: '/home/noah/ros_workspace/.rosinstall'

Notice the last line.

EDIT 1.2: All of the commands ran fine up to: rosws set ~/ros_overlay/sandbox

The output of the following command is below: ls -l ~/ros_workspace

drwxr-xr-x 11 noah noah 4096 2012-06-25 09:18 beginner_tutorials

I found the .rosinstall in the ~/ros_overlay instead of ~/ros_workspace

Is there a way to ... (more)

2012-06-22 14:16:29 -0500 answered a question NXT BrickNotFoundError

I figured it out. Apparently Lego has a free Mindstorms client to update the Firmware. Unfortunately you need a Mac or PC to do so. I updated the firmware using my Mac (which has my Linux VM within it), and then my computer would finally recognize the device. Then I just needed to go into the virtualbox settings and tell it to allow the unknown device to connect to my linux VM. Now it works like a charm. :)

2012-06-22 12:36:10 -0500 asked a question NXT BrickNotFoundError

I am using Ubuntu 10.04.4 Lucid on a virtualbox VM and using ROS Electric with the NXT packages. ROS and the NXT packages installed fine and all, but when conducting the initial touch sensor test, I get the error listed in the PostInstall page (which I've copy-pasted below). All the page says regarding the error is "Your computer is not configured correctly or the brick is off if you see [this error]". However the page doesn't mention how to fix said error. The brick is not off, I can plainly see that from looking at it. However, I don't know how to go about trouble shooting it.

The only thing I can think is that my VM isn't registering my USB connection to the brick, but I've successfully installed the virtualbox extensions to allow for USB devices to be recognized and I've tested it using a USB flashdrive. Is there anyway I can look somewhere to see if my Linux VM is even registering that it is connected? I'm going to try updating the firmware of my NXT brick off of my VM to see if that will help anything, but I've looked all over the ROS Answers and the wiki and can't find a solution. Any help would be greatly appreciated. :)

$ rosrun nxt_python touch_sensor_test.py
Traceback (most recent call last):
  File "/opt/ros/electric/stacks/nxt/nxt_python/sensor_tests/touch_sensor_test.py", line 21, in <module>
    sock = nxt.locator.find_one_brick()
  File "/opt/ros/electric/stacks/nxt/nxt_python/src/nxt/locator.py", line 57, in find_one_brick
    raise BrickNotFoundError
nxt.locator.BrickNotFoundError

EDIT: I know you can also use bluetooth with the NXT bricks, but I have even less of an idea of how to get that set up with Linux.

I've been trying to see if my brick will register any connections to no avail. I can't even update the firmware or anything. I should also mention that I no longer have the NXT-G software that came with the NXT, so I have no idea how to go about connecting my brick. :S