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

Valts's profile - activity

2015-03-10 20:05:17 -0500 commented answer image_view no data received

Can you provide your "rostopic list" command output and "rosnode info image_proc" command output? Those should answer what is going wrong.

2015-03-10 01:57:03 -0500 commented answer image_view no data received

Because, as I mentioned, no such topic is being published. Your Xtion drivers are not publishing those topics so there is nothing to subscribe in either Rviz or ImageView. Perhaps you can share some info about how you run the Xtion and why you think that the topics should exist and I'll try to help

2015-03-10 01:22:11 -0500 answered a question image_view no data received

That warning indicates that nothing is being published to the /camera/rgb/image_color topic, but that the image_view has successfully subscribed to it. You should verify that an image from your xtion is indeed published to that topic. To do that, you can use "rostopic hz /camera/rgb/image_color" command. This will output the rate at which images are being published to that topic. If you find that there is nothing being published, use either "rostopic list" or "rosrun rqt_graph rqt_graph", to figure out the correct topic name that you should use. Otherwise you can refer to RViz, under Display types - check which topic you're subscribed to for your Image and check for spelling mistakes.

2015-03-04 22:24:12 -0500 answered a question How to publish single sensor_msgs/LaserScan over ROS from two sick_tim sensor

As mentioned by Lorenz on this thread: http://answers.ros.org/question/37794... It seems that you can simply publish on the same topic from multiple laser scan sources, since each laser scan message includes frame and time information to differentiate. For this you have to set up your URDF correctly.

2015-02-25 09:26:51 -0500 received badge  Teacher (source)
2015-02-25 03:12:28 -0500 answered a question which rosserial to use?

If you are using ROS Indigo, either one of the ones you mentioned should work fine. I installed ros-indigo-rosserial via apt-get and it works flawlessly.

2015-02-24 22:05:21 -0500 commented question Unsubscribing from topics

I have never had to use it, but from the class reference, it seems shutdown() is the right method:

Unsubscribe the callback associated with this Subscriber. This method usually does not need to be explicitly called, as automatic shutdown happens when all copies of this Subscriber go out of scope

2015-02-24 19:13:00 -0500 commented question Unsubscribing from topics

Is there any reason why you want to unsubscribe? The ROS topic system is designed such that you can have multiple publishers and subscribers on one topic. This is less confusing, because when you do "rostopic list", you see the complete output. I suggest you simply stop calling the "publish" method.

2015-02-01 10:35:54 -0500 answered a question Problem converting simple urdf file in collada

I am having the exact same problem on ROS Indigo on Ubuntu 14.04! Even on very simple URDF files. I am not sure if this is related, but as an alternative I also tried to convert the URDF to DAE in code, as follows:

#include <collada_urdf/collada_urdf.h>

boost::shared_ptr<DAE> dom;
if (!collada_urdf::colladaFromUrdfFile("waiterbot.urdf", dom)) {
    ROS_ERROR("Failed to construct COLLADA DOM");
    return false;
}
collada_urdf::colladaToFile(dom, "waiterbot.dae");

But this gives the following build error:

In file included from /home/waiterbot/catkin_ws/src/waiterbot_description/src/collada_urdf.cpp:1:0:
/opt/ros/indigo/include/collada_urdf/collada_urdf.h:42:17: fatal error: dae.h: No such file or directory
 #include <dae.h>
                 ^
compilation terminated.

I installed ROS as ros-indigo-desktop-full and it appears that there is something deeply wrong in the way the packages are set up. My knowledge in CMake and catkin isn't deep enough to find the problem. I have already wasted 4 hours on this with no success. Any help would be greatly appreciated.

2013-12-08 16:52:15 -0500 received badge  Famous Question (source)
2013-11-05 03:47:24 -0500 received badge  Popular Question (source)
2013-11-05 03:47:24 -0500 received badge  Notable Question (source)
2013-10-08 17:14:48 -0500 asked a question Error loading my rqt plugin from rqt_gui

Hello! I have written a quick rqt plugin, starting with the roscreate-qt-pkg command to create a package and then following the rqt tutorials. When trying to load the plugin in rqt_gui, I get the following error:

