instruction
stringlengths
40
28.9k
I've noticed that there are two tutorial sets for arm navigation (arm_navigation and move_arm). Are the tutorials for arm_navigation still usable despite being for electric and diamondback? Originally posted by Massbuilder on ROS Answers with karma: 71 on 2013-11-09 Post score: 0 Original comments Comment by Robocop87 on 2013-11-09: The code really doesn't change from version to version, the only major update was the shift from rosbuild to catkin. If you are using hydro and the tutorials require publishing transforms, you may have to look at the new tf2 they just released. I'm not sure if its backwards compatible. Comment by Massbuilder on 2013-11-10: actually I Use groovy. I only ask this question Because the motion planing tutorials have got me quite confused on where to start for my custom robot.
Hi, I am using two laser hokuyo, one on top of the other to make a 360 degrees scan. I am working in python and i am making a node that simply join the information that come from the different topics. However i don't know how to make to callbacks in the same node.I simply want that each call back calls from one topic, so that i can read both ranges and join them. Can you help me? Edit: The error is: [ERROR] [WallTime: 1384088332.419696] bad callback: <function callback2 at 0x29cbed8> Traceback (most recent call last): File "/opt/ros/groovy/lib/python2.7/dist-packages/rospy/topics.py", line 681, in _invoke_callback cb(msg) File "/home/tiago/catkin_ws/src/test_python/listener.py", line 32, in callback2 cerebro(); File "/home/tiago/catkin_ws/src/test_python/listener.py", line 38, in cerebro copy(); File "/home/tiago/catkin_ws/src/test_python/listener.py", line 68, in copy pub.publish(LaserScan(laser)) File "/opt/ros/groovy/lib/python2.7/dist-packages/sensor_msgs/msg/_LaserScan.py", line 80, in init super(LaserScan, self).init(*args, **kwds) File "/opt/ros/groovy/lib/python2.7/dist-packages/genpy/message.py", line 271, in init raise TypeError("Invalid number of arguments, args should be %s"%str(self.slots)+" args are"+str(args)) TypeError: Invalid number of arguments, args should be ['header', 'angle_min', 'angle_max', 'angle_increment', 'time_increment', 'scan_time', 'range_min', 'range_max', 'ranges', 'intensities'] args are(header: And here is my code: #!/usr/bin/env python import rospy from sensor_msgs.msg import LaserScan from std_msgs.msg import String from std_msgs.msg import Header import genpy valores=[] valores2=[] valores_total=[] idx=0; flag=0; def callback(header): global valores global flag flag=flag+1; valores=header.ranges if flag==2: cerebro(); def callback2(header): global valores2 global flag flag=flag+1; valores2=header.ranges if flag==2: cerebro(); def cerebro(): global valores_total valores_total=valores+valores2 copy(); def copy(): laser = LaserScan(); header = Header(); global idx global flag #creating header header.seq = idx; ftime_now = rospy.get_time(); header.stamp = genpy.rostime.Time(int(ftime_now) // 1, int((ftime_now % 1.0)*1000000000)); header.frame_id = "laser"; laser.header = header; laser.angle_min = -3.14159; laser.angle_max = 3.14159; laser.angle_increment= 0.00613592332229; laser.time_increment= 9.76562514552e-05; laser.scan_time= 0.10000000149; laser.range_min= 0.019999999553; laser.range_max= 5.59999990463; laser.ranges=valores_total; pub = rospy.Publisher('chatter', LaserScan) rospy.loginfo(laser) pub.publish(LaserScan(laser)) flag=0; idx=idx+1; def listener(): rospy.init_node('listener', anonymous=True) rospy.Subscriber("/scan", LaserScan, callback) rospy.Subscriber("/scan_front", LaserScan, callback2) rospy.spin() if __name__ == '__main__': listener() Thank you EDIT: Ok guys i think that i have solved the problem: Instead of this: pub = rospy.Publisher('chatter', LaserScan) rospy.loginfo(laser) pub.publish(LaserScan(laser)) i made this: pub = rospy.Publisher('chatter', LaserScan) pub.publish(laser) don't ask me why, i am new in ROS so some times i do things by intuition. Thank you for your time! Originally posted by trbf on ROS Answers with karma: 16 on 2013-11-09 Post score: 0 Original comments Comment by BennyRe on 2013-11-10: Does your code not work? Seems correct to me. Comment by trbf on 2013-11-10: I think that it is wrong because i made it by intuition. I am gonna put the error and the all code in the topic. Thank you
Hi all! So according to this tutorial: http://wiki.ros.org/turtlebot_simulator/Tutorials/hydro/Explore%20the%20Gazebo%20world All I need to do to tele-op the turtlebot2 in gazebo is: roslaunch turtlebot_gazebo turtlebot_empty_world.launch roslaunch turtlebot_teleop keyboard_teleop.launch However when I do this, the turtlebot does not move. I have also tried running: roslaunch turtlebot_bringup minimal.launch and creating a python node to move it, all to no avail. What am I missing? Thank you to bit-pirate for catching my missing specs: Ubuntu 12.04, ROS Hydro, i used sudo apt-get install ros-hydro-turtlebot* to get the packages. EDIT: My Turtlebot2 simulation IS MOVING, however it is moving so slow that you can't even see it move unless you leave Gazebo running for a while and come back to it. How can I make Gazebo run faster? Originally posted by Robocop87 on ROS Answers with karma: 255 on 2013-11-09 Post score: 1 Original comments Comment by RB on 2013-11-09: I am thinking of using turtlebot on Gazebo. As I am new to Gazebo; initially I thought that for turtlebot 2D navigation stack is already set up and we can control everything from rviz. Does we need to write code for moving the turtlebot? Do you know any robot in Gazebo-Ros for which 2D navigation stack is already tuned properly? Comment by Robocop87 on 2013-11-09: Hi Brian, the navigation stack does already have a lot of utilities for using the turtlebot, the only one I know of that uses rviz though is the goal waypoints you can set while using amcl. I am writing code to move it simply because my application requires it. Comment by RB on 2013-11-09: Hi, my requirement is also similar to you, but right now I need a robot upon which 2D navigation stack properly set up. I am planning to incorporate my own code inside amcl. As you have said for TurtleBot, we can use 2D nav stack; does this robot can be properly launched in Gazeb? Does turtleBot can avail all the functionality of 2D nav stack.? Thanks 4 ur reply. Comment by bit-pirate on 2013-11-10: @Robocop87 The instructions on the wiki work out of the box for me - no need to create nor run extra nodes. Please specific more details about your setup (what and how did you install the turtlebot packages, what versions are you using (Ubuntu, ROS, turtlebot packages)). Comment by Robocop87 on 2013-11-10: Added the specs, thanks for the catch. Still doesn't work for me though =/
Hi all, My name is Bolesław and I am new user of ROS. I have installed ROS on MINT 15 system, all installing procedure went fine. All packages installed correctly apart from ubs_cam lib! It throws: ERROR: the following packages/stacks could not have their rosdep keys resolved to system dependencies: usb_cam: Unsupported OS [mint] I have searched the net, ROS wiki and ROS answers. What I found is basically some old posts, which were not connected directly to any ROS release (quite confusing!), something about rosdep.yaml file as well. And I found env ROS_OS_OVERRIDE. I put to terminal: export ROS_OS_OVERRIDE=ubuntu:raring When I check rosdep resolve usb_cam ERROR: No definition of [usb_cam] for OS version [] No definition of [usb_cam] for OS version [] rosdep key : usb_cam OS name : ubuntu **OS version :** Data: _is_ros: true debian: apt: packages: - ros-hydro-usb-cam osx: homebrew: packages: - ros/hydro/usb_cam ubuntu: precise: apt: packages: - ros-hydro-usb-cam quantal: apt: packages: - ros-hydro-usb-cam raring: apt: packages: - ros-hydro-usb-cam Here comes my question: how to "convince" ROS that beneath MINT there is UBUNTU Raring? Or maybe there is workaround through OpenCv? Thanks for any help You can provide. Originally posted by merlin on ROS Answers with karma: 3 on 2013-11-10 Post score: 0
I've saw the same problem, posted a month ago, on debian sid, but I will post another question, because i can't copy all the failure log. I'm sorry if I'm wrong... I'm using the latest version of catkin, qt_gui_cpp, python_qt_binding and pluginlib shiboken 1.2.1-2 phyton-sip 4.15.3-1 boost 1.54.0 libqt4-dev 4:4.8.5+git121-g2a9ea11+dfsg1-2 ==> Processing catkin package: 'qt_gui_cpp' ==> Building with env: '/opt/ros/hydro/env.sh' Makefile exists, skipping explicit cmake invocation... ==> make cmake_check_build_system in '/home/dave/ros/build_isolated/qt_gui_cpp' ==> make -j4 -l4 in '/home/dave/ros/build_isolated/qt_gui_cpp' [ 37%] Built target qt_gui_cpp [ 40%] Running Shiboken generator for libqt_gui_cpp Python bindings... [ 44%] Meta target for qt_gui_cpp_sip Python bindings... [ 51%] Built target libqt_gui_cpp_sip ** WARNING APIExtractor does not support the use of #include directives without passing either "<path/to/header.h>" or "./path/to/header.h", for example. Invalid use at /usr/include/boost/config.hpp:26. ** WARNING APIExtractor does not support the use of #include directives without passing either "<path/to/header.h>" or "./path/to/header.h", for example. Invalid use at /usr/include/boost/config.hpp:53. ** WARNING scope not found for symbol:boost::detail::esft2_deleter_wrapper::get_deleter<D> Generating class model... [WARNING] Unable to decide type of property: 'Qt::CursorMoveStyle' in class 'QLineEdit' enum 'QFont::HintingPreference' does not have a type entry or is not an enum Unable to decide type of property: 'SoftKeyRole' in class 'QAction' Unable to decide type of property: 'Priority' in class 'QAction' enum 'QStyle::RequestSoftwareInputPanel' does not have a type entry or is not an enum enum 'QFile::FileHandleFlag' does not have a type entry or is not an enum enum 'QXmlStreamReader::ReadElementTextBehaviour' does not have a type entry or is not an enum enum 'QLocale::CurrencySymbolFormat' does not have a type entry or is not an enum enum 'QAction::SoftKeyRole' does not have a type entry or is not an enum enum 'QLocale::Script' does not have a type entry or is not an enum Unable to decide type of property: 'QEasingCurve' in class 'QTimeLine' enum 'QGraphicsItem::PanelModality' does not have a type entry or is not an enum enum 'QLocale::QuotationStyle' does not have a type entry or is not an enum enum 'QDataStream::FloatingPointPrecision' does not have a type entry or is not an enum enum 'QTextDocument::Stacks' does not have a type entry or is not an enum Unable to decide type of property: 'Qt::InputMethodHints' in class 'QWidget' enum 'QPainter::PixmapFragmentHint' does not have a type entry or is not an enum enum 'QAction::Priority' does not have a type entry or is not an enum enum 'QTextBlockFormat::LineHeightTypes' does not have a type entry or is not an enum Generating enum model... [WARNING] enum 'SP_CustomTabVideos' does not have a type entry or is not an enum Generating namespace model... [WARNING] enum 'Qt::GestureState' does not have a type entry or is not an enum enum 'Qt::CursorMoveStyle' does not have a type entry or is not an enum enum 'Qt::TouchPointState' does not have a type entry or is not an enum enum 'Qt::GestureFlag' does not have a type entry or is not an enum enum 'Qt::TileRule' does not have a type entry or is not an enum enum 'Qt::NavigationMode' does not have a type entry or is not an enum enum 'Qt::AnchorPoint' does not have a type entry or is not an enum enum 'Qt::GestureType' does not have a type entry or is not an enum enum 'Qt::CoordinateSystem' does not have a type entry or is not an enum enum 'QtConcurrent::ThreadFunctionResult' does not have a type entry or is not an enum enum 'Qt::InputMethodHint' does not have a type entry or is not an enum Resolving typedefs... [OK] Fixing class inheritance... [WARNING] class not found for setup inheritance 'QGraphicsObject' class 'QGraphicsWidget' inherits from unknown base class 'QGraphicsObject' class 'QGraphicsTextItem' inherits from unknown base class 'QGraphicsObject' Detecting inconsistencies in class model... [OK] [OK] enum 'QX11EmbedContainer::Error' is specified in typesystem, but not declared enum 'QPixmap::ShareMode' is specified in typesystem, but not declared type 'QGenericArgument' is specified in typesystem, but not defined. This could potentially lead to compilation errors. enum 'QMetaObject::Call' is specified in typesystem, but not declared type 'QPyTextObject' is specified in typesystem, but not defined. This could potentially lead to compilation errors. type 'QX11Info' is specified in typesystem, but not defined. This could potentially lead to compilation errors. enum 'QX11EmbedWidget::Error' is specified in typesystem, but not declared type 'QMetaObject' is specified in typesystem, but not defined. This could potentially lead to compilation errors. type 'QX11EmbedContainer' is specified in typesystem, but not defined. This could potentially lead to compilation errors. type 'QGenericReturnArgument' is specified in typesystem, but not defined. This could potentially lead to compilation errors. type 'QX11EmbedWidget' is specified in typesystem, but not defined. This could potentially lead to compilation errors. Segmentation fault make[2]: *** [src/qt_gui_cpp_shiboken/libqt_gui_cpp_shiboken/libqt_gui_cpp_shiboken_module_wrapper.cpp] Error 139 make[1]: *** [src/qt_gui_cpp_shiboken/CMakeFiles/qt_gui_cpp_shiboken.dir/all] Error 2 make: *** [all] Error 2 <== Failed to process package 'qt_gui_cpp': Command '/opt/ros/hydro/env.sh make -j4 -l4' returned non-zero exit status 2 Reproduce this error by running: ==> cd /home/dave/ros/build_isolated/qt_gui_cpp && /opt/ros/hydro/env.sh make -j4 -l4 thanks in advance for reading my question... Originally posted by Boris_il_forte on ROS Answers with karma: 96 on 2013-11-10 Post score: 1 Original comments Comment by Boris_il_forte on 2013-11-10: I've forgot to say that this was an issue already in the beginning of september with groovy, I've solved updating shiboken package. But now I've the same package as Ubuntu...
i use ubuntu 12.04 & ROS(groovy) i want to use wstool and catkin_make to get the package:image_view. but there are some problems: cit@cit-ThinkStation-S20:~/catkin_ws$ catkin_make CMake Error at /opt/ros/hydro/share/catkin/cmake/catkinConfig.cmake:72 (find_package): Could not find a configuration file for package cv_bridge. Set cv_bridge_DIR to the directory containing a CMake configuration file for cv_bridge. The file will have one of the following names: cv_bridgeConfig.cmake cv_bridge-config.cmake Call Stack (most recent call first): image_pipeline/depth_image_proc/CMakeLists.txt:8 (find_package) CMake Error at /opt/ros/hydro/share/catkin/cmake/catkinConfig.cmake:72 (find_package): Could not find a configuration file for package image_geometry. Set image_geometry_DIR to the directory containing a CMake configuration file for image_geometry. The file will have one of the following names: image_geometryConfig.cmake image_geometry-config.cmake Call Stack (most recent call first): image_pipeline/depth_image_proc/CMakeLists.txt:8 (find_package) CMake Error at /opt/ros/hydro/share/catkin/cmake/catkinConfig.cmake:72 (find_package): Could not find a configuration file for package image_transport. Set image_transport_DIR to the directory containing a CMake configuration file for image_transport. The file will have one of the following names: image_transportConfig.cmake image_transport-config.cmake Call Stack (most recent call first): image_pipeline/depth_image_proc/CMakeLists.txt:8 (find_package) CMake Error at /opt/ros/hydro/share/catkin/cmake/catkinConfig.cmake:72 (find_package): Could not find a configuration file for package nodelet. Set nodelet_DIR to the directory containing a CMake configuration file for nodelet. The file will have one of the following names: nodeletConfig.cmake nodelet-config.cmake Call Stack (most recent call first): image_pipeline/depth_image_proc/CMakeLists.txt:8 (find_package) CMake Error at /opt/ros/hydro/share/catkin/cmake/catkinConfig.cmake:72 (find_package): Could not find a configuration file for package stereo_msgs. Set stereo_msgs_DIR to the directory containing a CMake configuration file for stereo_msgs. The file will have one of the following names: stereo_msgsConfig.cmake stereo_msgs-config.cmake Call Stack (most recent call first): image_pipeline/depth_image_proc/CMakeLists.txt:8 (find_package) -- Eigen found (include: /usr/include/eigen3) -- +++ processing catkin metapackage: 'humanoid_msgs' -- ==> add_subdirectory(humanoid_msgs/humanoid_msgs) -- +++ processing catkin package: 'humanoid_nav_msgs' -- ==> add_subdirectory(humanoid_msgs/humanoid_nav_msgs) -- Generating .msg files for action humanoid_nav_msgs/ExecFootsteps /home/cit/catkin_ws/src/humanoid_msgs/humanoid_nav_msgs/action/ExecFootsteps.action CMake Error at /opt/ros/hydro/share/genmsg/cmake/genmsg-extras.cmake:252 (message): Could not find 'share/actionlib_msgs/cmake/actionlib_msgs-msg-paths.cmake' (searched in '/home/cit/catkin_ws/devel;/opt/ros/groovy'). Call Stack (most recent call first): humanoid_msgs/humanoid_nav_msgs/CMakeLists.txt:29 (generate_messages) -- Configuring incomplete, errors occurred! make: *** [cmake_check_build_system] error 1 Invoking "make cmake_check_build_system" failed Originally posted by doudoushuixiu on ROS Answers with karma: 31 on 2013-11-10 Post score: 0
Hello, I would like to navigate a Pioneer 3DX robot by Kinect sensor. It seems, that the simplest way to accomplish my goal is to convert PointCloud msgs to LaserScan msgs. I've launched 3dsensor.launch from turtlebot_bringup package to do the conversion. (ROS - Hydro, Ubuntu 13.10) The problem is, 3dsensor.launch publishes no msgs on /scan topic. What should I do next to accomplish navigation and get around obstacles? Thank you in advance. Originally posted by Wojciech on ROS Answers with karma: 66 on 2013-11-10 Post score: 0 Original comments Comment by sudhanshu_mittal on 2013-11-10: which version of ROS are you using ? Comment by Wojciech on 2013-11-10: ROS - Hydro, Ubuntu 13.10 Comment by sudhanshu_mittal on 2013-11-10: did you check your rostopic list after running the launch file ? Does it show "/scan" topic ? Comment by Wojciech on 2013-11-10: Yes, but echo /scan is empty. I think the problem is, http://wiki.ros.org/depthimage_to_laserscan subscribes topics: /image & /camera_info, but openni_launch publishes msgs on /camera/rgb/camera_color & /camera/rgb/camera_info.
Hi community, I'd like to create a Linux for my brand new x86 Intel Galileo board. The installed Linux is based on a Yocto-build, which is source-code available. Has anyone got experience on how to package ROS with Yocto? I found only a year old thread on this topic, where it has been discussed for ARM devices. State back then was more or less, no further info available (yet)... Best regards Christoph Originally posted by Christoph on ROS Answers with karma: 96 on 2013-11-10 Post score: 1
I'm trying to view some simple int variables in GDB, but they're all being marked as "value optimized out". At the top of my CMakeLists.txt file, I have set(ROS_BUILD_TYPE Debug) Do I need to set something else? Originally posted by vhwanger on ROS Answers with karma: 52 on 2013-11-10 Post score: 0
Hello, I tried to build pointcloud_to_laserscan from turtlebor package, and I got this errors: /home/wojciech/catkin_ws/src/turtlebot/pointcloud_to_laserscan/src/cloud_to_scan.cpp: In member function 'void pointcloud_to_laserscan::CloudToScan::callback(const ConstPtr&)': /home/wojciech/catkin_ws/src/turtlebot/pointcloud_to_laserscan/src/cloud_to_scan.cpp:137:29: error: no match for 'operator=' in 'output.boost::shared_ptr<T>::operator-><sensor_msgs::LaserScan_<std::allocator<void> > >()->sensor_msgs::LaserScan_<std::allocator<void> >::header = (& cloud)->boost::shared_ptr<T>::operator-><const pcl::PointCloud<pcl::PointXYZ> >()->pcl::PointCloud<pcl::PointXYZ>::header' /home/wojciech/catkin_ws/src/turtlebot/pointcloud_to_laserscan/src/cloud_to_scan.cpp:137:29: note: candidate is: In file included from /opt/ros/hydro/include/sensor_msgs/LaserScan.h:51:0, from /home/wojciech/catkin_ws/src/turtlebot/pointcloud_to_laserscan/src/cloud_to_scan.cpp:33: /opt/ros/hydro/include/std_msgs/Header.h:55:8: note: std_msgs::Header_<std::allocator<void> >& std_msgs::Header_<std::allocator<void> >::operator=(const std_msgs::Header_<std::allocator<void> >&) /opt/ros/hydro/include/std_msgs/Header.h:55:8: note: no known conversion for argument 1 from 'const pcl::PCLHeader' to 'const std_msgs::Header_<std::allocator<void> >&' make[3]: *** [CMakeFiles/cloud_to_scan.dir/src/cloud_to_scan.cpp.o] Error 1 make[3]: Leaving directory `/home/wojciech/catkin_ws/src/turtlebot/pointcloud_to_laserscan/build' make[2]: *** [CMakeFiles/cloud_to_scan.dir/all] Error 2 make[2]: Leaving directory `/home/wojciech/catkin_ws/src/turtlebot/pointcloud_to_laserscan/build' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/wojciech/catkin_ws/src/turtlebot/pointcloud_to_laserscan/build' make: *** [all] Error 2 I have ROS-Hydro and Ubuntu 13.10 Thank you in advance. Originally posted by Wojciech on ROS Answers with karma: 66 on 2013-11-10 Post score: 0
I'm working through the beginner tutorials using ROS Hydro and I attempted to create my first package by running: $ catkin_create_pkg beginner_tutorials std_msgs rospy roscpp This produced no errors and appears to have created the associated files and folders. However, using rospack to find the newly created package doesn't work: $ rospack find beginner_tutorials [rospack] Error: stack/package beginner_tutorials not found What am I missing? Originally posted by altemir on ROS Answers with karma: 48 on 2013-11-10 Post score: 1
Hi, i need to achieve a multi robot simulation in stage with several roscores. Is it possible to connect several roscores to one Stage instance ? So Roscore1 -> Robot1 Roscore2 -> Robot2 Like it works by the MobileSim simulator for rosaria. And i have to run each roboter in a own roscore, one big roscore is no option Originally posted by pkohout on ROS Answers with karma: 336 on 2013-11-10 Post score: 0 Original comments Comment by tfoote on 2013-11-10: Please explain why one roscore is not an option? Comment by pkohout on 2013-11-11: The robots have a very unreliable network connection, and each robot needs to work on its own because they lose connection to the system, and it might take a long time until they reconnect again. Comment by tfoote on 2013-11-11: If you have real robots how do you intend to use stage? Comment by pkohout on 2013-11-11: The development would be much faster (and may be easier) if we simulate the environment, so all developer can test their code if they want. Now we have bottelneck for testing code because we have just hardware for one robot system (but currently 3 different teams working on that system)
Hello, I'm interested in getting a Create for a project I'll be working on, and wanted some information about it from somebody that already has one: How much weight can it safely carry? I talked with Irobot's tech support and they told me the maximum is 5lb, but searching on the internet it seems like this limit is actually not as strict as it appears to be. I'm asking because I'd need to put a 3kg laptop on top of it, which would mean ~3.5-4kg if you also consider the kinect and eventual supports for both. I guess I could use a netbook and send the data I need to another computer, but I wanted to avoid the additional overhead of the wireless link. For how long does it run using AA batteries? I'm inclined on not getting the battery pack, since I'd be using the robot in europe, so I'd also need a transformer if I went with the battery pack option. Thanks! Originally posted by Orgrim on ROS Answers with karma: 11 on 2013-11-10 Post score: 0
rosbag fails to compiles on OSX 10.9 due to forward declaration. [ 7%] [ 14%] [ 21%] [ 28%] [ 35%] [ 42%] [ 50%] Building CXX object CMakeFiles/rosbag.dir/src/bag.cpp.o Building CXX object CMakeFiles/rosbag.dir/src/buffer.cpp.o Building CXX object CMakeFiles/rosbag.dir/src/bz2_stream.cpp.o Building CXX object CMakeFiles/rosbag.dir/src/player.cpp.o Building CXX object CMakeFiles/rosbag.dir/src/query.cpp.o Building CXX object CMakeFiles/rosbag.dir/src/chunked_file.cpp.o Building CXX object CMakeFiles/rosbag.dir/src/message_instance.cpp.o [ 57%] Building CXX object CMakeFiles/rosbag.dir/src/recorder.cpp.o In file included from /Users/artemlenskiy/ros/hydro/src/rosbag/src/query.cpp:28: In file included from /Users/artemlenskiy/ros/hydro/src/rosbag/include/rosbag/query.h:41: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/map:371: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__tree:602:16: error: field has incomplete type 'value_type' (aka 'rosbag::IndexEntry') value_type __value_; ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__tree:688:28: note: in instantiation of template class 'std::__1::__tree_node<rosbag::IndexEntry, void *>' requested here typedef const typename __node::base __node_base; ^ /Users/artemlenskiy/ros/hydro/src/rosbag/include/rosbag/query.h:117:47: note: in instantiation of template class 'std::__1::__tree_const_iterator<rosbag::IndexEntry, const std::__1::__tree_node<rosbag::IndexEntry, void *> *, long>' requested here std::multiset<IndexEntry>::const_iterator begin; ^ /Users/artemlenskiy/ros/hydro/src/rosbag/include/rosbag/query.h:51:8: note: forward declaration of 'rosbag::IndexEntry' struct IndexEntry; ^ [ 64%] Building CXX object CMakeFiles/rosbag.dir/src/stream.cpp.o [ 71%] Building CXX object CMakeFiles/rosbag.dir/src/time_translator.cpp.o 1 error generated. make[2]: *** [CMakeFiles/rosbag.dir/src/query.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... [ 78%] Building CXX object CMakeFiles/rosbag.dir/src/uncompressed_stream.cpp.o make[1]: *** [CMakeFiles/rosbag.dir/all] Error 2 make: *** [all] Error 2 <== Failed to process package 'rosbag': In fact src/rosbag/include/rosbag/query.h does contain forward definition struct IndexEntry; but I could not find any place where it is fully defined. Any ideas how to resolve this issue? Originally posted by Artem on ROS Answers with karma: 709 on 2013-11-10 Post score: 2
Ubuntu 12.04 and fuerte I have a bag file of 400 seconds length. I would like to split it into two bag files of 150 seconds and 250 seconds. There is an option to split bag files while recording using option --split, but now I already have a recorded one. What can be done? Thanks Originally posted by sai on ROS Answers with karma: 1935 on 2013-11-10 Post score: 13 Original comments Comment by jdlangs on 2013-11-11: Is it not possible to just play back the bag and rerecord the topics using the --split option?
Hello, Using my custom robot base, I can successfully perform autonomous navigation using either [amcl/map_server/move_base] or [gmapping/move_base]. However, I really would like to use hector_mapping for SLAM, as it seems to perform much better (less CPU, better localization). I tried two approaches, but none led to success: OPTION 1: Use hector_mapping/move_base This fails with the follwing error message thrown by move_base: [ERROR] [1384155009.792804637]: Extrapolation Error: Lookup would require extrapolation into the future. Requested time 1384155009.754343262 but the latest data is at time 1384155009.733661973, when looking up transform from frame [odom] to frame [map] Looking at the output of rosrun tf tf_monitor, I can see the following differences between the published tf's: hector_mapping providing /map -> /odom transform: rosrun tf tf_monitor Frame: odom published by /hector_mapping Average Delay: 0.0486663 Max Delay: 0.0770144 amcl providing /map -> /odom transform: rosrun tf tf_monitor Frame: odom published by /amcl Average Delay: -0.0532177 Max Delay: 0 This completely makes sense, as the amcl documentation states here: The published transforms are future dated. This explains why move_base throws the extrapolation error. The question is: How to fix it? Of course, I could add 0.1s to the tf time stamp generated by hector_mapping in the source, but then I won't get future package updates, which is not ideal. Any better suggestions how to make hector_mapping compatible with move_base? Option 2: Use hecor_navigation package Unfortunately, there is no documentation available for this package. As hecor_navigation only available from source, I downloaded it from here into my rosbuild workspace (package is not catkinized) and ran rosmake to compile it. This produced the following error: [rospack] Error: package/stack 'hector_elevation_visualization' depends on non-existent package 'common_rosdeps' and rosdep claims that it is not a system dependency. Check the ROS_PACKAGE_PATH or try calling 'rosdep update' @Stefan: Is hecor_navigation still being maintained, or is there a successor package that is compatible with Groovy or Hydro? Thanks, Heiko Originally posted by Huibuh on ROS Answers with karma: 399 on 2013-11-10 Post score: 3
I'm seeing that rosdep doesn't resolve a particular package dependency as follows. I have packages A, B, C. Dependency graph: A <-- B <-- C A. hrpsys_ros_bridge (link to repo) B. hironx_ros_bridge (repo) C. nextage_ros_bridge (repo) However, rosdep install behaves differently: $ rosdep install C --> successfully tries to install B, and A $ rosdep install B --> "All required rosdeps installed successfully" when A is actually missing. package.xml of B and C look similar; they have build and run _depend to depending packages. As of today, rosdistro/groovy/release.yaml shows no difference in how each package is listed. Since apt seems to show the dependency as intended, I suspect something is wrong on ROS' end. $ apt-cache rdepends ros-groovy-hrpsys-ros-bridge Reverse Depends: ros-groovy-hrpsys-ros-bridge:i386 ros-groovy-rtmros-common ros-groovy-hironx-ros-bridge Thanks! python-rosdep 0.10.24-1 on Groovy, Precise Update) Responding to @tfoote's comment, I now add the concrete output as follows. To reiterate the issue, hrpsys_ros_bridge is the one that gets installed only with certain combination: rospasta@flour:$ ls hironx_ros_bridge nextage_ros_bridge (hrpsys_ros_bridge is out of ROS_PACKAGE_PATH) rospasta@flour:$ sudo apt-get remove ros-groovy-hrpsys-ros-bridge The following packages will be REMOVED: ros-groovy-hironx-ros-bridge ros-groovy-hrpsys-ros-bridge ros-groovy-nextage-ros-bridge ros-groovy-rtmros-common rospasta@flour:$ rosdep install hironx_ros_bridge : ERROR: the following packages/stacks could not have their rosdep keys resolved to system dependencies: hironx_ros_bridge: Missing resource hrpsys_ros_bridge ROS path [0]=/opt/ros/groovy/share/ros ROS path [1]=/home/n130s/link/ROS/groovy_precise/dryws ROS path [2]=/opt/ros/groovy/share ROS path [3]=/opt/ros/groovy/stacks rospasta@flour:$ rosdep install nextage_ros_bridge executing command [sudo apt-get install ros-groovy-hironx-ros-bridge] : Originally posted by 130s on ROS Answers with karma: 10937 on 2013-11-10 Post score: 0
I was unable to open some urdf files in rviz with errors like 'could not find stack/package' 'cannot load model'. To check if they are opening in MoveIt i installed ROS hydro. urdf file is still gave the same error. However, along with that i was unable to open urdf files (that worked fine with groovy initially) in both groovy and hydro. In hydro the error was same 'could not find stack/package' while in groovy it was ERROR: the config file '/opt/ros/groovy/stacks/robot_model_tutorials/urdf_tutorial/urdf.vcg' is a .vcg file, which is the old rviz config format. New config files have a .rviz extension and use YAML formatting. The format changed between Fuerte and Groovy. There is not (yet) an automated conversion program. Now, i have uninstalled hydro but groovy is giving same errors and my urdf files in rviz are still not opening. Please help. Originally posted by Akshay_Bhardwaj_nsit on ROS Answers with karma: 3 on 2013-11-11 Post score: 0
Hi, using the "select" tool in rviz you can easily select points from a point cloud. The selected points will then show up in the selection panel. My question is: Is there any possibility to export this selection? E.g. store the indices in a file? Or republish them on a different topic? The reason is I would like to manually segment a point cloud in rviz in order to provide ground truth for comparing it to a segmentation algorithm. I believe one idea would be to write an rviz plug-in for this. But I wonder, whether somebody has already stumbled upon this problem and found an easy solution (less hacky than http://answers.ros.org/question/12806/interactively-access-to-laser-point-in-rviz/)? Best, Sebastian Originally posted by sebastianh on ROS Answers with karma: 70 on 2013-11-11 Post score: 3
Hello everybody! I need help to configure Hokuyo laser. For my university project I mount an Hokuyo Laser on a mobile robot and I need an obstacle avoidance algorythm with ROS. I have already odometry's data available. Where can I found info about any obstacle avoidance code? I am at first experience with Ros and I have already seen in the Documentation, but I am very confused!! Help me, please! Best regards everybody! Originally posted by gennaro on ROS Answers with karma: 1 on 2013-11-11 Post score: 0
Hi, I want to publish an image file (i.e. image1.jpg) to an image topic I can display in rviz (/camera/image). Can anyone tell me a simple way to do this? Originally posted by Brad on ROS Answers with karma: 17 on 2013-11-11 Post score: 1 Original comments Comment by TFinleyosu on 2014-02-11: Did you ever get an example working that you care to share?
We are working with SBPL_Lattice_Planner with the Navigation Stack and Move Base to simulate an Ackerman Vehicle in Stage. We have already modified the primitives to work with the vehicle as well as modified known settings. We changed the "drive" type for the stage simulated vehicle to car as well. When generating a path, we can see that a correct path with an expected Ackerman style setup is generated, however, the simulated car does not seem able to follow it. Specifically, the simulated car does not seem to be making sharper turns that it should be capable of. During the simulation, we review the /cmd_vel data being sent and it is rather small given the vehicles capabilities. We even tested sending the data directly with a teleop program and the vehicles behaves as expected. It would seem that the settings within move_base or the local planners are not functioning correctly. In the params settings, we did attempt modifying the max velocity x and angular rotation variables to see if this would increase the vehicles capable turn radius, but had no luck. We also made sure to set holonomic_robot to false. Does anyone know of any other settings that may be modified or if there is an area in the code that should be modified as well? Thanks. Originally posted by orion on ROS Answers with karma: 213 on 2013-11-11 Post score: 1
Hi, I'm getting an error during catkin make that I can't seem to get past. I made sure to install ros-groovy-opencv2, yet I don't seem to have the opencv2Config.cmake file. Thanks in advance! Here is the error: ==> add_subdirectory(img_sender) CMake Error at /opt/ros/groovy/share/catkin/cmake/catkinConfig.cmake:72 (find_package): Could not find a configuration file for package opencv2. Set opencv2_DIR to the directory containing a CMake configuration file for opencv2. The file will have one of the following names: opencv2Config.cmake opencv2-config.cmake Originally posted by Brad on ROS Answers with karma: 17 on 2013-11-11 Post score: 0
Hey everyone! I'm new to ROS and I've been working on a project at university with underwater robotics. I want to implement controlling the robot remotely via a Playstation controller connected to my computer via USB. I'm completely new so I don't know how to get started. Does anyone have any tips on what I should look into? Originally posted by jakemorris on ROS Answers with karma: 13 on 2013-11-11 Post score: 0
I have an embedded device not supported by ROS but which runs a Linux variant. I want to connect this to my ROS Groovy machine via Ethernet but not sure on the best approach - however I was thinking TCP would be ideal. How should i connect these devices and are there any examples from which I can work from? I.e. How can i communicate between them over Ethernet? Cheers. Originally posted by anonymous8676 on ROS Answers with karma: 327 on 2013-11-11 Post score: 2
Hi there, Does anyone know what's the unit of ~linearUpdate parameter in slam_gmapping? and what does it mean? Best regards Hossain Originally posted by cognitiveRobot on ROS Answers with karma: 167 on 2013-11-11 Post score: 0
Hi Everyone, I have a Logitech C920 that I'm using with the libuvc_camera node. I've followed the instructions here: http://wiki.ros.org/libuvc_camera. My goal is to disable auto focus and auto exposure and set them manually. I can view the image stream (using the image_view node), so I know the camera works. I tried to disable auto focus/auto exposure via the libuvc_camera service, however the camera continued to to set the focus and exposure automatically. I tried to set other parameters such absolute exposure and focus, however the camera did not respond to these changes. I confirmed that my desired parameter values were set by printing the current node configuration to console. Does anyone have any idea why the camera isn't responding to these parameter changes? Do I need to run the libuvc_camera node as a super user or something? Thank you for any insight. Originally posted by trianta2 on ROS Answers with karma: 293 on 2013-11-11 Post score: 1 Original comments Comment by Artem on 2013-11-13: I had the same issue with the same camera. As far as I remember the problem was caused by not having write permissions to /dev/bus/usb. I don't think you need root permissions. Check the write permissions just like it's recommend here http://wiki.ros.org/libuvc_camera Comment by trianta2 on 2013-11-13: I followed the instructions in that link, specifically I set " #UVC cameras SUBSYSTEMS=="usb", ATTRS{idVendor}=="046d", MODE="0666" " in my 99-uvc.rules file. I found that I was able to disable auto exposure, but I cannot manually set exposure time, the aperture, or disable auto focus. Could you? Comment by trianta2 on 2013-11-13: Were you able to control the iris or exposure manually?
i'm try to install the package : common_msgs.use wstool and catkin i use catkin_make to make it,there is some wrong: -- ==> add_subdirectory(common_msgs/sensor_msgs) -- sensor_msgs: 26 messages, 1 services CMake Error at /home/shuixiu/catkin_ws/build/common_msgs/sensor_msgs/cmake/sensor_msgs-genmsg.cmake:191 (add_custom_target): add_custom_target cannot create target "sensor_msgs_generate_messages_cpp" because another target with the same name already exists. The existing target is a custom target created in source directory "/home/shuixiu/catkin_ws/src/nao_robot/nao_description". See documentation for policy CMP0002 for more details. Call Stack (most recent call first): /opt/ros/hydro/share/genmsg/cmake/genmsg-extras.cmake:288 (include) common_msgs/sensor_msgs/CMakeLists.txt:47 (generate_messages) CMake Error at /home/shuixiu/catkin_ws/build/common_msgs/sensor_msgs/cmake/sensor_msgs-genmsg.cmake:376 (add_custom_target): add_custom_target cannot create target "sensor_msgs_generate_messages_lisp" because another target with the same name already exists. The existing target is a custom target created in source directory "/home/shuixiu/catkin_ws/src/nao_robot/nao_description". See documentation for policy CMP0002 for more details. Call Stack (most recent call first): /opt/ros/hydro/share/genmsg/cmake/genmsg-extras.cmake:288 (include) common_msgs/sensor_msgs/CMakeLists.txt:47 (generate_messages) CMake Error at /home/shuixiu/catkin_ws/build/common_msgs/sensor_msgs/cmake/sensor_msgs-genmsg.cmake:561 (add_custom_target): add_custom_target cannot create target "sensor_msgs_generate_messages_py" because another target with the same name already exists. The existing target is a custom target created in source directory "/home/shuixiu/catkin_ws/src/nao_robot/nao_description". See documentation for policy CMP0002 for more details. Call Stack (most recent call first): /opt/ros/hydro/share/genmsg/cmake/genmsg-extras.cmake:288 (include) common_msgs/sensor_msgs/CMakeLists.txt:47 (generate_messages) if you know why,plz tell me,thank u Originally posted by doudoushuixiu on ROS Answers with karma: 31 on 2013-11-11 Post score: 1
i have servo motor based robot and i want gui control for the robot in ros. so how can i control it?? Originally posted by pratikbhimani on ROS Answers with karma: 11 on 2013-11-11 Post score: 1
Hi, there, I am trying out hector exploration on my robot and I have a few questions regarding the configuration. I have used the explore package before and the result is ok. The hector exploration, on the other hand, appears better on paper (though not confirmed). My specific questions are: In order to use hector exploration, another node need to call the service provided by the hector_exploration_node and feeds the provided goals to move_base. However, when I dig out the hector_exploration_node source code, I don't see a "goal" message published, instead it is the trajectory (hector navigation msg) message. How do I pass this trajectory msg to move base as a goal? Thanks a lot Originally posted by BenMa on ROS Answers with karma: 76 on 2013-11-11 Post score: 0
i use catkin & wstool to install the package: vision_opencv. but there is some errors while i use catkin_make command.i haven't changed anything in the vision_opencv file downloaded form github. this is the output in the Terminal. /home/shuixiu/catkin_ws/src/vision_opencv/cv_bridge/src/module.cpp: In function ‘boost::python::api::object cvtColor2Wrap(boost::python::api::object, const string&, const string&)’: /home/shuixiu/catkin_ws/src/vision_opencv/cv_bridge/src/module.cpp:329:12: error: invalid conversion from ‘long int*’ to ‘npy_intp* {aka int*}’ [-fpermissive] /home/shuixiu/catkin_ws/src/vision_opencv/cv_bridge/src/module.cpp:331:13: error: invalid conversion from ‘long int*’ to ‘npy_intp* {aka int*}’ [-fpermissive] /home/shuixiu/catkin_ws/src/vision_opencv/cv_bridge/src/module.cpp:333:13: error: invalid conversion from ‘long int*’ to ‘npy_intp* {aka int*}’ [-fpermissive] /home/shuixiu/catkin_ws/src/vision_opencv/cv_bridge/src/module.cpp:335:13: error: invalid conversion from ‘long int*’ to ‘npy_intp* {aka int*}’ [-fpermissive] /home/shuixiu/catkin_ws/src/vision_opencv/cv_bridge/src/module.cpp:337:13: error: invalid conversion from ‘long int*’ to ‘npy_intp* {aka int*}’ [-fpermissive] /home/shuixiu/catkin_ws/src/vision_opencv/cv_bridge/src/module.cpp:339:13: error: invalid conversion from ‘long int*’ to ‘npy_intp* {aka int*}’ [-fpermissive] /home/shuixiu/catkin_ws/src/vision_opencv/cv_bridge/src/module.cpp:341:13: error: invalid conversion from ‘long int*’ to ‘npy_intp* {aka int*}’ [-fpermissive] make[2]: *** [vision_opencv/cv_bridge/src/CMakeFiles/cv_bridge_boost.dir/module.cpp.o] Error 1 make[1]: *** [vision_opencv/cv_bridge/src/CMakeFiles/cv_bridge_boost.dir/all] Error 2 make: *** [all] Error 2 Invoking "make" failed Originally posted by doudoushuixiu on ROS Answers with karma: 31 on 2013-11-11 Post score: 2
Hello all, I noticed that after a long time (hours) my memory was stuffed full when working with our robot. When closing RViz this memory is released. I suspect that there is a memory leak in RViz. To replicate this error, I recorded a bag file, which is rather large (350MB) and can thus be found we.tl/Qba0dJdPqc, or you can use we.tl/2x6yPrGhBH smaller bag file. The used config file for RViz is included. To replicate: Launch rviz with the provided config file and play the bag file. You will see your memory usage increasing over time. This bag file is not long enough to actually fill my memory(6GB) but you get the idea. Now if you remove the green Gridcells display, the one that displays the '/move_base/local_costmap/inflated_obstacles' topic, there is no memory leak (or it is happening much slower). Is this a problem on my end and/or did anyone else notice this problem? Does anyone have a solution? The robot is running electric, RViz is ran on a pc running hydro, could this be causing the problem? I noticed that the new move_base/local_costmap in hydro uses a occupancy grid instead of the girdcells. I know electric is quite old already and therefore we are upgrading the robot to hydro shortly, but just wanted to share this observation with you. With kind regards, Okke Hendriks Rose B.V. - www.robot-rose.nl Originally posted by Okke on ROS Answers with karma: 131 on 2013-11-12 Post score: 2 Original comments Comment by 130s on 2013-11-12: +1 for sharing .bag file. During the entire last week, I kept running RViz to exhibit a robot all day long and once (but only once) I saw memory leaked to 15GB. Though I haven't replicated it, a customer keeps mentioning about that single occurrence and thus I'd like to know more about this issue. Comment by Stefan Kohlbrecher on 2013-11-12: See https://github.com/ros-visualization/rviz/issues/695 for another instance of a severe memory leak in rviz on hydro. It appears the maintainers are very busy atm, as there has been no reaction to posted issues in quite some time.
Hi, I am building a simple robot from scratch because I want to learn the complete procedure of building a robot. I already built a robot like this(in urdf file): And I want to send the command(geometry_msgs/Twist) to move the robot, I don't know how to correctly send the command to the robot. There are some resources, but I am not familiar with controllers, so I have difficulties reading these resources. Hope these provide some useful hints. http://gazebosim.org/wiki/Tutorials/1.9/ROS_Control_with_Gazebo http://answers.ros.org/question/55082/error-adding-controller-script-in-simple-urdf-model-to-be-simulated-on-gazebo/ http://answers.ros.org/question/12050/simple-urdf-controller-example/ Is there simple answers that I can control the robot? Thanks in advance, I know this might be a simple question for you guys :) Originally posted by Po-Jen Lai on ROS Answers with karma: 1371 on 2013-11-12 Post score: 1
Hi everyone, I wrote a program for collecting laser data from a bag (currently I'm using a bag from the gmapping node tutorial). The bag is executed as usually: rosbag play bag No problems so far, I can visualize everything in rviz. Problems are on the listener side. The callback, rather basic, is the following: void callBack(const sensor_msgs::LaserScan::ConstPtr& msg) { tf::TransformListener listener; tf::StampedTransform trans; try { ros::Time time=msg->header.stamp; listener.waitForTransform("base_laser", "odom", time, ros::Duration(1)); listener.lookupTransform("base_laser", "odom", time, trans); //Do something } catch(tf::TransformException ex) { ROS_ERROR("%s",ex.what()); } } In few words, it doesn't work, I always obtain: Lookup would require extrapolation into the past or Lookup would require extrapolation into the future I modified, by hand, the time variable value as follows: ros::Time time=ros::Time(msg->header.stamp.sec+1); Although it worked, to me is not a feasible or general solution. Changing duration value didn't help either. Am I doing something wrong? Maybe did I forget some parameter for ROS to set? Thanks for your help, Tambo Originally posted by Tambo on ROS Answers with karma: 56 on 2013-11-12 Post score: 0
Error on opening old working android_core project in Android Studio 0.3.4 (also in 0.2.0) Error on importing new android_core project in Android Studio 0.3.4 (also in 0.2.0) Till last week I was able to use the android_core project which I imported to Android Studio 0.3.1. But when I opened it again yesterday (09.11)(in Android Studio 0.3.1) I was getting errors. On Sunday (10.11) I cloned a new android_core from the Github but I could not import it to Android Studio 0.3.1 (no error in catkin_make). I upgraded to Android Studio 0.3.4 (also to 0.3.5) but the same errors on opening the old working android_core and also for importing a new one. [Error on importing] "Resolver error Could not find any version that matches org.ros.rosjava_bootstr ap:gradle_plugins:[0.1,0.2). Required by: :android_core:unspecified" [Error on opening an old android_core] "Gradle 'android_core' project refresh failed: Could not execute build using Gradle distribution 'http://ser.../gradle-1.8-all.zip' A problem occurred configuring project ':android_acm_serial'. A problem occurred configuring project ':android_acm_serial'. Failed to notify project evaluation listener. A problem occurred configuring project ':android_honeycomb_mr2'. Failed to notify project evaluation listener. A problem occurred configuring project ':android_gingerbread_mr1'. Failed to notify project evaluation listener. Could not resolve all dependencies for configuration ':android_gingerbread_mr1:_DebugCompile'. Could not find any version that matches org.ros.rosjava_messages:sensor_msgs:1.10.+. Required by: org.ros.android_core:android_gingerbread_mr1:0.1.0" Then I degraded to Android Studio 0.2.0 tried again but it gave again the same errors. I am using Ubuntu 12.04 and new to ROS. Is there any solution for the above errors ? Thanks, dtc. Originally posted by dtc on ROS Answers with karma: 41 on 2013-11-12 Post score: 0
Hi there, I'm building a program this message (Pose2DArray.msg): Header header geometry_msgs/Pose2D[] poses But when I build it, with an empty main function, I get the following errors: error: stray \ in program error: stray # in program error: stray \ in program error: stray # in program (more omitted) This appears to be from the following, in Pose2DArray.h: return "Header header \n\ \n\ geometry_msgs/Pose2D[] poses\n\ ================================================================================\n\ MSG: std_msgs/Header\n\ # Standard metadata for higher-level stamped data types.\n\ # This is generally used to communicate timestamped data \n\ # in a particular coordinate frame.\n\ # \n\ # sequence ID: consecutively increasing ID \n\ uint32 seq\n\ #Two-integer timestamp that is expressed as:\n\ # * stamp.secs: seconds (stamp_secs) since epoch\n\ # * stamp.nsecs: nanoseconds since stamp_secs\n\ # time-handling sugar is provided by the client library\n\ time stamp\n\ #Frame this data is associated with\n\ # 0: no frame\n\ # 1: global frame\n\ string frame_id\n\ \n\ ================================================================================\n\ MSG: geometry_msgs/Pose2D\n\ # This expresses a position and orientation on a 2D manifold.\n\ \n\ float64 x\n\ float64 y\n\ float64 theta\n\ "; } When I removed all that and replace it with return ""; everything works. But since it is auto generated, the error re-appears later. So I tried to remove the Header, so the msg was only geometry_msgs/Pose2D[] poses and everything works. Why can't I use Header here? Is this a bug or do I forget something? edit: putting a comment in there ( # and some text) will also cause this Originally posted by Alpha on ROS Answers with karma: 18 on 2013-11-12 Post score: 0
I just changed my username and name of my home directory. Now I cannot use catkin_make because the source directory's name has been changed. How can I update, or change my source directory of catkin_ws? Originally posted by Jessica on ROS Answers with karma: 1 on 2013-11-12 Post score: 0
Using the default API documentation generator (Doxygen), the code API docs for http://wiki.ros.org/ackermann_vehicle_gazebo are generated correctly. I want to use Epydoc instead of Doxygen, so I made the following changes: In ackermann_vehicle_gazebo/package.xml, I added a rosdoc element: <export> <architecture_independent/> <rosdoc config="rosdoc.yaml"/> </export> In ackermann_vehicle_gazebo, I created a rosdoc.yaml file: - builder: epydoc config: epydoc.config In ackermann_vehicle_gazebo, I created an epydoc.config file: [epydoc] modules: nodes/*.py docformat: restructuredtext private: no After making these changes, I received an e-mail from [email protected] with the subject "Build failed in Jenkins: doc-hydro-ackermann_vehicle #13". The mail contains a large number of messages, but I can't determine the error that caused them. What do I need to do in order to generate code API docs with Epydoc instead of Doxygen? Originally posted by Jim Rothrock on ROS Answers with karma: 792 on 2013-11-12 Post score: 1 Original comments Comment by joq on 2013-11-12: It would help to post a link to the Jenkins doc job that failed. Can you run rosdoc_lite locally on your development system? Comment by Jim Rothrock on 2013-11-12: Link: http://jenkins.ros.org/job/doc-hydro-ackermann_vehicle/13/ Yes. If I do the following: cd catkin_ws/src/ackermann_vehicle/ackermann_vehicle_gazebo rosdoc_lite . Documentation is written to ackermann_vehicle_gazebo/doc.
Hi guys, I installed the following driver: link:text because I noticed there were calibration files for the front and bottom camera of the AR.Drone. I downloaded this successfully so I tried the following line in terminal to see if the image quality improved: rosrun image_view image_view image:=/ardrone/front/image_raw However, the camera stream was still terrible. I wanted to know how people fixed the camera stream or had a similar problem on the AR.Drone 2.0 because my one is poor over ROS. Thanks! Originally posted by JP on ROS Answers with karma: 95 on 2013-11-12 Post score: 0
Can my publisher in rospy and subscriber in rosjava be in two separate packages in the same workspace?I am new to ROS and there are different build commands for rospy like catkin_make and gradlew for rosjava. Can i use the same workspace for building both the scripts by putting them in two seperate packages or should i put them in the same package? Originally posted by uzair on ROS Answers with karma: 87 on 2013-11-12 Post score: 0
I use ubuntu 12.04 64 bits with ROS groovy. I followed rosdistro page. I install rosdistro by these commands: sudo apt-get update sudo apt-get install python-rosdistro But I still can't run rosdistro on terminal. sam@sam:~/code/groovy_overlay/devel/bin$rosdistro rosdistro: command not found sam@sam:~/code/groovy_overlay/devel/bin$ I found I have two tool similar with rosdistro: rosdistro_build_cache rosdistro_reformat How to solve it? Thank you~ Originally posted by sam on ROS Answers with karma: 2570 on 2013-11-12 Post score: 2 Original comments Comment by Arthur Queiroz on 2017-01-24: I'm using Ubuntu 14.04 64bits with ROS Indigo, and I'm facing the same situation as you. Did you find a way to call "rosdistro [command]" on the terminal?
Hi I have inserted a shortened version of my files below, but first i'll try to explain my problem. My problem is that I want to define a MoveTo() function within skills.cpp, which uses actionlib client acUR5. I can't define the MoveTo() function without defining acUr5 before the definition of the MoveTo() function in skills.cpp. The acUr5 needs ros::init(), which first have been defined in the main() function. Thus then I run execute_actionlib_client.cpp. I get the error showed in the bottom of this post. execute_actionlib_client.cpp: #include <ros/ros.h> #include <actionlib/client/simple_action_client.h> #include <actionlib/client/terminal_state.h> #include <rq3_proxy/rq3Action.h> #include <ur5_proxy/ur5Action.h> #include "skills/skills.hpp" int main (int argc, char **argv){ ros::init(argc, argv, "skills_node"); actionlib::SimpleActionClient<rq3_proxy::rq3Action> acRq3("rq3proxynode", true); actionlib::SimpleActionClient<ur5_proxy::ur5Action> acUr5("ur5Node", true); rq3_proxy::rq3Goal goalRq3; ur5_proxy::ur5Goal goalUr5; MoveTo(); Skills.cpp: #include <ros/ros.h> #include <actionlib/client/simple_action_client.h> #include <actionlib/client/terminal_state.h> #include <rq3_proxy/rq3Action.h> #include <ur5_proxy/ur5Action.h> #include "skills.hpp" actionlib::SimpleActionClient<rq3_proxy::rq3Action> acRq3("rq3proxynode", true); actionlib::SimpleActionClient<ur5_proxy::ur5Action> acUr5("ur5Node", true); // PROBLEM rq3_proxy::rq3Goal goalRq3; ur5_proxy::ur5Goal goalUr5; void MoveTo(){ //Viapoint, becore place acUr5.sendGoalAndWait(move("j", "car", 60,-508, 212, 1.7574, 0.7509, 1.714, 2, 0, 0, goalUr5),ros::Duration(30.0),ros::Duration(30.0)); ROS_INFO("Viapoint 2 finished"); } Problem when run: private@pc:~/ros_ws/devel_ws$ rosrun skills execute_actionlib_client [FATAL] [1384343030.296120354]: You must call ros::init() before creating the first NodeHandle [FATAL] [1384343030.296325757]: BREAKPOINT HIT file = /tmp/buildd/ros-groovy-roscpp-1.9.50-0precise-20131015-2117/src/libros/node_handle.cpp line=151 Trace/breakpoint trap (core dumped) I hope you understand the problem and that you can help Originally posted by mortenpj on ROS Answers with karma: 70 on 2013-11-13 Post score: 1
Dear everybody, I am starting with ROS and my objective is to create a 3D laser scanner with a Hokuyo+Dynamixel servo. The Hokuyo nodes and laser_assembler are not a problem so far. However, I have no idea how to deal with the Dynamixel servo. I tried to follow the dynamixel_motor tutorials starting with the second tutorial, which is supposed to be done first. The problem is that the instructions are given for the previous ROS build system. I tried the same with catkin: $ catkin_create_pkg my_dynamixel_tutorial dynamixel_controllers But later, roscd does not recognize the new package. I tried to run $ catkin_make and this is the error: -- +++ processing catkin package: 'my_dynamixel_tutorial' -- ==> add_subdirectory(my_dynamixel_tutorial) CMake Error at /home/jabuntu/Dropbox/ros_ws/devel/share/dynamixel_controllers/cmake/dynamixel_controllersConfig.cmake:154 (find_package): Could not find module Findcontrol_msgs.cmake or a configuration file for package control_msgs. Adjust CMAKE_MODULE_PATH to find Findcontrol_msgs.cmake or set control_msgs_DIR to the directory containing a CMake configuration file for control_msgs. The file will have one of the following names: control_msgsConfig.cmake control_msgs-config.cmake Call Stack (most recent call first): /opt/ros/hydro/share/catkin/cmake/catkinConfig.cmake:71 (find_package) my_dynamixel_tutorial/CMakeLists.txt:7 (find_package) So it is not identified as a package. How can I fix this? Is there any other simplest way to use this servo together with ROS? And finally, should I create another node in order to get motor state and publish tf in order to use laser_assembler? Thank you very much! Originally posted by Javier V. Gómez on ROS Answers with karma: 1305 on 2013-11-13 Post score: 0 Original comments Comment by BennyRe on 2013-11-13: Do you have the package control_msgs installed? Comment by Javier V. Gómez on 2013-11-13: Thank you for your advice. I ignored that since I installed ROS full, so I was assuming everything was installed. Now I'm able to continue :) Comment by BennyRe on 2013-11-13: Cool. I'll post it as an answer, so you can mark the question as answered.
I'm developing an application that uses one instance of librviz but has multiple render panels. It's initialized in the same way as the camera display, in which the VisualizationManager instance is shared among all render panels. Currently, the application uses a single window with four render panels, each one with a different camera. In my tests, I only have the robot model active, which currently has a total of 90K triangles. Now, the issue that I have is related to poor rendering performance. More specifically, windows are rendered sequentially inside the renderOneFrame() function call in VisualizationManager::update and basically rendering performance is divided by four in comparison to only using a single render panel (it goes from ~0.017s to complete renderOneFrame() to ~0.065s). This is expected when there's a lot of geometry to be rendered, but the difference in performance when rendering 90K and 600K triangles per window is minimal (drops from 15FPS to 14FPS per window). I've tried an alternative to this, opening four different windows in separate processes, each window having its rviz instance with a single render panel (equivalent to opening rviz four times). Performance goes back to where it was when I only had one render window, which means performance is not limited by the GPU and rendering itself, but by CPU operations done inside renderOneFrame(). What's even more interesting is that CPU usage drops from around 80% with one render panel to 50% with four render panels and shared VisualizationManager instace. Of course, CPU/memory usage is multiplied by four if I have four separate windows since I have to process/store the same data four times, and the only difference between the four windows is the camera position, so this would be a less than ideal solution. Since GPU is not what's limiting performance here, I believe there's something happening in the pre-render/post-render function callbacks that's causing this. Keep in mind that these will run once for each camera/viewport (that's how renderOneFrame is implemented), so if there's something blocking execution once per frame in these callbacks when there's only one render panel, it will block execution four times per frame when there are four panels. I'm not sure if it's waiting for TF or something else. So, anyone else experienced this? Any tips/suggestions of what the problem might be or how to fix it? Originally posted by Felipe Bacim on ROS Answers with karma: 61 on 2013-11-13 Post score: 1
After a lot of trouble to install build everything with rosdep and brew, I got this error when trying to run: ./src/catkin/bin/catkin_make_isolated --install -- Using CATKIN_DEVEL_PREFIX: /Users/bruno/ros_catkin_ws/devel_isolated/catkin -- Using CMAKE_PREFIX_PATH: -- Using default Python package layout -- Using CATKIN_ENABLE_TESTING: ON -- Call enable_testing() -- Using CATKIN_TEST_RESULTS_DIR: /Users/bruno/ros_catkin_ws/build_isolated/catkin/test_results -- Found gtest: gtests will be built -- catkin 0.5.77 /usr/bin/python: can't find '__main__' module in '/Library/Python/2.7/site-packages/empy-3.1-py2.7.egg/em.pyc' CMake Error at cmake/safe_execute_process.cmake:11 (message): execute_process(/Users/bruno/ros_catkin_ws/build_isolated/catkin/catkin_generated/env_cached.sh "/usr/bin/python" "/Library/Python/2.7/site-packages/empy-3.1-py2.7.egg/em.pyc" "--raw-errors" "-F" "/Users/bruno/ros_catkin_ws/build_isolated/catkin/catkin_generated/pkg.develspace.context.pc.py" "-o" "/Users/bruno/ros_catkin_ws/devel_isolated/catkin/lib/pkgconfig/catkin.pc" "/Users/bruno/ros_catkin_ws/src/catkin/cmake/em/pkg.pc.em") returned error code 1 Call Stack (most recent call first): cmake/em_expand.cmake:23 (safe_execute_process) cmake/catkin_package.cmake:358 (em_expand) cmake/catkin_package.cmake:98 (_catkin_package) CMakeLists.txt:11 (catkin_package) -- Configuring incomplete, errors occurred! See also "/Users/bruno/ros_catkin_ws/build_isolated/catkin/CMakeFiles/CMakeOutput.log". ls -l /usr/local//lib/python2.7/site-packages/ drwxr-xr-x 7 bruno admin 238 23 Out 09:13 GDAL-1.10.1-py2.7.egg-info drwxr-xr-x 26 bruno admin 884 13 Nov 11:26 PyQt4 drwxr-xr-x 21 bruno admin 714 13 Nov 01:31 PySide drwxr-xr-x 7 bruno admin 238 10 Nov 09:20 VTK-5.10.1-py2.7.egg-info lrwxr-xr-x 1 bruno admin 64 5 Nov 00:22 cv.py -> ../../../Cellar/opencv/2.4.6.1/lib/python2.7/site-packages/cv.py lrwxr-xr-x 1 bruno admin 65 5 Nov 00:22 cv2.so -> ../../../Cellar/opencv/2.4.6.1/lib/python2.7/site-packages/cv2.so -rw-r--r-- 1 bruno admin 236 13 Nov 22:14 easy-install.pth -rw-r--r-- 1 root admin 114277 27 Out 2003 em.py -rw-r--r-- 1 root admin 131548 13 Nov 22:37 em.pyc -rw-r--r-- 1 root admin 1165 13 Nov 22:37 empy-3.1-py2.7.egg-info lrwxr-xr-x 1 bruno admin 63 23 Out 09:13 gdal.py -> ../../../Cellar/gdal/1.10.1/lib/python2.7/site-packages/gdal.py lrwxr-xr-x 1 bruno admin 68 23 Out 09:13 gdalconst.py -> ../../../Cellar/gdal/1.10.1/lib/python2.7/site-packages/gdalconst.py lrwxr-xr-x 1 bruno admin 70 23 Out 09:13 gdalnumeric.py -> ../../../Cellar/gdal/1.10.1/lib/python2.7/site-packages/gdalnumeric.py drwxr-xr-x 5 bruno admin 170 10 Nov 21:09 git_remote_helpers lrwxr-xr-x 1 bruno admin 95 10 Nov 21:09 git_remote_helpers-0.1.0-py2.7.egg-info -> ../../../Cellar/git/1.8.4.3/lib/python2.7/site-packages/git_remote_helpers-0.1.0-py2.7.egg-info drwxr-xr-x 40 bruno admin 1360 12 Nov 22:03 hgext drwxr-xr-x 105 bruno admin 3570 12 Nov 22:03 mercurial lrwxr-xr-x 1 bruno admin 86 12 Nov 22:03 mercurial-2.8-py2.7.egg-info -> ../../../Cellar/mercurial/2.8/lib/python2.7/site-packages/mercurial-2.8-py2.7.egg-info lrwxr-xr-x 1 bruno admin 62 23 Out 09:13 ogr.py -> ../../../Cellar/gdal/1.10.1/lib/python2.7/site-packages/ogr.py drwxr-xr-x 14 bruno admin 476 23 Out 09:13 osgeo lrwxr-xr-x 1 bruno admin 62 23 Out 09:13 osr.py -> ../../../Cellar/gdal/1.10.1/lib/python2.7/site-packages/osr.py drwxr-xr-x 4 bruno admin 136 13 Nov 22:14 pip-1.4.1-py2.7.egg -rw-r--r-- 1 bruno admin 503884 13 Nov 22:14 setuptools-1.3.2-py2.7.egg -rw-r--r-- 1 bruno admin 29 13 Nov 22:14 setuptools.pth lrwxr-xr-x 1 bruno admin 70 13 Nov 01:21 shiboken.so -> ../../../Cellar/shiboken/1.2.0/lib/python2.7/site-packages/shiboken.so lrwxr-xr-x 1 bruno admin 61 10 Nov 21:57 sip.so -> ../../../Cellar/sip/4.15.3/lib/python2.7/site-packages/sip.so lrwxr-xr-x 1 bruno admin 67 10 Nov 21:57 sipconfig.py -> ../../../Cellar/sip/4.15.3/lib/python2.7/site-packages/sipconfig.py -r--r--r-- 1 bruno admin 72957 10 Nov 21:58 sipconfig.pyc lrwxr-xr-x 1 bruno admin 70 10 Nov 21:57 sipdistutils.py -> ../../../Cellar/sip/4.15.3/lib/python2.7/site-packages/sipdistutils.py -rw-r--r-- 1 bruno admin 2418 13 Nov 18:27 site.py -rw-r--r-- 1 bruno admin 1739 13 Nov 18:27 site.pyc -rw-r--r-- 1 bruno admin 2535 13 Nov 22:14 sitecustomize.py -rw-r--r-- 1 bruno admin 1174 13 Nov 22:14 sitecustomize.pyc drwxr-xr-x 44 bruno admin 1496 10 Nov 09:20 vtk ls -l /Library/Python/2.7/site-packages/ total 2616 drwxr-xr-x 14 root wheel 476 5 Nov 00:11 Crypto drwxr-xr-x 9 root wheel 306 25 Out 09:52 Flask-0.10.1-py2.7.egg-info drwxr-xr-x 9 root wheel 306 25 Out 09:54 Flask_SQLAlchemy-1.0-py2.7.egg-info -rw-r--r-- 1 root wheel 4930 24 Out 15:18 HermesClient-1.0.0-py2.7.egg drwxr-xr-x 10 root wheel 340 25 Out 09:52 Jinja2-2.7.1-py2.7.egg-info drwxr-xr-x 8 root wheel 272 25 Out 09:52 MarkupSafe-0.18-py2.7.egg-info drwxr-xr-x 7 root wheel 238 24 Out 15:09 MySQL_python-1.2.4-py2.7.egg-info drwxr-xr-x 15 root wheel 510 24 Out 15:09 MySQLdb drwxr-xr-x 47 root wheel 1598 10 Nov 18:11 OpenGL drwxr-xr-x 167 root wheel 5678 29 Out 17:00 PIL -rw-r--r-- 1 root wheel 4 29 Out 17:00 PIL.pth drwxr-xr-x 7 root wheel 238 10 Nov 18:11 PyOpenGL-3.0.2-py2.7.egg-info drwxr-xr-x 10 root wheel 340 24 Out 15:09 PySQLPool drwxr-xr-x 7 root wheel 238 24 Out 15:09 PySQLPool-0.3.7-py2.7.egg-info drwxr-xr-x 7 root wheel 238 29 Out 01:54 PyYAML-3.10-py2.7.egg-info drwxr-xr-x 9 root wheel 306 10 Nov 17:17 Pygments-1.6-py2.7.egg-info -rw-r--r-- 1 root wheel 119 22 Out 19:39 README drwxr-xr-x 7 root wheel 238 25 Out 09:54 SQLAlchemy-0.8.2-py2.7.egg-info drwxr-xr-x 10 root wheel 340 10 Nov 17:17 Sphinx-1.1.3-py2.7.egg-info drwxr-xr-x 8 root wheel 272 24 Out 15:05 Werkzeug-0.9.4-py2.7.egg-info drwxr-xr-x 6 root wheel 204 13 Nov 01:04 _markerlib -rwxr-xr-x 1 root wheel 130440 24 Out 15:09 _mysql.so -rw-r--r-- 1 root wheel 2352 24 Out 15:09 _mysql_exceptions.py -rw-r--r-- 1 root wheel 4243 24 Out 15:09 _mysql_exceptions.pyc -rwxr-xr-x 1 root wheel 79720 13 Nov 00:05 _psutil_osx.so -rwxr-xr-x 1 root wheel 25840 13 Nov 00:05 _psutil_posix.so drwxr-xr-x 7 root wheel 238 29 Out 01:54 argparse-1.2.1-py2.7.egg-info -rw-r--r-- 1 root wheel 87791 29 Out 01:53 argparse.py -rw-r--r-- 1 root wheel 65903 29 Out 01:54 argparse.pyc drwxr-xr-x 31 root wheel 1054 13 Nov 17:44 catkin_pkg drwxr-xr-x 8 root wheel 272 13 Nov 17:44 catkin_pkg-0.1.23-py2.7.egg-info drwxr-xr-x 17 root wheel 578 13 Nov 17:44 dateutil drwxr-xr-x 9 root wheel 306 29 Out 01:54 distribute-0.7.3-py2.7.egg-info drwxr-xr-x 24 root wheel 816 29 Out 01:54 docutils drwxr-xr-x 7 root wheel 238 29 Out 01:54 docutils-0.11-py2.7.egg-info -rw-r--r-- 1 root wheel 15267 13 Nov 01:04 dot_parser.py -rw-r--r-- 1 root wheel 13450 13 Nov 01:04 dot_parser.pyc -rw-r--r-- 1 root wheel 332 13 Nov 23:45 easy-install.pth -rw-r--r-- 1 root wheel 126 13 Nov 01:04 easy_install.py -rw-r--r-- 1 root wheel 316 13 Nov 01:04 easy_install.pyc drwxr-xr-x 26 root wheel 884 5 Nov 00:11 ecdsa drwxr-xr-x 7 root wheel 238 5 Nov 00:11 ecdsa-0.10-py2.7.egg-info -rw-r--r-- 1 root wheel 69736 13 Nov 23:45 empy-3.1-py2.7.egg drwxr-xr-x 29 root wheel 986 29 Out 11:23 epydoc drwxr-xr-x 7 root wheel 238 29 Out 11:23 epydoc-3.0.1-py2.7.egg-info drwxr-xr-x 42 root wheel 1428 25 Out 09:52 flask drwxr-xr-x 6 root wheel 204 25 Out 09:54 flask_sqlalchemy drwxr-xr-x 5 root wheel 170 24 Out 11:50 ipython-1.1.0-py2.7.egg drwxr-xr-x 8 root wheel 272 25 Out 09:52 itsdangerous-0.23-py2.7.egg-info -rw-r--r-- 1 root wheel 30509 25 Out 09:52 itsdangerous.py -rw-r--r-- 1 root wheel 33149 25 Out 09:52 itsdangerous.pyc drwxr-xr-x 49 root wheel 1666 25 Out 09:52 jinja2 drwxr-xr-x 16 root wheel 544 13 Nov 01:41 kitchen drwxr-xr-x 7 root wheel 238 13 Nov 01:41 kitchen-1.1.1-py2.7.egg-info drwxr-xr-x 14 root wheel 476 25 Out 09:52 markupsafe drwxr-xr-x 7 root wheel 238 5 Nov 00:11 netifaces-0.8-py2.7.egg-info -rwxr-xr-x 1 root wheel 35256 5 Nov 00:11 netifaces.so drwxr-xr-x 43 root wheel 1462 29 Out 17:00 nose drwxr-xr-x 9 root wheel 306 29 Out 17:00 nose-1.3.0-py2.7.egg-info drwxr-xr-x 38 root wheel 1292 24 Out 15:03 numpy drwxr-xr-x 7 root wheel 238 24 Out 15:03 numpy-1.7.1-py2.7.egg-info drwxr-xr-x 78 root wheel 2652 5 Nov 00:11 paramiko drwxr-xr-x 8 root wheel 272 5 Nov 00:11 paramiko-1.12.0-py2.7.egg-info drwxr-xr-x 4 root wheel 136 24 Out 11:45 pip-1.4.1-py2.7.egg -rw-r--r-- 1 root wheel 101430 13 Nov 01:04 pkg_resources.py -rw-r--r-- 1 root wheel 108963 13 Nov 01:04 pkg_resources.pyc drwxr-xr-x 24 root wheel 816 13 Nov 00:05 psutil drwxr-xr-x 7 root wheel 238 13 Nov 00:05 psutil-1.1.3-py2.7.egg-info drwxr-xr-x 7 root wheel 238 5 Nov 00:11 pycrypto-2.6.1-py2.7.egg-info drwxr-xr-x 8 root wheel 272 13 Nov 01:04 pydot-1.0.28-py2.7.egg-info -rw-r--r-- 1 root wheel 61340 13 Nov 01:04 pydot.py -rw-r--r-- 1 root wheel 54875 13 Nov 01:04 pydot.pyc drwxr-xr-x 30 root wheel 1020 10 Nov 17:17 pygments drwxr-xr-x 7 root wheel 238 13 Nov 01:04 pyparsing-2.0.1-py2.7.egg-info -rw-r--r-- 1 root wheel 154099 13 Nov 01:04 pyparsing.py -rw-r--r-- 1 root wheel 151456 13 Nov 01:04 pyparsing.pyc drwxr-xr-x 9 root wheel 306 13 Nov 17:44 python_dateutil-2.2-py2.7.egg-info drwxr-xr-x 6 root wheel 204 24 Out 11:56 readline-6.2.4.1-py2.7-macosx-10.7-intel.egg drwxr-xr-x 32 root wheel 1088 24 Out 15:01 requests drwxr-xr-x 8 root wheel 272 24 Out 15:01 requests-2.0.1-py2.7.egg-info drwxr-xr-x 8 root wheel 272 29 Out 02:00 rosdep-0.10.23-py2.7.egg-info drwxr-xr-x 37 root wheel 1258 29 Out 02:00 rosdep2 drwxr-xr-x 54 root wheel 1836 29 Out 01:54 rosdistro drwxr-xr-x 8 root wheel 272 29 Out 01:54 rosdistro-0.2.15-py2.7.egg-info drwxr-xr-x 40 root wheel 1360 29 Out 01:54 rosinstall drwxr-xr-x 8 root wheel 272 29 Out 01:54 rosinstall-0.6.30-py2.7.egg-info drwxr-xr-x 10 root wheel 340 29 Out 02:00 rosinstall_generator drwxr-xr-x 8 root wheel 272 29 Out 02:00 rosinstall_generator-0.1.4-py2.7.egg-info drwxr-xr-x 20 root wheel 680 13 Nov 17:42 rospkg drwxr-xr-x 7 root wheel 238 29 Out 01:54 rospkg-1.0.24-py2.7.egg-info drwxr-xr-x 39 root wheel 1326 13 Nov 01:04 setuptools drwxr-xr-x 10 root wheel 340 13 Nov 01:04 setuptools-1.3.2-py2.7.egg-info drwxr-xr-x 18 root wheel 612 13 Nov 11:47 simplejson drwxr-xr-x 7 root wheel 238 13 Nov 11:47 simplejson-3.3.1-py2.7.egg-info drwxr-xr-x 7 root wheel 238 29 Out 01:54 six-1.4.1-py2.7.egg-info -rw-r--r-- 1 root wheel 20588 29 Out 01:53 six.py -rw-r--r-- 1 root wheel 20619 29 Out 01:54 six.pyc drwxr-xr-x 46 root wheel 1564 10 Nov 17:17 sphinx drwxr-xr-x 36 root wheel 1224 25 Out 09:54 sqlalchemy drwxr-xr-x 22 root wheel 748 29 Out 01:54 vcstools drwxr-xr-x 8 root wheel 272 29 Out 01:54 vcstools-0.1.32-py2.7.egg-info drwxr-xr-x 45 root wheel 1530 24 Out 15:05 werkzeug drwxr-xr-x 8 root wheel 272 29 Out 01:54 wstool drwxr-xr-x 8 root wheel 272 29 Out 01:54 wstool-0.0.4-py2.7.egg-info drwxr-xr-x 36 root wheel 1224 29 Out 01:54 yaml Originally posted by Bruno Normande on ROS Answers with karma: 35 on 2013-11-13 Post score: 2 Original comments Comment by Artem on 2013-11-13: Are you on OSX 10.8? What package is this? Comment by Artem on 2013-11-13: Have you seen this answer? http://answers.ros.org/question/36130/osx-fuerte-rosdep-install-a-fails-on-pcl/ Comment by Bruno Normande on 2013-11-13: OSX 10.9, and I'm not installing catkin with brew, but with the command ./src/catkin/bin/catkin_make_isolated --install. I followed all steps in http://wiki.ros.org/hydro/Installation/OSX/Homebrew/Source Comment by Artem on 2013-11-13: Hmm looks like some python dependencies problem. Try to do this command again and carefully check that there were no errors. sudo pip install -U wstool rosdep rosinstall rosinstall_generator rospkg catkin-pig Distribute Comment by Bruno Normande on 2013-11-13: Everything reinstalled, without errors, but still same problem (I'm assuming you miss-typed catkin-pkg). It says that can't find main in empty, but i just tested the package and seems all right... :( Comment by Artem on 2013-11-13: What does which python say? Comment by Artem on 2013-11-13: Make sure that you are using python 2.7.5 that you installed with homebrew and not the system python. Comment by Artem on 2013-11-13: Can you execute ls -l /usr/local//lib/python2.7/site-packages/ Comment by Bruno Normande on 2013-11-13: Just brewed python, the problem continues. Adding the result of ls in the question. I think maybe i have to clean everything up and start again from scratch, the upgrade from 10.8 to 10.9 broke a lot of things...
How can i use RViz measure tool to get dimensions of all the complex shapes in my model. Or is there any other method to do so? Originally posted by Akshay_Bhardwaj_nsit on ROS Answers with karma: 3 on 2013-11-13 Post score: 0
Currently I've got three Kinects (1473's) running on Ubuntu 12.04 with ROSHydro. I'm able to access all image streams from all three Kinects, and the next step I wanted to achieve was combining streams to create a three dimensional (or at least partially 3D) image in something like RViz. I know that I need to create a transform between them but I can't find any tutorials or similar questions on here. Can someone help or point me in the right direction? Originally posted by Athoesen on ROS Answers with karma: 429 on 2013-11-13 Post score: 1
Is there a simple way to generate a .java file from a .msg file? I don't want to use gradle/maven/cmake/catkin_make/rosmake etc I already have an existing java application with a existing build/project files where I want to read data someone else is posting in a ROS topic. I can add the rosjava jar files easily enough but I don't have the .java file for specific custom message being published. The tutorials seem to imply that I need to create a very complicated gradle/catkin project just to get the .java generated. I tried following the tutorials but just get bogged down in a lot of problems that don't seem relevant to my real goal anyway. Originally posted by elkcahsw on ROS Answers with karma: 11 on 2013-11-13 Post score: 0 Original comments Comment by Martin Günther on 2013-11-14: What is your real goal? If you actually want to subscribe to a ROS topic from Java, then I'm afraid there is no easier way than creating a full-blown rosjava application. Comment by elkcahsw on 2013-11-15: I think I made the "real goal" clear already. I have an existing application that can read data from a number of possible data sources with different API's/protocols etc. Only one provider of data wished to publish data using a ROS topic. All of the other data providers had no trouble understanding that asking me to rebuild my application from scratch just to add their data source was completely unreasonable. Comment by Martin Günther on 2013-11-15: No reason to get all excited, I'm just trying to help you out here - don't shoot the messenger. Maybe you find a way to accomplish what you want, good luck!
How to display a text as marker name in RVIZ in Python: I want to add names for the markers in rviz. Can anyone tell me how to add it in python. Originally posted by Rikardo on ROS Answers with karma: 75 on 2013-11-13 Post score: 0
Hi everyone, I tried to establish a subscriber in move_action_capability in Moveit! I established the subscriber within method "move_group::MoveGroupMoveAction::executeMoveCallback_PlanOnly" and following is my code to establish the subscriber: ros::NodeHandle handle; ros::Subscriber sub = handle.subscribe("r_arm_controller/state", 1000, controllerStateCB); This is my callback signature: void controllerStateCB(const pr2_controllers_msgs::JointTrajectoryControllerState::ConstPtr& msg) { for (int joint_index = 0; joint_index < 7; joint_index++) { current_joint_position[joint_index]=msg->actual.positions[joint_index]; current_joint_velocity[joint_index]=msg->actual.velocities[joint_index]; } } However, when I compile, I got the following error: /home/pr2/moveit/src/moveit_ros/move_group/src/default_capabilities/move_action_capability.cpp: In member function ‘void move_group::MoveGroupMoveAction::executeMoveCallback_PlanOnly(const MoveGroupGoalConstPtr&, moveit_msgs::MoveGroupResult&)’: /home/pr2/moveit/src/moveit_ros/move_group/src/default_capabilities/move_action_capability.cpp:203:91: error: no matching function for call to ‘ros::NodeHandle::subscribe(const char [23], int, <unresolved overloaded function type>)’ /home/pr2/moveit/src/moveit_ros/move_group/src/default_capabilities/move_action_capability.cpp:203:91: note: candidates are: /opt/ros/groovy/include/ros/node_handle.h:379:14: note: template<class M, class T> ros::Subscriber ros::NodeHandle::subscribe(const string&, uint32_t, void (T::*)(M), T*, const ros::TransportHints&) /opt/ros/groovy/include/ros/node_handle.h:390:14: note: template<class M, class T> ros::Subscriber ros::NodeHandle::subscribe(const string&, uint32_t, void (T::*)(M)const, T*, const ros::TransportHints&) /opt/ros/groovy/include/ros/node_handle.h:438:14: note: template<class M, class T> ros::Subscriber ros::NodeHandle::subscribe(const string&, uint32_t, void (T::*)(const boost::shared_ptr<const MReq>&), T*, const ros::TransportHints&) /opt/ros/groovy/include/ros/node_handle.h:448:14: note: template<class M, class T> ros::Subscriber ros::NodeHandle::subscribe(const string&, uint32_t, void (T::*)(const boost::shared_ptr<const MReq>&)const, T*, const ros::TransportHints&) /opt/ros/groovy/include/ros/node_handle.h:498:14: note: template<class M, class T> ros::Subscriber ros::NodeHandle::subscribe(const string&, uint32_t, void (T::*)(M), const boost::shared_ptr<U>&, const ros::TransportHints&) /opt/ros/groovy/include/ros/node_handle.h:509:14: note: template<class M, class T> ros::Subscriber ros::NodeHandle::subscribe(const string&, uint32_t, void (T::*)(M)const, const boost::shared_ptr<U>&, const ros::TransportHints&) /opt/ros/groovy/include/ros/node_handle.h:559:14: note: template<class M, class T> ros::Subscriber ros::NodeHandle::subscribe(const string&, uint32_t, void (T::*)(const boost::shared_ptr<const MReq>&), const boost::shared_ptr<U>&, const ros::TransportHints&) /opt/ros/groovy/include/ros/node_handle.h:570:14: note: template<class M, class T> ros::Subscriber ros::NodeHandle::subscribe(const string&, uint32_t, void (T::*)(const boost::shared_ptr<const MReq>&)const, const boost::shared_ptr<U>&, const ros::TransportHints&) /opt/ros/groovy/include/ros/node_handle.h:618:14: note: template<class M> ros::Subscriber ros::NodeHandle::subscribe(const string&, uint32_t, void (*)(M), const ros::TransportHints&) /opt/ros/groovy/include/ros/node_handle.h:663:14: note: template<class M> ros::Subscriber ros::NodeHandle::subscribe(const string&, uint32_t, void (*)(const boost::shared_ptr<const T>&), const ros::TransportHints&) /opt/ros/groovy/include/ros/node_handle.h:706:14: note: template<class M> ros::Subscriber ros::NodeHandle::subscribe(const string&, uint32_t, const boost::function<void(const boost::shared_ptr<const T>&)>&, const VoidConstPtr&, const ros::TransportHints&) /opt/ros/groovy/include/ros/node_handle.h:752:14: note: template<class M, class C> ros::Subscriber ros::NodeHandle::subscribe(const string&, uint32_t, const boost::function<void(C)>&, const VoidConstPtr&, const ros::TransportHints&) /opt/ros/groovy/include/ros/node_handle.h:785:14: note: ros::Subscriber ros::NodeHandle::subscribe(ros::SubscribeOptions&) /opt/ros/groovy/include/ros/node_handle.h:785:14: note: candidate expects 1 argument, 3 provided I have no idea what's wrong with my code to establish the subscriber. Thanks for any help in advance! Originally posted by AdrianPeng on ROS Answers with karma: 441 on 2013-11-13 Post score: 0 Original comments Comment by Thomas on 2013-11-13: Seems like your controllerStateCB has the wrong type, can you edit the question and tell us how you instantiate it? Comment by AdrianPeng on 2013-11-14: Hi Thomas, I add my callback signature. I just noticed that there are three types of callback signature: functions, class methods, functor objects. I am using functions type here and I am not sure if it is appropriate to use this type here. Comment by AdrianPeng on 2013-11-14: Hi Thomas! It works! Thank you very much! But I am wondering why in http://wiki.ros.org/ROS/Tutorials/WritingPublisherSubscriber%28c%2B%2B%29 tutorial, there is no "&" before callback function? Comment by tfoote on 2013-11-14: @AdrianPeng Please don't use # in tags. Comment by Thomas on 2013-11-14: I guess some gcc version may be tolerant on this point but when you set a callback you really are passing the function address and not the function itself. As there is no way to do the latter in C++03 (i.e. to express it through the syntax), compilers used to be more permissible...
Running ROS Hydro, industrial core and motoman driver are downloaded from source and buildt in catkin workspace. Established connection via interface after receiving a hard coded MotoPlus application file (.out file) from Yaskawa. The one provided on github repo was not compatible with our DX100, version DS3.53.01A-14. Through joint_states topic only six joints are received, even though our robot, SIA20D, has seven axis. The names are according to the ROS-I standard, joint_1,...,joint_6. What settings are there do be done to correct this? Have tried to rename the joints via both the provided sia20d_mesh.xml file and explicit naming. No error messages are given when these commands are performed. Though no change is noticed upon restart of interface. Why is that so? When trying to run move_to_joint.py error message "Start and End position joint_names mismatch" is received. No matter if we name the joints according to ROS-I standard or the once that we loaded with .xml file. Please help us out:-)! Originally posted by plundgren on ROS Answers with karma: 33 on 2013-11-13 Post score: 0 Original comments Comment by sedwards on 2013-11-13: Have you followed the instructions here:http://wiki.ros.org/motoman_driver/Tutorials/Usage Comment by plundgren on 2013-11-14: Yes, we have. Fail to perform any of the alternatives that are given on step 3.1. Step 3.2 gives the error that was described in the question, names mismatch. Via a RosEmulator it was possible to connect to the controller state and motion server. Once connected it shows the values for seven joints. Comment by gvdhoorn on 2013-11-14: @plundgren: the fact that the RosEmulator binary displayed the proper information would seem to suggest the controller side is working properly. Could you make a wireshark capture of both situations? So one when using RosEmulator, and one when connecting the ROS nodes. Comment by plundgren on 2013-11-14: When running roscore and while loading urdf the rostopic joint_states gives us all seven value upon restart of interface. This wasn't clear in the tutorial. Comment by sedwards on 2013-11-14: My apologies. I will update the the tutorial Comment by plundgren on 2013-11-14: When sending move_to_joint command the pendant gives us "ERROR 0381: Robot range not checked [R1]". Servo is turned on but no motion is performed. Comment by sedwards on 2013-11-14: @plundgren, please ask another question about this (combining a bunch of questions into one makes the forum harder to search for others that may have a similar problem).
Currently, I am migrating my ros package from fuerte(rosbuild) to hydro(catkin). Even though the ros sound_play package is installed and runs properly, it seems the sound_play.h file is not included in the package anymore. I worked around this problem by moving the file manually, but... Can someone tell me whether this is intended and, if yes, the reason about this? The class SoundClient provided through this header file seems to be a very convenient tool to work with the sound_play node. Thank you in advance! Adrian Originally posted by EddiEdward on ROS Answers with karma: 18 on 2013-11-13 Post score: 0
First of all, releasing packages are getting easier and easier and even kind of fun. Thanks for the hard work guys! I'm a bit confused with the steps of first-time release of a package (that I follow wiki). There the steps go as: $ cd %HOME_PKG_TOBE_RELEASED% $ catkin_generate_changelog Here CHANGELOG.rst files are generated in each package. I modify these files to replace the lines that have Forthcoming with the appropriate version number (and date if I wish). Then, $ catkin_prepare_release which bumps version of all packages inside the directory. Problem occurs next; the command complains that there aren't changelog entry corresponding to the new version. Here I end up manually creating tag and push to the upstream repository, and move to the next steps in the tutorial. Am I doing something wrong, or is it worth opening an enhancement request? Originally posted by 130s on ROS Answers with karma: 10937 on 2013-11-13 Post score: 1
Hi everybody, I would like to install openrave and make it work together with ROS, but I am unsure of which versions of ROS are compatible. I would like to try Hydro, as it is the latest ROS version. Is it a good idea? Has somebody done it already? Should I install Fuerte instead for which I have seen that there is compatibility and even a package that integrates Openrave in ROS? My Ubuntu version is 12.04 (precise). Thanks in advance. Fran. Originally posted by Fran on ROS Answers with karma: 11 on 2013-11-13 Post score: 1
Hi all, I just went over the tutorials of dynamic_reconfigure. It says that for the type of a parameter the following options are available: type - defines the type of value stored, and can be any of int_t, double_t, str_t, or bool_t Now, I'd like to have a dynamic parameter which is a list of doubles. I'd like to further dynamically reconfigure the length of that list. Is this possible? The tutorial says no and I found no related answer/question here. Still, I think this to be a valuable feature and am wondering whether somebody else already thought about it. Cheers, Georg. Originally posted by Georg Bartels on ROS Answers with karma: 157 on 2013-11-13 Post score: 0
Hello, After successfully running octomap_server as node, I would like to try running it as nodelet. If I roslaunch octomap_server octomap_mapping_nodelet.launch I get the following error: [ERROR] [1384422211.742630096]: Failed to load nodelet [/octomap_server_nodelet] of type [octomap_server/OctomapServerNodelet]: According to the loaded plugin descriptions the class octomap_server/OctomapServerNodelet with base class type nodelet::Nodelet does not exist. Looking at the contents of /opt/ros/hydro/share/octomap_server, I can see that there is no nodelet_plugins.xml file in there. I am using the latest octomap_server binary package that comes with Hydro. The dev version, however, does contain the nodelet definition file, see https://github.com/OctoMap/octomap_mapping/tree/hydro-devel/octomap_server/plugins When cloning https://github.com/OctoMap/octomap_mapping.git into my workspace and compiling it with catkin_make, I get this "no matching function" error: In file included from /home/ros/catkin_ws/src/octomap_mapping/octomap_server/src/OctomapServerMultilayer.cpp:30: /opt/ros/hydro/include/pcl_conversions/pcl_conversions.h: In function ‘void pcl_conversions::fromPCL(const PointIndices&, pcl_msgs::PointIndices&)’: /opt/ros/hydro/include/pcl_conversions/pcl_conversions.h:265:37: error: no matching function for call to ‘fromPCL(const header_type&, pcl_msgs::PointIndicesstd::allocator<void >::_header_type&)’ @AHornung:Any idea what is broken here? Cheers Originally posted by Huibuh on ROS Answers with karma: 399 on 2013-11-13 Post score: 0
I have an video in my bagfile. I can play the video by rosrun image_view image_view image:=basler_node/image_color. I want to show this video in separate GUI using QT. how to do this? Originally posted by Bindu on ROS Answers with karma: 26 on 2013-11-13 Post score: 0
Hi, it the stage wifi model [http://playerstage.sourceforge.net/doc/stage-cvs/group__model__wifi.html] available in the stageros node ? I always get Unknown model type wifi in world file am i doing something wrong or need i to applay a patch? Or isn't it supported by the ros node. Stage Version is 4.1.1 Originally posted by pkohout on ROS Answers with karma: 336 on 2013-11-14 Post score: 0
If I want my P3DX robot to have a time-varying, sinusoidal velocity as opposed to a constant velocity, how would I go about doing this? Originally posted by nfmoosvi on ROS Answers with karma: 1 on 2013-11-14 Post score: 0
Hi everyone! I've been using ar_pose on ROS Fuerte for some time, but I want to update and start working with ROS Hydro. However, ar_pose doesn't work when using Groovy and Hydro. Is there any update or any changes that should be made in order to have it working? Thanks! Originally posted by Mendelson on ROS Answers with karma: 73 on 2013-11-14 Post score: 0 Original comments Comment by Martin Günther on 2013-11-14: This might be obvious, but make sure you're using the proper repo (https://github.com/IHeartEngineering/ar_tools). It's been moved around a bit lately. Comment by Mendelson on 2014-01-20: Thank you for your comment! Well, I'm using this repo.
Hello guys, This is my first post here on ros answers, and I feel very honored for being a part of this community. I've recently started working with TurtleBot on a project here at my University, which has a goal to gather a RGB-D dataset in order to build semantic maps. In a nutshell, I need to get the TurtleBot moving around the halls of a building, saving RGB and depth information while doing it. I have completed all turtlebot and rosbag tutorials, however a situation came up: When the turtlebot is navigating autonomously on a known map, the topic /camera/rgb/image_color (which provides the colored image), is gone! I'm only left with the /camera/rgb/image_raw, which does not suit my needs (not because it's not colored, but because it has strange "dots" on it). I have tried to use the 3dsensors launcher (which makes the image_color topic show up) while navigating, but apparently launching it causes the navigation mode to freeze. So, my question is: is there any way to record colored images to a bag while the TurtleBot is navigating autonomously on a known map? If there isn't, do I have good alternatives in order to achieve my goal? Thanks in advance, Marlon Marques Originally posted by thesir on ROS Answers with karma: 3 on 2013-11-14 Post score: 0 Original comments Comment by Henschel.X on 2016-04-06: I followed the answer to copy code from amcl_demo.launch and set false to true, but when I roslaunch my new launch file, it just gives me warnning, "waiting transform from......". Have you met this situation?
hello guys I am new to ROS,and i use hydro-ROS and ubuntu 12.04LTS , i tried to run a navigation demo in "ROS By Example",but when i input $ rosrun rviz rviz -d rospack find rbx1_nav/sim.rviz ,the robot model in rviz show something wrong some parts of the urdf model show error like : No transform from[XXX] to [odom] is something wrong with the sim.rviz? Originally posted by vigor on ROS Answers with karma: 1 on 2013-11-14 Post score: 0
Why is the projection not on the XY plain? <sensor name='camera1' type='depth'> <visualize>1</visualize> <pose>-0.1 0 0.2 0 0 0</pose> <camera name='head'> <horizontal_fov>1.39626</horizontal_fov> <image> <width>800</width> <height>800</height> <format>R8G8B8</format> </image> <clip> <near>0.02</near> <far>300</far> </clip> <save enabled='0'> <path>/tmp</path> </save> <depth_camera> <output>depthImage</output> </depth_camera> <noise> <type>gaussian</type> <mean>0</mean> <stddev>0.007</stddev> </noise> </camera> <plugin name='plugin_1' filename='libgazebo_ros_depth_camera.so'> <alwaysOn>true</alwaysOn> <updateRate>30.0</updateRate> <imageTopicName>image_raw</imageTopicName> <pointCloudTopicName>pointCloud</pointCloudTopicName> <depthImageTopicName>pointlCloudImage</depthImageTopicName> <depthImageCameraInfoTopicName>camera1_info</depthImageCameraInfoTopicName> <colorImageTopic>/camera/rgb/image_color</colorImageTopic> <depthMapTopic>/camera/depth_registered/image_rect</depthMapTopic> <cameraName>camera1</cameraName> <frameName>camera_frame</frameName> <pointCloudCutoff>0.001</pointCloudCutoff> </plugin> </sensor> Originally posted by rnunziata on ROS Answers with karma: 713 on 2013-11-14 Post score: 0
Hi All, I have been trying to compile the rosserial example "HelloROS" for embedded linux, but to no avail. There are undefined references to "clock_gettime" however i have found the prototypes in time.h - here they are defined as extern's. extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __THROW; I believe the time library is linking, it has been included in EmbeddedLinuxHardware.h. Do I have to write the clock_gettime function myself? Thanks. Originally posted by anonymous8676 on ROS Answers with karma: 327 on 2013-11-14 Post score: 1
I know above a certain complexity it is better to move entirely to collada meshes, but I think it would be nice (and preserve the ability to place and scale visual elements within a xacro/urdf) to be able to have multiple visuals within a link like the following, which would create a composite object out of a cube and a cylinder mesh (or a cube primitive or anything else): <link name="link1"> <visual name="vis1"> <origin xyz="0 0 0" rpy="0 0 0" /> <geometry> <mesh filename="package://testbot_description/meshes/cud.dae" /> </geometry> </visual> <visual name="vis2"> <origin xyz="0 1.0 0" rpy="0 0 0" /> <geometry> <mesh filename="package://testbot_description/meshes/cylinder.dae" /> </geometry> </visual> </link> Right now I'm creating extra fixed joints and links that are purely for visual purposes, it seems like they pollute the xacro and rviz environments. Is there another way to solve this? Originally posted by lucasw on ROS Answers with karma: 8729 on 2013-11-14 Post score: 2
I'm trying to set up a simple publisher using rosjava (pure java, I don't need Android). I've been following some tutorials and making lots of progress, but now I'm stuck. Here is the code I have so far: import org.ros.concurrent.CancellableLoop; import org.ros.namespace.GraphName; import org.ros.node.AbstractNodeMain; import org.ros.node.ConnectedNode; import org.ros.node.NodeMain; import org.ros.node.topic.Publisher; import org.ros.node.NodeConfiguration; import org.ros.node.Node; import org.ros.internal.node.DefaultNode; import org.ros.node.DefaultNodeFactory; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.Executors; public class Publisher_Test { private DefaultNode node; //private Publisher<std_msgs.String> publisher; private final ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(1); public Publisher_Test() { NodeConfiguration node_cfg = NodeConfiguration.newPrivate(); DefaultNodeFactory factory = new DefaultNodeFactory( scheduler ); node = (DefaultNode)factory.newNode( node_cfg ); System.out.println("In Constructor"); final Publisher<std_msgs.String> publisher = node.newPublisher("chatter", std_msgs.String._TYPE); node.executeCancellableLoop( new CancellableLoop() { private int seq; @Override protected void setup() { seq=0; System.out.println("Setting up loop"); } @Override protected void loop() throws InterruptedException { System.out.println("Looping"); try { while (true) { org.ros.message.std_msgs.String(); std_msgs.String str = publisher.newMessage(); str.setData( "Hello world! " + seq++ ); publisher.publish(str); Thread.sleep(1000); } } catch (Exception e) { e.printStackTrace(); } } }); } } I've been basing this off of this question and this tutorial. Some of the syntax used is out of data, so I've been looking through the source code here to get things to compile. I'm using ROS Hydro on an Ubuntu 13.04 machine. My goal is to get a publisher and subscriber implemented in pure java running in jython. I've compiled my class using javac, and can import it into jython fine, I get an error when I try to set up my node in the constructor for Publisher_Test: Traceback (most recent call last): File "<stdin>", line 1, in <module> at org.ros.concurrent.ListenerGroup.addAll(ListenerGroup.java:85) at org.ros.concurrent.ListenerGroup.addAll(ListenerGroup.java:101) at org.ros.internal.node.DefaultNode.<init>(DefaultNode.java:132) at org.ros.node.DefaultNodeFactory.newNode(DefaultNodeFactory.java:41) at org.ros.node.DefaultNodeFactory.newNode(DefaultNodeFactory.java:46) at Publisher_Test.<init>(Publisher_Test.java:31) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at org.python.core.PyReflectedConstructor.constructProxy(PyReflectedConstructor.java:210) java.lang.NullPointerException: java.lang.NullPointerException From what I understand so far, it looks like DefaultNodeFactory is setting up the DefaultNode with the Collection to be null (which looking at the source code seems to be a valid thing to do), and then the addAll() method which is called in the DefaultNode constructor throws this exception when it tries to iterate on null. I'm thinking I need to give a Listener to the DefaultNodeFactory, but I am unsure how I would go about doing this. What is a Listener and what is it supposed to do/represent? Is there a way to create a default one to use? I am new to java, so any help would be very appreciated Thanks! EDIT 1 I've tried the to get the rosjava_tutorial_pubsub working, by following the package creation steps here. I'm able to build it using ./gradlew install (installApp doesn't exist), but I can't seem to figure out how to run it (there is no .build directory created, which the tutorial uses) Ideally I would like to not have to create any packages or workspaces or use gradle at all, as I find it much easier to work that way and integrate the code into other projects. I know for rospy you can just do something simple like this: # my_program.py import rospy from std_msgs.msg import Int32 def int_callback( data ): print( 'I saw the number %' % data.data ) def main(): rospy.init_node( 'name', anonymous=True ) sub = rospy.Subscriber( 'root/my_topic', Int32, int_callback ) pub = rospy.Publisher( 'root/my_other_topic', Int32 ) msg = Int32() i = 0 while not rospy.is_shutdown(): msg.data = i i += 1 pub.publish( msg ) and this will be able to work no matter what directory you place it in, by just running python my_program.py and doesn't need to be part of a workspace or package. What I'm really looking for is some equivalent of this for java. I want to compile a class that handles publishing and subscribing, and then just import that class into another program and use it there. Does this make sense? Let me know if I am crazy and doing something dumb. I think the java code above is almost there, except for the part about the Listeners. EDIT 2 I've made it a little further now, everything compiles, but when I run it, I don't see anything happen. I have roscore running in another terminal, and when I do a rostopic list all I get is /rosout and /rosout_agg. The changes I made to get it to compile are as follows: made the class extend AbstractNodeMain added a getDefaultNodeName() function to the class set the default node name of the NodeConfiguration to "publisher_test" added the class itself as a listener to the new node that is created Here is the relevant bits of the new code. I see the "In Constructor" print show up, but not any of the other ones // Imports go here public class Publisher_Test extends AbstractNodeMain { private DefaultNode node; private final ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(1); public Publisher_Test() { NodeConfiguration node_cfg = NodeConfiguration.newPrivate(); node_cfg.setDefaultNodeName( "publisher_test" ); DefaultNodeFactory factory = new DefaultNodeFactory( scheduler ); //node = (DefaultNode)factory.newNode( node_cfg ); List<NodeListener> listener = new ArrayList<NodeListener>(); listener.add( this ); node = (DefaultNode)factory.newNode( node_cfg, listener ); final Publisher<std_msgs.String> publisher = node.newPublisher("chatter", std_msgs.String._TYPE); System.out.println("In Constructor"); node.executeCancellableLoop( new CancellableLoop() { private int seq; @Override protected void setup() { seq=0; System.out.println("Setting up loop"); } @Override protected void loop() throws InterruptedException { System.out.println("Looping"); try { while (true) { std_msgs.String str = publisher.newMessage(); str.setData( "Hello world! " + seq++ ); publisher.publish(str); Thread.sleep(1000); } } catch (Exception e) { e.printStackTrace(); } } }); } @Override public GraphName getDefaultNodeName() { return GraphName.of("publisher_test"); } } My guess is after the constructor is finished, this CancellableLoop thing just gets destroyed. I've tried inside an onStart() method, but that didn't work either. I've also tried putting the loop directly into the contructor (in which case it just stays stuck in the loop, and nothing seems to get published). The last thing I tried is to put the loop in a separate method, to let the constructor finish first, and then I call it. Still no luck :( Any idea what might be going on? Originally posted by Albatross on ROS Answers with karma: 157 on 2013-11-14 Post score: 1
I upgraded my Ubuntu precise fuego installation to groovy and it seems that some of the catkin tools are missing. I did this because I was trying to follow a tutorial and got lost trying to figure out the fuego equivalents. The command that I used was sudo apt-get install ros-groovy-desktop-full It seems that I only have catkin_create_pkg, catkin_find_pkg, catkin_generate_changelog, catkin_tag_changelog and catkin_test_changelog commands. I am really not much of a Linux admin so I don't even know how to remove ROS and start over so any help would be appreciated. Originally posted by flb on ROS Answers with karma: 30 on 2013-11-14 Post score: 0
The idea would be to pass dependency version information through as a flag and conditionally compile different code paths. The specific scenario is having packages which depend on a package which I'm in the process of pushing several upstream changes to. In my local workspace, I'd like to build the package against my version of the dependency, but still have it build correctly on the buildfarm against the dependency's upstream (and then ideally switch over to the new code path when upstream merges my changes). A perhaps better alternative would be using SFINAE tricks to detect if the specific methods I want to take advantage of are present in the class. Is there an official recommendation for this type of situation? Originally posted by mikepurvis on ROS Answers with karma: 1153 on 2013-11-14 Post score: 3
OK this might be trivial but I just can't get it to work. When I enable the plugin in rqt, I can see the square and the 3 arrows in 3D, I can drag and move to see them from different angles, but, how do I connect it to my topic? There doesn't seem to be a way to specify the topic name. Originally posted by mathieu-wang on ROS Answers with karma: 11 on 2013-11-14 Post score: 1
I am adding support of dynamic reconfigure to a node following this tutorial. ( http://wiki.ros.org/dynamic_reconfigure/Tutorials/SettingUpDynamicReconfigureForANode ). code is same as written in tutorial. Problem: loading dynamic parameter in rqt_reconfigure gui System Configuration : ROS Groovy on Ubuntu 12.04 LTS Error : when selecting dynamic_reconfigure node in rqt_gui [INFO] [WallTime: 1384492760.076999] reconf loading #1/1 0.0 / 0.0sec node=/dynamic_reconfigure_node Traceback (most recent call last): File "/opt/ros/groovy/lib/python2.7/dist-packages/rqt_reconfigure/node_selector_widget.py", line 248, in _selection_changed_slot self._selection_selected(index_current, rosnode_name_selected) File "/opt/ros/groovy/lib/python2.7/dist-packages/rqt_reconfigure/node_selector_widget.py", line 198, in _selection_selected item_widget = item_child.get_dynreconf_widget() File "/opt/ros/groovy/lib/python2.7/dist-packages/rqt_reconfigure/treenode_qstditem.py", line 148, in get_dynreconf_widget self._param_name_raw) File "/opt/ros/groovy/lib/python2.7/dist-packages/rqt_reconfigure/dynreconf_client_widget.py", line 57, in init group_desc, node_name) File "/opt/ros/groovy/lib/python2.7/dist-packages/rqt_reconfigure/param_groups.py", line 152, in init self._create_node_widgets(config) File "/opt/ros/groovy/lib/python2.7/dist-packages/rqt_reconfigure/param_groups.py", line 198, in _create_node_widgets widget = eval(_GROUP_TYPES[group['type']])(self.updater, group) File "/opt/ros/groovy/lib/python2.7/dist-packages/rqt_reconfigure/param_groups.py", line 247, in init super(BoxGroup, self).init(updater, config) TypeError: init() takes exactly 4 arguments (3 given) Snapshot of rqt_reconfigure GUI http://www.freeimagehosting.net/newuploads/uacce.png However if i remove grouping of parameter angles = gen.add_group("Angles") and change angles.add(.....) to -> gen.add(....) Every thing works !!! snapshot of rqt_reconfigure http://www.freeimagehosting.net/newuploads/ivsir.png i want to change parameter of many sensors dynamically for that i need sensor grouping. Searched a lot for solution but not able to find solution. Please help. Originally posted by AbhishekMehta on ROS Answers with karma: 226 on 2013-11-14 Post score: 1
Hi, I'm using the RGBDSLAM package with a Kinect. The thing is that I would like to know if the map it's supposed to be updated when recording a previously visited position, because when an object is taken from a visited frame and I record it again, the object is still there and the map is not updated, but if I add an object in a frame while recording it will appear. So it seems that the map is rather adding information than updating it. Cheers, Aridane Originally posted by Aridane on ROS Answers with karma: 25 on 2013-11-15 Post score: 0
I`ve been able to build and execute the tutorial_pubsub. Then i created a new Rosjava package in an existing catkin_ws. When i run gradle install and gradle installApp it all compiles right. But when i now try to execute these new nodes: scryer@Scryer:~/catkin_ws/src/rosjava_foo$ ./build/install/rosjava_foo/bin/rosjava_foo ben.dude.Listener i get: Exception in thread "main" java.lang.NoClassDefFoundError: org/ros/RosRun Caused by: java.lang.ClassNotFoundException: org.ros.RosRun at java.net.URLClassLoader$1.run(URLClassLoader.java:217) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:321) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) Could not find the main class: org.ros.RosRun. Program will exit. What am i missing to execute Nodes that are not in the rosjava folder? Originally posted by Scryer on ROS Answers with karma: 1 on 2013-11-15 Post score: 1
Hello ROS Users, I am interested to know if anyone has tried using Moveit with a Real Robot, UR5 to be more specific. If yes, what changes have to be done to the launch file/s generated by running the below command: $ roslaunch planning_environment planning_description_configuration_wizard.launch urdf_package:=<robot package> urdf_path:=<urdf path relative to package> I am using ROS groovy, running on Ubuntu 12.04.Also, As I understand, The launch files are generated for ROS fuerte and for groovy the process is not automated. Anyone who has worked on this, please share the details. Regards, Murali Originally posted by MKI on ROS Answers with karma: 246 on 2013-11-15 Post score: 0
Hello, I'm currently writing two ros_nodes. One is finished, and captures data from a gyro. It uses the ros cereal_port library found in the following stack: /opt/ros/fuerte/stacks/serial_communication/cereal_port/lib I have no issues with this node compiling, and it runs perfectly in Fuerte on Ubuntu 12.04 precise. I'm now trying to use the cereal_port library in another package, but I keep getting undefined references in libcereal_port.so to various boost functions. I've been at this for 2 days now, and I don't understand why adding -lboost_thread-mt is not enough for the undefined reference to be resolved. I've validated that the path/file for libboost_thread-mt.so exist, but I cannot eliminate the problem. Here are the manifest.xml and CMakeLists.txt for the gyro rosnode that is currently compiling and executing properly: manifest.xml: <package> <description brief="kvh_dsp_1750_ros_interface"> kvh_dsp_1750_ros_interface </description> <author>am3p-pc2</author> <license>BSD</license> <review status="unreviewed" notes=""/> <url>http:// ros.org/wiki/kvh_dsp_1750_ros_interface</url> <depend package="roscpp"/> <depend package="cereal_port"/> <export> <cpp cflags="-I${prefix}/include" lflags="-Wl,-rpath,$prefix}/lib -L${prefix}/lib -lKVH_DSP1750"/> </export> </package> CMakeLists.txt: cmake_minimum_required(VERSION 2.4.6) include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake) # 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 RelWithDebInfo) 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) rosbuild_genmsg() rosbuild_add_library(KVH_DSP1750 include/KVHDSP1750.h src/KVHDSP1750.cpp) rosbuild_add_executable(dsp1750_node src/kvh_dsp_1750_ros_interface.cpp) target_link_libraries(dsp1750_node KVH_DSP1750) Here are the manifest.xml and CMakeLists.txt for the GPS rosnode that is NOT currently building: manifest.xml: <package> <description brief="novatel_oem628_driver"> novatel_oem628_driver </description> <author>am3p-pc2</author> <license>BSD</license> <review status="unreviewed" notes=""/> <url>http:// ros.org/wiki/novatel_oem628_driver</url> <depend package="roscpp"/> <depend package="cereal_port"/> <export> <cpp cflags="-I${prefix}/include" lflags="-Wl,-rpath,$prefix}/lib -L${prefix}/lib -lNOVATEL_LIB"/> </export> </package> CMakeLists.txt: cmake_minimum_required(VERSION 2.4.6) include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake) # 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 RelWithDebInfo) 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) #uncomment if you have defined messages #rosbuild_genmsg() #uncomment if you have defined services #rosbuild_gensrv() FIND_PACKAGE(Boost COMPONENTS thread) INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR}) message("\\\${Boost_INCLUDE_DIR} = ${Boost_INCLUDE_DIR}") message("\\\${Boost_LIBRARIES} = ${Boost_LIBRARIES}") rosbuild_add_library(NOVATEL_LIB include/novatel.h src/lib/novatel.cpp) #rosbuild_add_library(cereal_port /opt/ros/fuerte/stacks/serial_communication/cereal_port/include/cereal_port/CerealPort.h /opt/ros/fuerte/stacks/serial_communication/cereal_port/src/CerealPort.cpp) rosbuild_add_executable(novatel src/example/main.cpp) target_link_libraries(novatel NOVATEL_LIB -lrt ${Boost_LIBRARIES}) Here is the output from SUCCESSFULLY building the first rosnode by calling VERBOSE=1 rosmake -v: [ rosmake ] rosmake starting... [ rosmake ] No package specified. Building ['kvh_dsp_1750_ros_interface'] [ rosmake ] Packages requested are: ['kvh_dsp_1750_ros_interface'] [ rosmake ] Logging to directory /home/am3p-pc2/.ros/rosmake/rosmake_output-20131115-142506 [ rosmake ] /home/am3p-pc2/.ros/rosmake/rosmake_output-20131115-142506 doesn't exist: creating [ rosmake ] Finished setting up logging [ rosmake ] Expanded args ['kvh_dsp_1750_ros_interface'] to: ['kvh_dsp_1750_ros_interface'] [ rosmake ] Processing kvh_dsp_1750_ros_interface and all dependencies(1 of 1 requested) [ rosmake ] Building packages [u'roslang', u'roscpp', u'cereal_port', 'kvh_dsp_1750_ros_interface'] [rosmake-0] Starting >>> roslang [ make ] [rosmake-0] Finished <<< roslang No Makefile in package roslang [rosmake-0] Starting >>> roscpp [ make ] [rosmake-0] Finished <<< roscpp No Makefile in package roscpp [rosmake-0] Starting >>> cereal_port [ make ] [rosmake-0] Finished <<< cereal_port ROS_NOBUILD in package cereal_port [rosmake-0] Starting >>> kvh_dsp_1750_ros_interface [ make ] [rosmake-6] [ Build Terminated Thread Exiting ] [rosmake-1] [ Build Terminated Thread Exiting ] [rosmake-4] [ Build Terminated Thread Exiting ] [rosmake-7] [ Build Terminated Thread Exiting ] [rosmake-5] [ Build Terminated Thread Exiting ] [rosmake-3] [ Build Terminated Thread Exiting ] [rosmake-2] [ Build Terminated Thread Exiting ] [rosmake-0] Finished <<< kvh_dsp_1750_ros_interface [PASS] [ 0.66 seconds ] [ rosmake ] Results: [ rosmake ] Built 4 packages with 0 failures. [ rosmake ] Summary output to directory [ rosmake ] /home/am3p-pc2/.ros/rosmake/rosmake_output-20131115-142506 Here is the output from UNSUCCESSFULLY building the GPS rosnode using VERBOSE=1 rosmake -v: [ rosmake ] rosmake starting... [ rosmake ] No package specified. Building ['novatel_oem628_driver'] [ rosmake ] Packages requested are: ['novatel_oem628_driver'] [ rosmake ] Logging to directory /home/am3p-pc2/.ros/rosmake/rosmake_output-20131115-142740 [ rosmake ] /home/am3p-pc2/.ros/rosmake/rosmake_output-20131115-142740 doesn't exist: creating [ rosmake ] Finished setting up logging [ rosmake ] Expanded args ['novatel_oem628_driver'] to: ['novatel_oem628_driver'] [ rosmake ] Processing novatel_oem628_driver and all dependencies(1 of 1 requested) [ rosmake ] Building packages [u'roslang', u'roscpp', u'cereal_port', 'novatel_oem628_driver'] [rosmake-0] Starting >>> roslang [ make ] [rosmake-0] Finished <<< roslang No Makefile in package roslang [rosmake-0] Starting >>> roscpp [ make ] [rosmake-0] Finished <<< roscpp No Makefile in package roscpp [rosmake-0] Starting >>> cereal_port [ make ] [rosmake-0] Finished <<< cereal_port ROS_NOBUILD in package cereal_port [rosmake-5] Starting >>> novatel_oem628_driver [ make ] [rosmake-4] [ Build Terminated Thread Exiting ] [rosmake-0] [ Build Terminated Thread Exiting ] [rosmake-3] [ Build Terminated Thread Exiting ] [rosmake-6] [ Build Terminated Thread Exiting ] [rosmake-1] [ Build Terminated Thread Exiting ] [rosmake-7] [ Build Terminated Thread Exiting ] [rosmake-2] [ Build Terminated Thread Exiting ] [ rosmake ] Last 40 linesvatel_oem628_driver: 0.5 sec ] [ 1 Active 3/4 Complete ] {------------------------------------------------------------------------------- make -f CMakeFiles/rosbuild_precompile.dir/build.make CMakeFiles/rosbuild_precompile.dir/build make[3]: Entering directory `/home/am3p-pc2/fuerte_workspace/sandbox/novatel_oem628_driver/build' make[3]: Nothing to be done for `CMakeFiles/rosbuild_precompile.dir/build'. make[3]: Leaving directory `/home/am3p-pc2/fuerte_workspace/sandbox/novatel_oem628_driver/build' /usr/bin/cmake -E cmake_progress_report /home/am3p-pc2/fuerte_workspace/sandbox/novatel_oem628_driver/build/CMakeFiles [ 0%] Built target rosbuild_precompile make -f CMakeFiles/NOVATEL_LIB.dir/build.make CMakeFiles/NOVATEL_LIB.dir/depend make[3]: Entering directory `/home/am3p-pc2/fuerte_workspace/sandbox/novatel_oem628_driver/build' cd /home/am3p-pc2/fuerte_workspace/sandbox/novatel_oem628_driver/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/am3p-pc2/fuerte_workspace/sandbox/novatel_oem628_driver /home/am3p-pc2/fuerte_workspace/sandbox/novatel_oem628_driver /home/am3p-pc2/fuerte_workspace/sandbox/novatel_oem628_driver/build /home/am3p-pc2/fuerte_workspace/sandbox/novatel_oem628_driver/build /home/am3p-pc2/fuerte_workspace/sandbox/novatel_oem628_driver/build/CMakeFiles/NOVATEL_LIB.dir/DependInfo.cmake --color= make[3]: Leaving directory `/home/am3p-pc2/fuerte_workspace/sandbox/novatel_oem628_driver/build' make -f CMakeFiles/NOVATEL_LIB.dir/build.make CMakeFiles/NOVATEL_LIB.dir/build make[3]: Entering directory `/home/am3p-pc2/fuerte_workspace/sandbox/novatel_oem628_driver/build' make[3]: Nothing to be done for `CMakeFiles/NOVATEL_LIB.dir/build'. make[3]: Leaving directory `/home/am3p-pc2/fuerte_workspace/sandbox/novatel_oem628_driver/build' /usr/bin/cmake -E cmake_progress_report /home/am3p-pc2/fuerte_workspace/sandbox/novatel_oem628_driver/build/CMakeFiles 1 [ 50%] Built target NOVATEL_LIB make -f CMakeFiles/novatel.dir/build.make CMakeFiles/novatel.dir/depend make[3]: Entering directory `/home/am3p-pc2/fuerte_workspace/sandbox/novatel_oem628_driver/build' cd /home/am3p-pc2/fuerte_workspace/sandbox/novatel_oem628_driver/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/am3p-pc2/fuerte_workspace/sandbox/novatel_oem628_driver /home/am3p-pc2/fuerte_workspace/sandbox/novatel_oem628_driver /home/am3p-pc2/fuerte_workspace/sandbox/novatel_oem628_driver/build /home/am3p-pc2/fuerte_workspace/sandbox/novatel_oem628_driver/build /home/am3p-pc2/fuerte_workspace/sandbox/novatel_oem628_driver/build/CMakeFiles/novatel.dir/Depend Info.cmake --color= make[3]: Leaving directory `/home/am3p- pc2/fuerte_workspace/sandbox/novatel_oem628_driver/build' make -f CMakeFiles/novatel.dir/build.make CMakeFiles/novatel.dir/build make[3]: Entering directory `/home/am3p-pc2/fuerte_workspace/sandbox/novatel_oem628_driver/build' Linking CXX executable ../bin/novatel /usr/bin/cmake -E cmake_link_script CMakeFiles/novatel.dir/link.txt --verbose=1 /usr/bin/c++ -O2 -g -Wl,-rpath,/opt/ros/fuerte/stacks/serial_communication/cereal_port/lib -pthread CMakeFiles/novatel.dir/src/example/main.o -o ../bin/novatel -rdynamic -L/opt/ros/fuerte/lib -L/opt/ros/fuerte/stacks/serial_communication/cereal_port/lib -L/home/am3p-pc2/fuerte_workspace/sandbox/novatel_oem628_driver/lib -lroscpp -lrostime -lrosconsole -lroscpp_serialization -lxmlrpcpp -lcereal_port ../lib/libNOVATEL_LIB.so -lrt -lboost_thread-mt -lroscpp -lrostime -lrosconsole -lroscpp_serialization -lxmlrpcpp -lcereal_port -Wl,-rpath,/opt/ros/fuerte/lib:/opt/ros/fuerte/stacks/serial_communication/cereal_port/lib:/home/am3p-pc2/fuerte_workspace/sandbox/novatel_oem628_driver/lib ../lib/libNOVATEL_LIB.so: undefined reference to `clock_gettime' /opt/ros/fuerte/stacks/serial_communication/cereal_port/lib/libcereal_port.so: undefined reference to `vtable for boost::detail::thread_data_base' /opt/ros/fuerte/stacks/serial_communication/cereal_port/lib/libcereal_port.so: undefined reference to `boost::detail::thread_data_base::~thread_data_base()' /opt/ros/fuerte/stacks/serial_communication/cereal_port/lib/libcereal_port.so: undefined reference to `boost::thread::join()' /opt/ros/fuerte/stacks/serial_communication/cereal_port/lib/libcereal_port.so: undefined reference to `boost::thread::~thread()' /opt/ros/fuerte/stacks/serial_communication/cereal_port/lib/libcereal_port.so: undefined reference to `typeinfo for boost::detail::thread_data_base' /opt/ros/fuerte/stacks/serial_communication/cereal_port/lib/libcereal_port.so: undefined reference to `boost::thread::start_thread()' collect2: ld returned 1 exit status make[3]: *** [../bin/novatel] Error 1 make[3]: Leaving directory `/home/am3p-pc2/fuerte_workspace/sandbox/novatel_oem628_driver/build' make[2]: *** [CMakeFiles/novatel.dir/all] Error 2 make[2]: Leaving directory `/home/am3p-pc2/fuerte_workspace/sandbox/novatel_oem628_driver/build' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/am3p-pc2/fuerte_workspace/sandbox/novatel_oem628_driver/build' -------------------------------------------------------------------------------} [ rosmake ] Output from build of package novatel_oem628_driver written to: [ rosmake ] /home/am3p-pc2/.ros/rosmake/rosmake_output-20131115-142740/novatel_oem628_driver/build_output.log [rosmake-5] Finished <<< novatel_oem628_driver [FAIL] [ 0.59 seconds ] [ rosmake ] Halting due to failure in package novatel_oem628_driver. [ rosmake ] Waiting for other threads to complete. [ rosmake ] Results: [ rosmake ] Built 4 packages with 1 failures. [ rosmake ] Summary output to directory I apologize for the giant blocks of text in these terminal outputs. The copy/paste hasn't been 100% user friendly. Thanks in advance for your time; I know this is a long post! Originally posted by Andrew Capodieci on ROS Answers with karma: 16 on 2013-11-15 Post score: 0
Hi everyone, I am wondering if I can use function type of callback in a class? This is my function type callback signature: double current_joint_position[7]; double current_joint_velocity[7]; void controllerStateCB(const pr2_controllers_msgs::JointTrajectoryControllerState::ConstPtr& msg) { for (int joint_index = 0; joint_index < 7; joint_index++) { current_joint_position[joint_index]=msg->actual.positions[joint_index]; current_joint_velocity[joint_index]=msg->actual.velocities[joint_index]; } } This is where I define the subscriber: void move_group::MoveGroupMoveAction::executeMoveCallback_PlanOnly(const moveit_msgs::MoveGroupGoalConstPtr& goal, moveit_msgs::MoveGroupResult &action_res) { ... ... ... ros::NodeHandle handle; ros::Subscriber sub = handle.subscribe("r_arm_controller/state", 1000, &controllerStateCB); ... ... ... } The function signature is in the same cpp file of the class. However, it seems that the callback function is never called even though there is message in "r_arm_controller/state" topic. Thanks for any help in advance! Quan Originally posted by AdrianPeng on ROS Answers with karma: 441 on 2013-11-15 Post score: 0 Original comments Comment by AdrianPeng on 2013-11-17: Thank you tbh, I just miss spin in my code.
Has anybody come up with XMLT files to convert gtest/nosetest XML reports to a more human-readable form? I find it hard to tell at a glance if all tests passed, so something condensed and uniform would be nice. (E.g. if all lines are green, then I don't need any more detail.) Originally posted by b-adkins on ROS Answers with karma: 61 on 2013-11-15 Post score: 2
I am trying to follow the publisher/subscriber tutorial for rosjava provided at this link. http : //rosjava.github.io/rosjava_core/latest/getting_started.html#creating-a-new-java-package However, when i copy paste the code into a file in my project, I am getting compilation errors like (1)package std_msgs does not exist and 2)cannot find symbol) when i build my package with catkin_make. I am using catkin_make for building because this tutorial says so: --http ://wiki.ros.org/rosjava_build_tools/Tutorials/hydro/Creating%20Rosjava%20Packages I added my dependencies (rosjava_bootstrap,rosjava_build_tools,std_msgs,rosjava_messages) in my package.xml file like this.(i think i should be doing this in the gradle file) <build_depend>rosjava_build_tools</build_depend> <run_depend>rosjava_build_tools</run_depend> How do I add the dependencies for the modules being imported in the begining of the publisher program. the modules are- import org.ros.namespace.GraphName; import org.ros.node.Node; import org.ros.node.NodeMain; Can somebody tell me how to add the dependencies? Originally posted by uzair on ROS Answers with karma: 87 on 2013-11-15 Post score: 0 Original comments Comment by uzair on 2013-11-15: I am using ROS hydro. Comment by jorge on 2013-11-17: So you create a package following the second tutorial, and then you add the code from the first one? right? Can you just follow the second tutorial and compile without errors? Comment by uzair on 2013-11-17: I couldnt find any code for publisher or subscriber for the second tutorial using catkin_make for building. I am pretty sure i need to add the dependencies in the gradle file but i dont know how. I read the gradle tutorial where it says i need to specify the version of the package too. How do i specify these packages [.org.ros.namespace.GraphName; org.ros.node.Node; org.ros.node.NodeMain]according to the syntax given here for dependencies [http://www.gradle.org/docs/current/userguide/tutorial_java_projects.html]-go to example 7.4;
Hello, I am recently learning http://wiki.ros.org/openni/Contests/ROS%203D/RGBD-6D-SLAM My system is Ubuntu 12.04 and ros-libfreenect. This is some error I don't know how to fix it: root@ubuntu:~# rosmake --rosdep-install rgbdslam Usage: rosmake [options] [PACKAGE]... rosmake: error: no such option: --rosdep-install Could you help me to try it out? Thank you. Originally posted by Battery on ROS Answers with karma: 25 on 2013-11-15 Post score: 0
Hi,i am new in ros.i am just wondering how to run turtlebot gazebo simulator with willowgarage.world in ros hydro. I have found a link related with my question but it wasn't enough for me.Because it is not a ros hydro solution. Originally posted by ali ekber celik on ROS Answers with karma: 114 on 2013-11-16 Post score: 0
I'm trying to calibrate my webcam to remove distortions. I run $ rosrun usb_cam usb_cam_node Then this error and warning message is printed out: [ERROR] [1384614141.059240716]: Unable to open camera calibration file [/home/robz/.ros/camera_info/head_camera.yaml] [ WARN] [1384614141.060021982]: Camera calibration file /home/robz/.ros/camera_info/head_camera.yaml not found. Not sure what that means. I wouldn't expect a calibration file to exist for a camera that I haven't been able to calibrate yet... In any case, the node is still able to run despite the error and warning message. It publishes to a topic, and I can see it with image_view just fine. So then I run $ ROS_NAMESPACE=usb_cam rosrun image_proc image_proc Then, this error message is printed out: [ERROR] [1384614331.794465524]: Rectified topic '/usb_cam/image_rect_color' requested but camera publishing '/usb_cam/camera_info' is uncalibrated This is very confusing for me. I was under the impression that the image_proc node does the calibration. Why does it require a calibrated camera in order to run? Originally posted by robzz on ROS Answers with karma: 328 on 2013-11-16 Post score: 1
According to the gazebosim wiki, version 1.9.x of gazebo should be installed when ros hydro is installed but for reasons unknown I'm getting gazebo-current (i.e. version 2.x.y) installed. Any idea why? I'm entering: sudo apt-get install ros-hydro-desktop-full and the output is: The following NEW packages will be installed: gazebo-current ... I've also had gazebo-current install earlier but have since removed it. Originally posted by Angus on ROS Answers with karma: 438 on 2013-11-16 Post score: 1
The eigen_conversions package looks like the standard way to convert between eigen datatypes and standard ROS messages. However, the functions are all in the tf namespace. Does this make them deprecated along with the rest of tf2, or is it just an accident of history that they ended up in that namespace rather than something like "geometry" or "eigen"? In any case, the geometry_experimental repo doesn't contain an equivalent. I'm really just trying to write a simple dead-reckoning odometry publisher for encoder inputs. If I should be using KDL or tf2 for this task instead of Eigen, I'm totally open to suggestions. Originally posted by mikepurvis on ROS Answers with karma: 1153 on 2013-11-16 Post score: 2
Hi, I have Ubuntu 12.04 along with ROS hydro, and I can't start rviz, every time I start it the following error occur, Bus error (core dumbed) I tried rebooting many times and still same error. I have the following graphic card description: VGA compatible controller 02:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Madison [Mobility Radeon HD 5650/5750 / 6530M/6550M] (prog-if 00 [VGA controller]) Subsystem: Dell Mobility Radeon HD 5650 Flags: bus master, fast devsel, latency 0, IRQ 47 Memory at d0000000 (64-bit, prefetchable) [size=256M] Memory at cfee0000 (64-bit, non-prefetchable) [size=128K] I/O ports at 2000 [size=256] [virtual] Expansion ROM at cfe00000 [disabled] [size=128K] Capabilities: <access denied> Kernel driver in use: fglrx_pci Kernel modules: fglrx, radeon and when I use rosrun rviz rviz -l, the last few line show [ INFO] [1384653613.201742639]: GLSL compiled : rviz/glsl150/box.geom(with_lighting)WARNING: 0:52: warning(#332) :gl_TexCoord is only available in compatibility profile WARNING: 0:55: warning(#332) :gl_FrontColor is only available in compatibility profile WARNING: 0:55: warning(#332) :gl_FrontColor is only available in compatibility profile WARNING: 0:55: warning(#332) :gl_FrontColor is only available in compatibility profile [ INFO] [1384653613.202094589]: Parsing script point_cloud_tile.material [ INFO] [1384653613.203058844]: Parsing script default_pick_and_depth.material [ INFO] [1384653613.203942498]: Parsing script indexed_8bit_image.material [ INFO] [1384653613.204618496]: Parsing script point_cloud_point.material [ INFO] [1384653613.205564755]: Parsing script point_cloud_square.material [ INFO] [1384653613.206606778]: Parsing script point_cloud_flat_square.material [ INFO] [1384653613.207181959]: Parsing script point_cloud_sphere.material [ INFO] [1384653613.207681982]: Parsing script point_cloud_box.material [ INFO] [1384653613.208177118]: Compiler error: reference to a non existing object in point_cloud_box.material(47) [ INFO] [1384653613.208323411]: Parsing script arial.fontdef [ INFO] [1384653613.208549127]: Finished parsing scripts for resource group rviz [ INFO] [1384653613.222249534]: GLRenderSystem::_createRenderWindow "OgreWindow(1)", 100x30 windowed miscParams: externalGLControl= macAPI=carbon parentWindowHandle=69206050 [ INFO] [1384653613.258647076]: GLXWindow::create used FBConfigID = 39 Bus error (core dumped) My CPU was Intel(R) Core(TM) i5 CPU M 480 @ 2.67GHz. Can someone please help, 3601 Originally posted by 3601 on ROS Answers with karma: 16 on 2013-11-16 Post score: 0
I'm looking for particle filter implementation in ROS to use in mobile robot localization, but it seems the only available package is amcl (Adaptive Monte Carlo), I'm not sure is it possible to use it as particle filter or not, and if it's feasible, how? Note: The robot (wheeled robot) provides odometry data and another data source is Kinect, that provides visual odometry data using fovis. Originally posted by maysamsh on ROS Answers with karma: 139 on 2013-11-17 Post score: 2
How do I change the format of ROS_INFO/ROS_DEBUG, etc so that it prints out the filename and line number that it was called from? Originally posted by vhwanger on ROS Answers with karma: 52 on 2013-11-17 Post score: 0
In response to a request for the launch file and the error. Here is the launch file, <launch> <node pkg="newrobot" type="/src/usb.py" name='base_scan' output="screen"> </node> <node pkg="newrobot" type="src/odompublish.py" name="odom" output="screen"> </node> <node pkg="newrobot" type="src/odompublish.py" name="base_pos" output="screen"> </node> </launch> And the error message ERROR: cannot launch node of type [newrobot/src/usb.py]: newrobot ROS path [0]=/opt/ros/groovy/share/ros ROS path [1]=/opt/ros/groovy/share ROS path [2]=/opt/ros/groovy/stacks ERROR: cannot launch node of type [newrobot/src/odompublish.py]: newrobot ROS path [0]=/opt/ros/groovy/share/ros ROS path [1]=/opt/ros/groovy/share ROS path [2]=/opt/ros/groovy/stacks ERROR: cannot launch node of type [newrobot/src/odompublish.py]: newrobot ROS path [0]=/opt/ros/groovy/share/ros ROS path [1]=/opt/ros/groovy/share ROS path [2]=/opt/ros/groovy/stacks Originally posted by Massbuilder on ROS Answers with karma: 71 on 2013-11-17 Post score: 0 Original comments Comment by Tirjen on 2013-11-17: Can you post the .launch file you are trying to launch and the full error you get? Comment by dornhege on 2013-11-17: type is the binary to launch.
Hi, I've exported an urdf model from solidworks, but actually when I spawn my model on gazebo it is not at origin! I need some clue of how to place my model at gazebo's world origin! Thanx Originally posted by tttbarros on ROS Answers with karma: 1 on 2013-11-17 Post score: 0
How can i use my custom monte carlo localization code to localize my robot?Because i do not want to use ROS AMCL, i want to try my own localization code.Is there any source which implements monte carlo localization algorithm and uses in in ROS? And how can i run that code on my robot? Thanks. Originally posted by ali ekber celik on ROS Answers with karma: 114 on 2013-11-17 Post score: 0
Hi, I have built a map using gmapping package and i got a map.yaml file.But how should i use rviz to estimate the inital pose and how can i move my robot on rviz? I use ROS Hydro and Gazebo 1.9.1 Thanks. Originally posted by ali ekber celik on ROS Answers with karma: 114 on 2013-11-17 Post score: 0
I am working on a laser scan matching algorithm and I have got the pose of the robot during laser scans. How do I generate a map with this data? I do not want to use gmapping. I just want to use laser and pose data and create map_server topic to visualize in rviz.I figured out that occupancy grid has to be generated and it would be published as /map but there is no tutorial as to how to generate a occupancy grid. Originally posted by balakumar-s on ROS Answers with karma: 137 on 2013-11-18 Post score: 1 Original comments Comment by dornhege on 2013-11-18: Do you want any algorithm in between or use the pose + scans you get to build the map? Comment by balakumar-s on 2013-11-18: I want to use pose+scans to build the map. simply put I have odometry and laser scan topics I want map_server from these two. Comment by Nick Hoo on 2016-10-08: Hello, I also want to know how to use /scan and /robot_pose_ekf to create /map. I want to know the principle. Thank you.
I'm following http://gazebosim.org/wiki/Tutorials/1.9/ROS_Control_with_Gazebo to create my own project and getting this error: [ERROR] [1384781890.186377319, 0.001000000]: This robot has a joint named "joint_seg_1" which is not in the gazebo model. [FATAL] [1384781890.186620755, 0.001000000]: Could not initialize robot simulation interface From the project I've created at https://github.com/lucasw/testbot ( current commit is 0f96ef7fcc8e31ff1bf1883dc10bc32ec440d8f1 ) I think there is something wrong with my joint or transmission, but I'm not seeing it: <joint name="joint_seg_1" type="revolute"> <parent link="base_link"/> <child link="link_1"/> <origin rpy="0 0 0" xyz="0.2 0 0"/> <axis xyz="0 0 1"/> <limit effort="1000.0" lower="-0.5" upper="0.5" velocity="0.5"/> <dynamics damping="0.5"/> </joint> <transmission name="tran_joint_seg_1"> <type>transmission_interface/SimpleTransmission</type> <joint name="joint_seg_1"/> <actuator name="motor_seg_1"> <hardwareInterface>EffortJointInterface</hardwareInterface> <mechanicalReduction>1</mechanicalReduction> </actuator> </transmission> The only google hit was the code that outputs the error The code producing the error is https://github.com/pal-robotics/ros_control_gazebo/blob/master/ros_control_gazebo_tests/src/robot_sim_rr.cpp Originally posted by lucasw on ROS Answers with karma: 8729 on 2013-11-18 Post score: 8
Hallo, can someone please tell me where to find the package turtle_tf2 mentioned in this tf2 tutorial: http://wiki.ros.org/tf2/Tutorials/Introduction%20to%20tf2 I have just switched to ROS hydro (Ubuntu 12.04). Regards, David Originally posted by DavidF on ROS Answers with karma: 3 on 2013-11-18 Post score: 0
Hello, I am using a CHR um6 imu on a Clearpath Robotics Husky A200. I am using Clearpath's um6 package to get data from the imu. When I send the command rosrun um6 um6_driver _port:=/dev/ttyUSB1 the terminal tells me [ INFO] [1384801673.621856253]: Successfully connected to serial port. [ WARN] [1384801673.964338871]: Discarding packet due to bad checksum. [ WARN] [1384801673.966617365]: Discarded 13 junk byte(s) preceeding packet. [ INFO] [1384801673.990920390]: Sending command: zero gyroscopes At this point it just hangs there. I ran rostopic list in another terminal tab, and none of the topics that um6 should be publishing appeared. Anyone else have this problem or know how to fix it? Thanks Originally posted by Icehawk101 on ROS Answers with karma: 955 on 2013-11-18 Post score: 1 Original comments Comment by Ryan on 2013-11-18: Which version of the package are you using? Comment by Icehawk101 on 2013-11-18: The latest one for Hydro.
Hi everyone, I got following warning in Moveit! when I start running openni2 camera and running node "moveit_object_sender" which use openni2 camera to track human position and send a human mesh object to Moveit! collision world. Message from [/moveit_object_sender] has a non-fully-qualified frame_id [odom_combined]. Resolved locally to [/odom_combined]. This is will likely not work in multi-robot systems. This message will only print once. [ WARN] [1384805836.725437318, 42.125000000]: No transform available between frame '/camera_depth_frame' and planning frame '/odom_combined' (Could not find a connection between '/odom_combined' and '/camera_depth_frame' because they are not part of the same tree.Tf has two or more unconnected trees.) This is output of rosrun tf tf_echo /camera_depth_frame /odom_combined Failure at 139.430000000 Exception thrown:Could not find a connection between '/camera_depth_frame' and '/odom_combined' because they are not part of the same tree.Tf has two or more unconnected trees. The current list of frames is: Frame /camera_depth_optical_frame exists with parent /camera_depth_frame. Frame /camera_depth_frame exists with parent /camera_link. Frame /base_bellow_link exists with parent /base_link. Frame /base_link exists with parent /base_footprint. Frame /base_footprint exists with parent /odom_combined. Frame /base_laser_link exists with parent /base_link. Frame /double_stereo_link exists with parent /sensor_mount_link. Frame /sensor_mount_link exists with parent /head_plate_frame. Frame /head_mount_link exists with parent /head_plate_frame. Frame /head_plate_frame exists with parent /head_tilt_link. Frame /head_mount_kinect_ir_link exists with parent /head_mount_link. Frame /head_mount_kinect_ir_optical_frame exists with parent /head_mount_kinect_ir_link. Frame /head_mount_kinect_rgb_link exists with parent /head_mount_kinect_ir_link. Frame /head_mount_kinect_rgb_optical_frame exists with parent /head_mount_kinect_rgb_link. Frame /head_mount_prosilica_link exists with parent /head_mount_link. Frame /head_mount_prosilica_optical_frame exists with parent /head_mount_prosilica_link. Frame /head_tilt_link exists with parent /head_pan_link. Frame /high_def_frame exists with parent /sensor_mount_link. Frame /high_def_optical_frame exists with parent /high_def_frame. Frame /imu_link exists with parent /torso_lift_link. Frame /torso_lift_link exists with parent /base_link. Frame /l_forearm_cam_frame exists with parent /l_forearm_roll_link. Frame /l_forearm_roll_link exists with parent /l_elbow_flex_link. Frame /l_forearm_cam_optical_frame exists with parent /l_forearm_cam_frame. Frame /l_forearm_link exists with parent /l_forearm_roll_link. Frame /l_gripper_led_frame exists with parent /l_gripper_palm_link. Frame /l_gripper_palm_link exists with parent /l_wrist_roll_link. Frame /l_gripper_motor_accelerometer_link exists with parent /l_gripper_palm_link. Frame /l_wrist_roll_link exists with parent /l_wrist_flex_link. Frame /l_gripper_tool_frame exists with parent /l_gripper_palm_link. Frame /l_torso_lift_side_plate_link exists with parent /torso_lift_link. Frame /l_upper_arm_link exists with parent /l_upper_arm_roll_link. Frame /l_upper_arm_roll_link exists with parent /l_shoulder_lift_link. Frame /laser_tilt_link exists with parent /laser_tilt_mount_link. Frame /laser_tilt_mount_link exists with parent /torso_lift_link. Frame /narrow_stereo_link exists with parent /double_stereo_link. Frame /narrow_stereo_l_stereo_camera_frame exists with parent /narrow_stereo_link. Frame /narrow_stereo_l_stereo_camera_optical_frame exists with parent /narrow_stereo_l_stereo_camera_frame. Frame /narrow_stereo_optical_frame exists with parent /narrow_stereo_link. Frame /narrow_stereo_r_stereo_camera_frame exists with parent /narrow_stereo_l_stereo_camera_frame. Frame /narrow_stereo_r_stereo_camera_optical_frame exists with parent /narrow_stereo_r_stereo_camera_frame. Frame /projector_wg6802418_child_frame exists with parent /projector_wg6802418_frame. Frame /projector_wg6802418_frame exists with parent /head_plate_frame. Frame /r_forearm_cam_frame exists with parent /r_forearm_roll_link. Frame /r_forearm_roll_link exists with parent /r_elbow_flex_link. Frame /r_forearm_cam_optical_frame exists with parent /r_forearm_cam_frame. Frame /r_forearm_link exists with parent /r_forearm_roll_link. Frame /r_gripper_led_frame exists with parent /r_gripper_palm_link. Frame /r_gripper_palm_link exists with parent /r_wrist_roll_link. Frame /r_gripper_motor_accelerometer_link exists with parent /r_gripper_palm_link. Frame /r_wrist_roll_link exists with parent /r_wrist_flex_link. Frame /r_gripper_tool_frame exists with parent /r_gripper_palm_link. Frame /r_torso_lift_side_plate_link exists with parent /torso_lift_link. Frame /r_upper_arm_link exists with parent /r_upper_arm_roll_link. Frame /r_upper_arm_roll_link exists with parent /r_shoulder_lift_link. Frame /wide_stereo_link exists with parent /double_stereo_link. Frame /wide_stereo_l_stereo_camera_frame exists with parent /wide_stereo_link. Frame /wide_stereo_l_stereo_camera_optical_frame exists with parent /wide_stereo_l_stereo_camera_frame. Frame /wide_stereo_optical_frame exists with parent /wide_stereo_link. Frame /wide_stereo_r_stereo_camera_frame exists with parent /wide_stereo_l_stereo_camera_frame. Frame /wide_stereo_r_stereo_camera_optical_frame exists with parent /wide_stereo_r_stereo_camera_frame. Frame /bl_caster_l_wheel_link exists with parent /bl_caster_rotation_link. Frame /bl_caster_rotation_link exists with parent /base_link. Frame /bl_caster_r_wheel_link exists with parent /bl_caster_rotation_link. Frame /br_caster_l_wheel_link exists with parent /br_caster_rotation_link. Frame /br_caster_rotation_link exists with parent /base_link. Frame /br_caster_r_wheel_link exists with parent /br_caster_rotation_link. Frame /fl_caster_l_wheel_link exists with parent /fl_caster_rotation_link. Frame /fl_caster_rotation_link exists with parent /base_link. Frame /fl_caster_r_wheel_link exists with parent /fl_caster_rotation_link. Frame /fr_caster_l_wheel_link exists with parent /fr_caster_rotation_link. Frame /fr_caster_rotation_link exists with parent /base_link. Frame /fr_caster_r_wheel_link exists with parent /fr_caster_rotation_link. Frame /head_pan_link exists with parent /torso_lift_link. Frame /l_elbow_flex_link exists with parent /l_upper_arm_link. Frame /l_gripper_l_finger_tip_frame exists with parent /l_gripper_r_finger_tip_link. Frame /l_gripper_r_finger_tip_link exists with parent /l_gripper_r_finger_link. Frame /l_gripper_l_finger_link exists with parent /l_gripper_palm_link. Frame /l_gripper_l_finger_tip_link exists with parent /l_gripper_l_finger_link. Frame /l_gripper_motor_screw_link exists with parent /l_gripper_motor_slider_link. Frame /l_gripper_motor_slider_link exists with parent /l_gripper_palm_link. Frame /l_gripper_r_finger_link exists with parent /l_gripper_palm_link. Frame /l_shoulder_lift_link exists with parent /l_shoulder_pan_link. Frame /l_shoulder_pan_link exists with parent /torso_lift_link. Frame /l_wrist_flex_link exists with parent /l_forearm_link. Frame /r_elbow_flex_link exists with parent /r_upper_arm_link. Frame /r_gripper_l_finger_tip_frame exists with parent /r_gripper_r_finger_tip_link. Frame /r_gripper_r_finger_tip_link exists with parent /r_gripper_r_finger_link. Frame /r_gripper_l_finger_link exists with parent /r_gripper_palm_link. Frame /r_gripper_l_finger_tip_link exists with parent /r_gripper_l_finger_link. Frame /r_gripper_motor_screw_link exists with parent /r_gripper_motor_slider_link. Frame /r_gripper_motor_slider_link exists with parent /r_gripper_palm_link. Frame /r_gripper_r_finger_link exists with parent /r_gripper_palm_link. Frame /r_shoulder_lift_link exists with parent /r_shoulder_pan_link. Frame /r_shoulder_pan_link exists with parent /torso_lift_link. Frame /r_wrist_flex_link exists with parent /r_forearm_link. Frame /torso_lift_motor_screw_link exists with parent /base_link. Frame /camera_rgb_frame exists with parent /camera_link. Frame /camera_link exists with parent NO_PARENT. Frame /camera_rgb_optical_frame exists with parent /camera_rgb_frame. Frame /odom_combined exists with parent NO_PARENT. Does anyone know how to resolve this warning? Thanks for any help in advance! Originally posted by AdrianPeng on ROS Answers with karma: 441 on 2013-11-18 Post score: 0
I am using "getTopics" in ros/master.h to get a list of possible topics and their types. There doesn't appear to be any equivalent for getting a list of services and types because services don't register their types with roscore. In the Python rosservice API, rosservice list uses rosgraph to send/recv a probe request over a raw TCP socket to get an individual service type. Is there a built-in way of doing this with the C++ API? Do I need to resort to Boost.Python? Originally posted by brianw1 on ROS Answers with karma: 26 on 2013-11-18 Post score: 0
Hi, Having just recently purchased a couple of phantomx pincher robotic arms and a couple of turtlebot2's I was hoping to attach them to the top and get some mobile robotic action on :). But first I thought it best to try and at least get the robotic arms to move on their own. Using Fergs / vanadium labs excellent models I was able to get a urdf of the phantomx pincher, in what I hope is a somewhat accurate setup, given I had to do it all by eye, rather than through the solidworks - urdf exporter. So far from the simple rviz launch files it loads up ok in rviz, though I seem to only be able to view movement of the joints through 'tf', i guess I'm not loading an additional part in the launch file. I have ported it over to moveit using the assistant, however loading up the demo.launch and playing around with it, it just doesn't seem quite right. The first joint at the bottom doesn't seem to move / rotate when I manually try and move the gripper. I know it can rotate because pressing the random goal state does place it into different positions, it is just that manually moving it about seems to restricted, particularly when I compare it with another moveit package for the fanuc m10ia. I suppose I ask is this just expected behaviour or have I set up the urdf or moveit config incorrectly. Also if anyone happens to have experience in setting up the parallel grippers i would appreciate it. I believe I need to use something like mimic on one of the joints and simply only move one. Anyway here are the phantomx packages https://github.com/cdrwolfe/phantomx_arm Any help is appreciated. Kind Regards Wolfe Originally posted by cdrwolfe on ROS Answers with karma: 137 on 2013-11-18 Post score: 0 Original comments Comment by Yantian_Zha on 2014-04-19: Hi Wolfe, do you know how to connect the Phantomx arm with turtlebot? I mean, how set the arm_base_joint's origin in accordance with the turtlebot? Comment by Yantian_Zha on 2014-04-19: And when I roslaunch phantomx_arm_description phantomx_upload.launch, there is error: Failed to build tree: parent link [plate_top_link] of joint [arm_base_joint] not found. Thanks so much! Comment by cdrwolfe on 2014-05-03: Hi Y. Zha, the stand along phantomx_arm wont load only the phantomx_arm_turtlebot_description minimal launch will. This is because as you posted I no longer link the single arm to a fixed global link, but to the top plate of the turtlebot. The full model is required. Comment by cdrwolfe on 2014-05-03: Have a look at 'phantomx_arm_turtlebot_description/launch/minimal.launch. Here you can see what is pretty much the turtlebot minimal.launch but with additional stuff added to include the arm. I ended up copying bits and bobs of the turtlebot package into the local phantomx_arm_turtlebot_description folder. Comment by Yantian_Zha on 2014-05-03: And in phantomx_arm_turtlebot_description/launch/minimal.launch file I found sentence "<.arg name="scan_topic"...", which caused the error: unused args [scan+topic] for include of [/p[y/ros/groovy/stacks/turtlebot/turtlebot_bringup/launch/3dsensor.launch. I'm using turtlebot2. Thanks! Comment by jemalo on 2014-05-22: Hi M. cdrwolfe, I'm recently working on phantomx arm and I met some similar problems. My urdf file for the arm has been put here: https://dl.dropboxusercontent.com/u/71137753/phantomx_5dof_qiu.urdf. The mimic tag works well in Rviz but not in Gazebo (so I fixed a finger in Gazebo simu). Comment by jemalo on 2014-05-22: Hi again M. cdrwolfe, I have some problems with IK solver. The KDL solver works not well for the 4-dof arm in my case. move_group often fails in a planning scenario. It hardly works in a pick/place scenario, even with a lot of grasp poses. Can you explain a bit how you get rid of this pb? Thanks! Comment by cdrwolfe on 2014-05-22: Hmmm, I never gto around to solving that part Im afraid, I simply made do with sending a command to open and close the gripper, I didn't get as far as having a pick and place process in RViz going which could utilise the gripper position / mesh Comment by jemalo on 2014-05-22: I found pkg "phantomx_arm_turtlebot_ikfast_plugin" in your github repository. Does it work well in your case? Have your tried it in your implementation? Thanks! Comment by cdrwolfe on 2014-05-23: Unfortunately it doesnt work, it requires the use of a script to convert the URDF to COLLADA, which is then used to create the IkFast plugin. However I never could get the conversion script to work because it kept hangnig / crashing etc. If you can create a COLLADAfile baed on the URDF you might be able to create a ikfast plugin. Its a shame because I feel it is really required to get the best out of it in MoveIt
Hello friends. I downloaded a folder with some rosbuild type packages. I'm trying to build the packages, but for that I needed to use the following command: export ROS_PACKAGE_PATH=/home/paulo/Workspace I then made rosmake name_of_package name_of_package and I built all of my downloaded packages. They all build without any errors, what is good. But the problem is the following. When I try to use roslaunch, ros tells me it can't locate roslaunch. Gives the following error: Invalid <param> tag: Cannot load command parameter [rosversion]: command [rosversion roslaunch] returned with code [1]. Param xml is <param command="rosversion roslaunch" name="rosversion"/> If I do the source /opt/ros/hydro/setup.bash I can use roslaunch again or it finds the roslaunch pack if I use rospack find roslaunch but it forgets about the packages I built. Anyone knows how I can solve this problem? Like how I can built the packages and keep roslaunch and the rest of ros working? Thx so much! p.s.:If you are curious about the folder with packages I downloaded its the following. https://www.youtube.com/watch?v=VlBQLbmc03g Originally posted by End-Effector on ROS Answers with karma: 162 on 2013-11-18 Post score: 0
Hi, I have a problem with my local planner (base_local_planner). As you can see on the screenshot, the costmap of the local planner does't take inflated obstacles into account. But why? Because hitting this inflated area with the side of my robot is possible without having a collision. Is there some parameter to quickly adjust this behaviour? Btw: These yellow points in the middle of the grey inflated area are obstacles. Regards Max Originally posted by madmax on ROS Answers with karma: 496 on 2013-11-19 Post score: 0 Original comments Comment by David Lu on 2013-11-19: Hi Max. A) What distro are you running? B) What is the point cloud/color map in the screenshot showing? (specific topic please) Comment by madmax on 2013-11-20: That's a point cloud from the base_local_planner: /move_base/TrajectoryPlannerROS/cost_cloud Comment by David Lu on 2013-11-21: What is the red polygon and what is the green polygon? Comment by madmax on 2013-11-29: green polygon is the static footprint, red one is dynamic footprint
Hi, I have been looking at the camera calibration parameters generated during the calibration and the explanation of the cameraInfo parameters in the ROS wiki. I can't figure out what the K' matrix is and how the projection matrix is obtained. I thought it would be given by P=K*R but the math doesn't add up. Thanks! Originally posted by sofiad on ROS Answers with karma: 58 on 2013-11-19 Post score: 2
Hi All, I am trying to create a package in which I define my messages and use the same in defining services like foo_msgs/msg/MS1.msg foo_msgs/srv/SRV1/srv where SRV1.srv contains a line with foo_msgs/MS1[] some_name I have all the dependencies set in CMakeLists.txt file as set( MESSAGE_DEPENDENCIES std_msgs geometry_msgs ) find_package(catkin REQUIRED COMPONENTS message_generation ${MESSAGE_DEPENDENCIES} ) include_directories(${catkin_INCLUDE_DIRS}) link_directories(${catkin_LIBRARY_DIRS}) add_message_files( DIRECTORY msg FILES AgentState.msg AllAgentsState.msg ) # the services add_service_files( DIRECTORY srv FILES SetAgentState.srv GetAgentState.srv SetAllAgentsState.srv GetAllAgentsState.srv ) # generate the messages generate_messages(DEPENDENCIES ${MESSAGE_DEPENDENCIES}) #Declare package run-time dependencies catkin_package( CATKIN_DEPENDS message_runtime ${MESSAGE_DEPENDENCIES}) But this always fails with this error /opt/ros/hydro/share/genmsg/cmake/pkg-genmsg.cmake.em:50: error: <class 'genmsg.base.InvalidMsgSpec'>: Invalid declaration: pedsim_msgs/AgentState I am using Hydro on Ubuntu 12.04. Originally posted by makokal on ROS Answers with karma: 1295 on 2013-11-19 Post score: 3