Ask Your Question

LeonardoLeottau's profile - activity

2014-02-19 13:19:48 -0500 received badge  Famous Question (source)
2014-01-28 17:27:35 -0500 marked best answer "Rosmake tf" with nao toolchain cross compiling

Hi, I have problems to make tf package. I am using Fuerte Ros-Base installation from Source, ubuntu 12. Tha aldebaran NAO atom cross-compiling. The boost libraries are in /path/to/nao-cross-toolchain-dir/sysroot/usr but ros boost config is searching into the wrong patth /path/to/nao-cross-toolchain-dir/cross folder. Thanks.

[ rosmake ] rosmake starting...                                                 
    [ rosmake ] Packages requested are: ['tf']                                      
    [ rosmake ] Logging to directory /home/nao/.ros/rosmake/rosmake_output-20121003-205651
    [ rosmake ] Expanded args ['tf'] to:
    ['tf']                                     
    [rosmake-0] Starting >>> bullet [ make ]                                        
    [rosmake-1] Starting >>> geometry_msgs [ make ]                                 
    [rosmake-1] Finished <<< geometry_msgs  No Makefile in package geometry_msgs    
    [rosmake-1] Starting >>> sensor_msgs [ make ]                                   
    [rosmake-1] Finished <<< sensor_msgs  No Makefile in package sensor_msgs        
    [rosmake-1] Starting >>> roslang [ make ]                                       
    [rosmake-1] Finished <<< roslang  No Makefile in package roslang                
    [rosmake-1] Starting >>> roscpp [ make ]                                        
    [rosmake-1] Finished <<< roscpp  No Makefile in package roscpp                  
    [rosmake-1] Starting >>> rosconsole [ make ]                                    
    [rosmake-1] Finished <<< rosconsole  No Makefile in package rosconsole          
    [rosmake-1] Starting >>> angles [ make ]                                        
    [rosmake-1] Finished <<< angles [PASS] [ 0.41 seconds ]                         
    [rosmake-1] Starting >>> rospy [ make ]                                         
    [rosmake-1] Finished <<< rospy  No Makefile in package rospy                    
    [rosmake-1] Starting >>> rostest [ make ]                                       
    [rosmake-1] Finished <<< rostest  No Makefile in package rostest                
    [rosmake-1] Starting >>> roswtf [ make ]                                        
    [rosmake-1] Finished <<< roswtf  No Makefile in package roswtf                  
    [rosmake-1] Starting >>> message_filters [ make ]                               
    [rosmake-1] Finished <<< message_filters  No Makefile in package message_filters
    [ rosmake ] All 30 lines
    {-------------------------------------------------------------------------------
      /home/nao/ros-nao/ros/fuerte/share/ros/core/mk/cmake.mk:7: warning: overriding commands for target `all'
      /home/nao/ros-nao/ros/fuerte/share/ros/core/mk/cmake_stack.mk:7: warning: ignoring old commands for target `all'
      /home/nao/ros-nao/ros/fuerte/share/ros/core/mk/cmake.mk:24: warning: overriding commands for target `clean'
      /home/nao/ros-nao/ros/fuerte/share/ros/core/mk/cmake_stack.mk:16: warning: ignoring old commands for target `clean'
      mkdir -p bin
      cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=`rospack find rosbuild`/rostoolchain.cmake  ..
      [rosbuild] Building package bullet
      [rosbuild] Including /home/nao/ros-nao/ros/fuerte/share/rospy/rosbuild/rospy.cmake
      [rosbuild] Including /home/nao/ros-nao/ros/fuerte/share/roscpp/rosbuild/roscpp.cmake
      [rosbuild] Including /home/nao/ros-nao/ros/fuerte/share/common-lisp/ros/roslisp/rosbuild/roslisp.cmake
      Traceback (most recent call last):
        File "/home/nao/ros-nao/ros/fuerte/bin/rosboost-cfg", line 5, in <module>
          pkg_resources.run_script('roslib==1.8.9', 'rosboost-cfg')
        File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 499, in run_script
          self.require(requires)[0].run_script(script_name, ns)
        File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1235, in run_script
          execfile(script_filename, namespace, namespace)
        File "/home/nao/ros-nao/ros/fuerte/lib/python2.7/dist-packages/roslib-1.8.9-py2.7.egg/EGG-INFO/scripts/rosboost-cfg", line 35, in <module>
          rosboost_cfg.main()
        File "/home/nao/ros-nao/ros/fuerte/lib/python2.7/dist-packages/roslib-1.8.9-py2.7.egg/rosboost_cfg/rosboost_cfg.py", line 328, in main
          raise BoostError("Cannot find boost in any of %s"%search_paths(options.sysroot))
      rosboost_cfg.rosboost_cfg.BoostError: "Cannot find boost in any of [('/path/to/nao-cross-toolchain-dir//cross//usr', True), ('/path/to/nao-cross-toolchain-dir//cross//usr/local', True)]"
      CMake Error at /home/nao/ros-nao/ros/fuerte/share/ros/core/rosbuild/public.cmake:852 (message):
        rosboost-cfg --include_dirs failed
      Call Stack (most recent call first):
        CMakeLists.txt:8 (rosbuild_add_boost_directories)


      -- Configuring incomplete, errors occurred ...
(more)
2014-01-28 17:27:21 -0500 marked best answer ROS doesn´t run into NAO robot.

Hi, I am using the newer Nao. I have installed ROS electric (desktop) over ubuntu 10.04 with the atom toolchain 1.12.5. Today it compiles onto the pc. Buuut, ROS still doesnt run over the NAO. I have copied all the ros files from pc to nao via ssh. I obtain that:

nao [0] ~/ros $ ls
electric  setup.sh

nao [0] ~/ros $ /home/nao/ros/setup.sh
-bash: /home/nao/ros/setup.sh: Permission denied

nao [err 126] ~/ros $ source /home/nao/ros/electric/setup.bash
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
ImportError: No module named yaml
rospack could not be found, you cannot have rosbash features until you bootstrap ros

nao [0] ~/ros $ roscd
-bash: roscd: command not found

nao [err 127] ~/ros $

Thanks.

2014-01-28 17:27:14 -0500 marked best answer Aldebaran NAO Cross-Compilation. I can´t generate rostoolchain files.

Hi:

I am following this tutorial for Nao robot and cross compilation ( http://www.ros.org/wiki/nao/Tutorials/Cross-Compiling )

After installation of ROS-Base electric from source, no rostolchain file appears into my installation dir subfolders. I have followed procedure in this link ( electric/Installation/Ubuntu/Source ) modified like that:

rosinstall $TARGETDIR/ros/electric "http://packages.ros.org/cgi-bin/gen_rosinstall.py?rosdistro=electric&variant=ros-base&overlay=no"

I could not follow step 4 in Cross-Compiling tutorial. I see that maybe the procedure for installing ros electric has changed and finally in ´´/media/external/ros/electric¨ only appear: common_rosdeps ros ros_comm setup.bash setup.sh setup.zsh

Maybe I have to build a toolchain by using eros?

Thanks.

2013-12-16 20:34:05 -0500 received badge  Famous Question (source)
2013-06-30 05:16:54 -0500 received badge  Famous Question (source)
2013-05-27 13:04:59 -0500 received badge  Notable Question (source)
2013-05-27 13:04:59 -0500 received badge  Popular Question (source)
2013-05-21 11:04:00 -0500 received badge  Notable Question (source)
2013-04-15 23:28:41 -0500 received badge  Famous Question (source)
2013-03-26 06:04:51 -0500 received badge  Famous Question (source)
2013-03-13 09:09:32 -0500 answered a question Node Agent texplore "killed", using reinforcement learning pkg

Great, with --nstates 10 it works fine. I am using these commands:

rosrun rl_env env --env mcar --stochastic --prints
rosrun rl_agent agent --agent texplore --model m5tree --planner parallel-UCT  --nstates 10 --prints

Another question: Algorithms as Filtered Rmax or Qlearning with tile coding could be run modifying the node options? Thanks again.

2013-03-12 15:57:23 -0500 asked a question Node Agent texplore "killed", using reinforcement learning pkg

Hi, I using ROS fuerte, ubuntu 11.10 and I am testing the RL pkg. I am runing texplore as option for the agent node and I have been tried to run different environmens but the node is killed before one or two episodes. Below I attach the terminal ouput of the agent node, this is run with mcar stocastic environment.

I have tried with car72, car27, carranddom, mcar, and several planners and models with the same problem.

Thanks.

agent: 

texplore
model: M5 Tree
planner: Parallel Real-Valued UCT
[ INFO] [1363138771.925508025]: RLAgent: starting main loop
Agent: Model Based
Agent: Model Based
feature 0 has range 1.8
feature 1 has range 0.14
reward range: 1
Parallel ETUCT tracking real state values
Planner using history size: 0
Start model learning thread
start parallel uct planning search thread
Created MultClass 0 with nModels: 5, addNoise: 0
Created m5 decision tree 0 multivariate regression (all feats) MIN_SDR: 0.00018
Created m5 decision tree 6 multivariate regression (all feats) MIN_SDR: 0.00018
Created m5 decision tree 12 multivariate regression (all feats) MIN_SDR: 0.00018
Created m5 decision tree 18 multivariate regression (all feats) MIN_SDR: 0.00018
Created m5 decision tree 24 multivariate regression (all feats) MIN_SDR: 0.00018
Created MultClass 2 with nModels: 5, addNoise: 0
Created m5 decision tree 2 multivariate regression (all feats) MIN_SDR: 0.0001
Created m5 decision tree 8 multivariate regression (all feats) MIN_SDR: 0.0001
Created m5 decision tree 14 multivariate regression (all feats) MIN_SDR: 0.0001
Created m5 decision tree 20 multivariate regression (all feats) MIN_SDR: 0.0001
Created m5 decision tree 26 multivariate regression (all feats) MIN_SDR: 0.0001
Created MultClass 3 with nModels: 5, addNoise: 0
Created m5 decision tree 3 multivariate regression (all feats) MIN_SDR: 0.0001
Created m5 decision tree 9 multivariate regression (all feats) MIN_SDR: 0.0001
Created m5 decision tree 15 multivariate regression (all feats) MIN_SDR: 0.0001
Created m5 decision tree 21 multivariate regression (all feats) MIN_SDR: 0.0001
Created m5 decision tree 27 multivariate regression (all feats) MIN_SDR: 0.0001
Created MultClass 1 with nModels: 5, addNoise: 0
Created m5 decision tree 1 multivariate regression (all feats) MIN_SDR: 1.4e-05
Created m5 decision tree 7 multivariate regression (all feats) MIN_SDR: 1.4e-05
Created m5 decision tree 13 multivariate regression (all feats) MIN_SDR: 1.4e-05
Created m5 decision tree 19 multivariate regression (all feats) MIN_SDR: 1.4e-05
Created m5 decision tree 25 multivariate regression (all feats) MIN_SDR: 1.4e-05
Episode 0 reward: -44
Killed
dlf@dlf-Satellite-L745:~/fuerte_workspace/sandbox/rl-texplore-ros-pkg/stacks/reinforcement_learning/rl_env$
2013-01-30 04:43:57 -0500 received badge  Popular Question (source)
2012-12-03 23:25:59 -0500 received badge  Notable Question (source)
2012-11-26 03:07:13 -0500 received badge  Famous Question (source)
2012-11-26 03:06:49 -0500 received badge  Notable Question (source)
2012-11-26 03:06:49 -0500 received badge  Popular Question (source)
2012-11-05 04:16:41 -0500 received badge  Scholar (source)
2012-11-02 14:35:12 -0500 asked a question error when I try to read a ros msg composite by another msg file into a node subscriber calback

Error when I try to read a ros msg composite by another msg file into a node subscriber callback.

I have this ROS msgs.

WalkingRequest.msg
uint32 mode  #/**< The walking mode. */
Pose2D speed 
Pose2D target 

Pose2D.msg
float32 theta
float32 x
float32 y

Within the callback of my suscriber node I use:

void myCallBack(const naoros1::WalkRequest::ConstPtr& walkRequest_)
{
    walkRequest.mode = walkRequest_->mode;

Which works fine. But when I try to access to the embedded Pose2D msg like that:

walkRequest.speed.x = walkRequest_->speed->x;

I have this error:

   /home/nao/ros-nao/workspace_nao/sandbox/naoros1/src/src/UChProcess/UChCognitionExecutor.cpp: In member function ‘void UChCognitionExecutor::runModules(const boost::shared_ptr<const naoros1::WalkRequest_<std::allocator<void> > >&)’:
    /home/nao/ros-nao/workspace_nao/sandbox/naoros1/src/src/UChProcess/UChCognitionExecutor.cpp:47: error: base operand of ‘->’ has non-pointer type ‘const naoros1::Pose2D_<std::allocator<void> >’

Thanks

2012-10-29 05:27:55 -0500 received badge  Popular Question (source)
2012-10-23 13:32:23 -0500 answered a question Ros fuerte isn´t available on Ubuntu 11.10 oneiric.

Yeap, I have installed it today... thanks.

2012-10-22 05:57:35 -0500 received badge  Famous Question (source)
2012-10-22 03:12:45 -0500 received badge  Notable Question (source)
2012-10-21 15:52:50 -0500 received badge  Famous Question (source)
2012-10-21 12:21:00 -0500 received badge  Notable Question (source)
2012-10-19 11:20:55 -0500 commented question Ros fuerte isn´t available on Ubuntu 11.10 oneiric.
2012-10-19 11:19:50 -0500 received badge  Popular Question (source)
2012-10-18 05:11:13 -0500 asked a question Ros fuerte isn´t available on Ubuntu 11.10 oneiric.

Hi, I previously installed ROS fuerte onto ubuntu 12 and 10.04 with out problems. Now, I have this trouble installing ros fuerte onto ubuntu 11.10 oneiric. I have test with 2 different computers and I have tried full, desktop and base installation. any sugestions?

Package ros-fuerte-ros-comm is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'ros-fuerte-ros-comm' has no installation candidate
2012-10-10 18:57:11 -0500 received badge  Popular Question (source)
2012-10-08 10:38:31 -0500 asked a question Cross-Compiling ROS fuerte for a Nao v4. roscore doesnt run

Hi,I am using ROS fuerte compiled form source, NAO v4 and cross compilation with NAO toolchain.

Currently this configuration is compiled and running only on the pc (ubuntu 12.05), but I have this error when I run roscore on the nao.

nao [0] ~/ros-nao/ros $ roscore

Traceback (most recent call last): File "/home/nao/ros-nao/ros/fuerte/bin/roscore", line 4, in <module> import pkg_resources ImportError: No module named pkg_resources

Any suggestion?? Thanks.