"Failed to load nodelet [control_centre/MyPlugin_1] of type [control_centre/MyPlugin]: Failed to load library /home/pioneer/ros_workspace/control_centre/lib/libcontrol_centre.so. Make sure that you are calling the PLUGINLIB_REGISTER_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Cannot load library: No manifest in /home/pioneer/ros_workspace/control_centre/lib/libcontrol_centre.so: control_centre__MyPlugin"

I am using ROS fuerte on Ubuntu 12.04.

My manifest.xml is the following:

<package>
...
<rosdep name="qt4"/>
<depend package="qt_build"/>
<depend package="roscpp"/>
<depend package="rqt_gui"/>
<depend package="rqt_gui_cpp"/>
<rosbuild2>
   <depend package="qt_build"/>
   <depend package="roscpp"/>
   <depend package="rqt_gui"/>
   <depend package="rqt_gui_cpp"/>
</rosbuild2>
<export>
<rqt_gui plugin="${prefix}/plugin.xml" />
</export>
</package>

My plugin.xml is the following:

<library path="lib/libcontrol_centre">
  <class name="control_centre/MyPlugin" type="control_centre::MyPlugin" base_class_type="rqt_gui_cpp::Plugin">
    <description>
      Controls for toggling various rescueneer robot features.
    </description>
    <qtgui>
      <label>Rescueneer Control Centre</label>
      <icon type="theme">system-help</icon>
      <statustip>..</statustip>
    </qtgui>
  </class>
</library>

My CMakeLists.txt is the following:

##############################################################################
# Rosbuild2
##############################################################################

if(ROSBUILD)
  include(rosbuild.cmake OPTIONAL)
  return()
endif()

##############################################################################
# CMake
##############################################################################

cmake_minimum_required(VERSION 2.4.6)
##############################################################################
# Ros Initialisation
##############################################################################

include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
rosbuild_init()

#set the default path for built executables to the "bin" directory
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
#set the default path for built libraries to the "lib" directory
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)

#include_directories( ${PROJECT_SOURCE_DIR}/include/control_centre )

# Set the build type.  Options are:
#  Coverage       : w/ debug symbols, w/o optimization, w/ code-coverage
#  Debug          : w/ debug symbols, w/o optimization
#  Release        : w/o debug symbols, w/ optimization
#  RelWithDebInfo : w/ debug symbols, w/ optimization
#  MinSizeRel     : w/o debug symbols, w/ optimization, stripped binaries
#set(ROS_BUILD_TYPE Debug)

##############################################################################
# Qt Environment
##############################################################################

rosbuild_include(qt_build qt-ros)
rosbuild_prepare_qt4(QtCore QtGui) # Add the appropriate components to the component list here

##############################################################################
# Sections
##############################################################################

set(CMAKE_INCLUDE_CURRENT_DIR ON)

file(GLOB QT_FORMS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ui/*.ui)
file(GLOB QT_RESOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} resources/*.qrc)
file(GLOB_RECURSE QT_MOC RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} FOLLOW_SYMLINKS include/control_centre/*.hpp)

QT4_ADD_RESOURCES(QT_RESOURCES_CPP ${QT_RESOURCES})
QT4_WRAP_UI(QT_FORMS_HPP ${QT_FORMS})
QT4_WRAP_CPP(QT_MOC_HPP ${QT_MOC})

##############################################################################
# Sources
##############################################################################

file(GLOB_RECURSE QT_SOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} FOLLOW_SYMLINKS src/*.cpp)

##############################################################################
# Binaries
##############################################################################

rosbuild_add_library(control_centre ${QT_SOURCES} ${QT_RESOURCES_CPP} ${QT_FORMS_HPP} ${QT_MOC_HPP})
rosbuild_add_executable(control_centre ${QT_SOURCES} ${QT_RESOURCES_CPP} ${QT_FORMS_HPP} ${QT_MOC_HPP})
target_link_libraries(control_centre ${QT_LIBRARIES})

And finally, my source file has the following declaration at the bottom:

PLUGINLIB_DECLARE_CLASS(control_centre, MyPlugin, control_centre::MyPlugin, rqt_gui_cpp::Plugin)

I have also compared my code to that of rqt_image_view and I can't find the difference. The code compiles and I can run it as a stand-alone application, but I can't seem to open it in rqt_gui. Thanks!