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

Martin Llofriu's profile - activity

2020-04-12 05:54:34 -0500 received badge  Nice Question (source)
2019-03-07 04:41:17 -0500 received badge  Student (source)
2013-07-30 02:04:01 -0500 received badge  Famous Question (source)
2013-07-23 03:23:42 -0500 received badge  Notable Question (source)
2013-07-23 02:54:50 -0500 commented answer roslaunch error - "ERROR: cannot launch node of type"

Thanks marvin! Actually regenerating the package made the difference. I could not find the factor that was making the difference. I had already tried erasing devel and install folders. Can someone explain how can regenerating the package make the difference?

2013-07-22 23:53:32 -0500 received badge  Popular Question (source)
2013-07-16 12:31:28 -0500 asked a question roslaunch error - "ERROR: cannot launch node of type"

When using a launch file in groovy catkin package, roslaunch reports an error:

ERROR: cannot launch node of type [nao_driver/nao_camera_both.py]: nao_driver
ROS path [0]=/opt/ros/groovy/share/ros
ROS path [1]=/home/ludo/workspace/catkin_ws/install/share
ROS path [2]=/home/ludo/workspace/catkin_ws/install/stacks
ROS path [3]=/home/ludo/workspace/catkin_ws/src
ROS path [4]=/opt/ros/groovy/share
ROS path [5]=/opt/ros/groovy/stacks

The contents of the launch file

<node pkg="nao_driver" type="nao_camera_both.py" name="nao_camera_both" required="true" args="--pip=$(arg nao_ip) --pport=$(arg nao_port) fps=5" output="screen">
        <param name="camera_switch" type="int" value="1"/>
        <param name="fps" type="int" value="1"/>
                <!--
                Image quality constants
                        k960p = 3                # 1280*960
                        k4VGA = 3                # 1280*960
                        kVGA = 2                 # 640*480
                        kQVGA = 1                # 320*240
                        kQQVGA = 0               # 160*120
        -->
        <param name="quality" type="int" value="3"/>
        <param name="topCamParams" type="string" value="package://morris_simulation/config/topCamCalibSim.yml"/>
        <param name="bottomCamParams" type="string" value="package://morris_simulation/config/bottomCamCalib.yml"/>
  </node>

rosrun nao_driver nao_camera_both.py works well though.

2013-03-24 00:57:04 -0500 received badge  Famous Question (source)
2013-02-21 15:26:14 -0500 received badge  Notable Question (source)
2013-01-23 11:52:13 -0500 received badge  Scholar (source)
2013-01-20 00:47:05 -0500 received badge  Popular Question (source)
2013-01-18 10:42:30 -0500 asked a question rosmake tf2 osx fails

When I try to rosmake -a in osx Mountain Lion, it fails in tf2 package. I am following the installation tutorial ros.org/wiki/groovy/Installation/OSX/Homebrew/Source, with the exception that I am compiling rviz direclty from git devel version. I get the following output.

mkdir -p bin cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=/Users/mllofriu/ros_catkin_ws/install_isolated/share/ros/core/rosbuild/rostoolchain.cmake .. CMake Error at /usr/local/Cellar/cmake/2.8.10.1/share/cmake/Modules/Platform/Darwin.cmake:190 (message):
CMAKE_OSX_DEPLOYMENT_TARGET is '10.6' but CMAKE_OSX_SYSROOT:

""

is not set to a MacOSX SDK with a recognized version. Either set
CMAKE_OSX_SYSROOT to a valid SDK or set CMAKE_OSX_DEPLOYMENT_TARGET to
empty. Call Stack (most recent call first):
/usr/local/Cellar/cmake/2.8.10.1/share/cmake/Modules/CMakeSystemSpecificInformation.cmake:36 (include)

-- Configuring incomplete, errors occurred! make: * [all] Error 1

2013-01-15 10:54:45 -0500 answered a question Building cv_bridge with catkin fails

I have the same error here. I attach the -j1 output (I am not allowed to comment).

==> Processing catkin package: 'cv_bridge'
==> Creating build directory: 'build_isolated/cv_bridge'
==> Building with env: '/Users/mllofriu/ros_catkin_ws/install_isolated/env.sh'
==> cmake /Users/mllofriu/ros_catkin_ws/src/cv_bridge -DCATKIN_DEVEL_PREFIX=/Users/mllofriu/ros_catkin_ws/devel_isolated/cv_bridge -DCMAKE_INSTALL_PREFIX=/Users/mllofriu/ros_catkin_ws/install_isolated
==> make -j1 in '/Users/mllofriu/ros_catkin_ws/build_isolated/cv_bridge'
Scanning dependencies of target cv_bridge
[ 50%] Building CXX object src/CMakeFiles/cv_bridge.dir/cv_bridge.cpp.o
Linking CXX shared library /Users/mllofriu/ros_catkin_ws/devel_isolated/cv_bridge/lib/libcv_bridge.dylib
ld: warning: directory not found for option '-L/Users/mllofriu/ros_catkin_ws/install_isolated/share/OpenCV/3rdparty/lib'
[ 50%] Built target cv_bridge
Scanning dependencies of target cv_bridge_boost
[100%] Building CXX object src/CMakeFiles/cv_bridge_boost.dir/module.cpp.o
Linking CXX shared library /Users/mllofriu/ros_catkin_ws/devel_isolated/cv_bridge/lib/python2.7/site-packages/cv_bridge/boost/cv_bridge_boost.dylib
ld: warning: directory not found for option '-L/Users/mllofriu/ros_catkin_ws/install_isolated/share/OpenCV/3rdparty/lib'
Undefined symbols for architecture x86_64:
  "_PyErr_SetString", referenced from:
      failmsg(char const*, ...) in module.cpp.o
  "_PyExc_TypeError", referenced from:
      failmsg(char const*, ...) in module.cpp.o
  "_PyImport_ImportModule", referenced from:
      init_module_cv_bridge_boost() in module.cpp.o
  "_PyInt_FromLong", referenced from:
      boost::python::to_python_value<int const&>::operator()(int const&) const in module.cpp.o
  "_PyInt_Type", referenced from:
      boost::python::to_python_value<int const&>::get_pytype() const in module.cpp.o
  "_PyObject_AsWriteBuffer", referenced from:
      convert_to_CvMat(_object*, CvMat**, char const*) in module.cpp.o
  "_PyObject_CallObject", referenced from:
      FROM_CvMat(CvMat*) in module.cpp.o
  "_PyObject_GetAttrString", referenced from:
      FROM_CvMat(CvMat*) in module.cpp.o
  "_PyString_AsString", referenced from:
      convert_to_CvMat(_object*, CvMat**, char const*) in module.cpp.o
  "_Py_BuildValue", referenced from:
      FROM_CvMat(CvMat*) in module.cpp.o
  "__Py_NoneStruct", referenced from:
      boost::python::api::object::object() in module.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [/Users/mllofriu/ros_catkin_ws/devel_isolated/cv_bridge/lib/python2.7/site-packages/cv_bridge/boost/cv_bridge_boost.dylib] Error 1
make[1]: *** [src/CMakeFiles/cv_bridge_boost.dir/all] Error 2
make: *** [all] Error 2

<== Failed to process package 'cv_bridge': 
  Command '/Users/mllofriu/ros_catkin_ws/install_isolated/env.sh make -j1' returned non-zero exit status 2
Command failed, exiting.
2012-12-21 17:01:48 -0500 received badge  Supporter (source)