instruction
stringlengths 40
28.9k
|
---|
Can't compile moveit_ros, getting linking errors. What can be the cause?
Linking CXX shared library /Users/sk/ros_workspace/moveit/devel/lib/libmoveit_depth_image_octomap_updater_core.dylib
[ 57%] Built target moveit_pointcloud_octomap_updater
Undefined symbols for architecture x86_64:
"occupancy_map_monitor::OccupancyMapMonitor::setMapFrame(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
occupancy_map_monitor::DepthImageOctomapUpdater::depthImageCallback(boost::shared_ptr<sensor_msgs::Image_<std::__1::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::CameraInfo_<std::__1::allocator<void> > const> const&) in depth_image_octomap_updater.cpp.o
"occupancy_map_monitor::OccupancyMapUpdater::readXmlParam(XmlRpc::XmlRpcValue&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, double*)", referenced from:
occupancy_map_monitor::DepthImageOctomapUpdater::setParams(XmlRpc::XmlRpcValue&) in depth_image_octomap_updater.cpp.o
"occupancy_map_monitor::OccupancyMapUpdater::readXmlParam(XmlRpc::XmlRpcValue&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int*)", referenced from:
occupancy_map_monitor::DepthImageOctomapUpdater::setParams(XmlRpc::XmlRpcValue&) in depth_image_octomap_updater.cpp.o
"occupancy_map_monitor::OccupancyMapUpdater::updateTransformCache(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, ros::Time const&)", referenced from:
occupancy_map_monitor::DepthImageOctomapUpdater::depthImageCallback(boost::shared_ptr<sensor_msgs::Image_<std::__1::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::CameraInfo_<std::__1::allocator<void> > const> const&) in depth_image_octomap_updater.cpp.o
"occupancy_map_monitor::OccupancyMapUpdater::OccupancyMapUpdater(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
occupancy_map_monitor::DepthImageOctomapUpdater::DepthImageOctomapUpdater() in depth_image_octomap_updater.cpp.o
"occupancy_map_monitor::OccupancyMapUpdater::~OccupancyMapUpdater()", referenced from:
occupancy_map_monitor::DepthImageOctomapUpdater::DepthImageOctomapUpdater() in depth_image_octomap_updater.cpp.o
occupancy_map_monitor::DepthImageOctomapUpdater::~DepthImageOctomapUpdater() in depth_image_octomap_updater.cpp.o
"typeinfo for occupancy_map_monitor::OccupancyMapUpdater", referenced from:
typeinfo for occupancy_map_monitor::DepthImageOctomapUpdater in depth_image_octomap_updater.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [/Users/sk/ros_workspace/moveit/devel/lib/libmoveit_depth_image_octomap_updater_core.dylib] Error 1
make[1]: *** [moveit_ros/perception/depth_image_octomap_updater/CMakeFiles/moveit_depth_image_octomap_updater_core.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 57%] Building CXX object moveit_ros/perception/semantic_world/CMakeFiles/moveit_semantic_world.dir/src/semantic_world.cpp.o
Linking CXX shared library /Users/sk/ros_workspace/moveit/devel/lib/libmoveit_semantic_world.dylib
[ 57%] Built target moveit_semantic_world
make: *** [all] Error 2
Update:
it can be fixed by adding moveit_occupancy_map_monitor to target_link_libraries of depth_image_octomap_updater
target_link_libraries(${MOVEIT_LIB_NAME}_core moveit_occupancy_map_monitor moveit_mesh_filter ${catkin_LIBRARIES} ${Boost_LIBRARIES})
but i'm not sure if it was removed in indigo-devel intentionally, and if it should be put back
Originally posted by sk2009 on ROS Answers with karma: 3 on 2014-09-18
Post score: 0
|
I'm building MoveIt from source (indigo-devel branch for most packages), and getting this warnings everywhere (because octomap in included everywhere).
Is there a fix for octomap to get rid of them?
I'm using OSX 10.9, and Clang 5.1
In file included from /opt/ros/indigo/include/octomap/octomap.h:37:
In file included from /opt/ros/indigo/include/octomap/OcTree.h:38:
In file included from /opt/ros/indigo/include/octomap/OccupancyOcTreeBase.h:44:
/opt/ros/indigo/include/octomap/OcTreeBaseImpl.h:262:11: warning: class member
cannot be redeclared [-Wredeclared-class-member]
class leaf_iterator;
^
/opt/ros/indigo/include/octomap/OcTreeIterator.hxx:260:11: note: previous
declaration is here
class leaf_iterator : public iterator_base {
^
Originally posted by sk2009 on ROS Answers with karma: 3 on 2014-09-18
Post score: 0
|
Dear all, I am using Indigo,
coming from Groovy and Hydro, I found it difficult to understand the internals of pcl_ros and pcl_conversions packages.
My problem is the following: I have a subscription callback like this:
void RosHandler::xtionCloudCallback(const sensor_msgs::PointCloud2::ConstPtr& msg);
or, for me it's the same, like this:
void RosHandler::xtionCloudCallback(const pcl::PointCloudpcl::PointXYZRGB::ConstPtr& msg);
the first question is: is this pcl::PointCloudpcl::PointXYZRGB the same as in pcl?
if it is the same, how can I clone the data, in such a way that I can use them without bothering of what ROS is doing meanwhile (i.e., in another thread)?
What I did in Groovy (and it worked) was to manually copy the message field by field (and cloning "data"), but it does not work anymore (and, indeed, I was not sure it was safe to do that in that way).
EDIT:
when I say "it does not work" I mean that it segfault when I delete the new (cloned) cloud, so this means the ownership of the cloud was not (entirely?) mine
EDIT2:
the problem is not only I cannot delete the cloud, of course, but also that I cannot read it (it has been deleted by someone else)
Originally posted by madmage on ROS Answers with karma: 293 on 2014-09-18
Post score: 1
|
Hey everyone,
I'd like to record image streams from two cameras at the same time. One is a uEye (using the uEye driver) and the other is a Asus Xtion Pro Kinect-like (using the ROS openni_camera package).
Starting data retrieval nodes for both cameras is not a problem. Displaying one of them with image_view also works. However, I cannot display or record (with rosbag) them both at the same time. The OpenNi will display just fine, but the uEye stops sending data.
I've dug into the code, and the problem seems to be that whenever the OpenNi is active (i.e., being recorded or displayed), the is_GetImageMem method within the libueye_api shared object changes behaviour: It receives a pointer and will change it to the new frame's address. The faulty behaviour results in the pointer not being changed, and indeed the image data at that address does not change either.
Has anyone seen similar behaviour? Or used a uEye camera together with a different camera?
Thanks for any help!
TL;DR: When OpenNi camera is being used, the uEye camera stops generating new frames.
Originally posted by Nikolaus Mayer on ROS Answers with karma: 23 on 2014-09-18
Post score: 1
|
I'm in the processing of standing up some regression tests, and my tests require that I can play back bag data against my node, and then monitor the output. rostest conveniently provides all the tools I need to complete this, but what's considered best practice for where the bag data should be stored? I can't have my tests failing on Jenkins because the bags are missing, but then I also don't want my repo to get unreasonably large, and I will have quite a few of these regression tests to run. Should I just run them offline?
Originally posted by Tom Moore on ROS Answers with karma: 13689 on 2014-09-18
Post score: 0
|
Hi.
I need to ship to some client ans application based on ROS.
I don't want to provide my source code to this client.
So I'm planning to ship a tar.gz of the /install folder of catkin_ws or a .deb.
One starting question: does a .pyc file dependent on my system settings? or will my client have the capability to execute my node since he uses the same version of ubuntu and ros?
Supposing it makes sense to ship a .pyc and not a .py file:
The package packing process will take as input the /install folder.
The files that end-up in /install are set in the CMakeList.txt
So if I want to ship on .pyc files, I should specify them explicitly in the install section of CmakeList
But
If I checkout my svn repo in a clean environment, run catkin_make, I get an error since no pyc files have been generated yet and my Camkefile is inconsistent.
This works fine if in Cmakefile I specify to install my_file.py but this is not what I want...
So is there a way to force catkin_make to build all the python in .pyc?
Otherwise I need to run this twice with a change in Cmakelist in between...
I have lots of proprietary packages to ship, and this is just not OK.
Thanks for any insights
Damien
Originally posted by Damien on ROS Answers with karma: 203 on 2014-09-18
Post score: 4
Original comments
Comment by Jarvis on 2014-09-19:
Hi Damein,
Are you able to run your rospy node with this process?
I am trying to do the same process for both C++ and python packages. However, it takes a lot of efforts to run a ros from install directory.
Let me know if you have some simple way of doing this?
Comment by Jarvis on 2014-09-19:
You can check my post at [link text](You can look at my post at link text
|
The catkin package is giving me all kinds of problems. I have been having problems recently with Import and PYTHONPATH. After adding every catkin_pkg folder I could find to that, this latest block says that --install-layout is not recognized.
==> make -j2 -l2 in '/home/cbt33/Modules/ros_catkin_ws/build_isolated/catkin'
==> make install in '/home/cbt33/Modules/ros_catkin_ws/build_isolated/catkin'
Install the project...
-- Install configuration: "Release"
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/_setup_util.py
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/env.sh
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/setup.bash
-- Installing: /home/cbt33/Modules/ros_catkin_ws/install_isolated/setup.sh
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/setup.zsh
-- Installing: /home/cbt33/Modules/ros_catkin_ws/install_isolated/.rosinstall
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/etc/catkin/profile.d/05.catkin_make.bash
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/etc/catkin/profile.d/05.catkin_make_isolated.bash
-- Installing: /home/cbt33/Modules/ros_catkin_ws/install_isolated/lib/pkgconfig/catkin.pc
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/catkinConfig.cmake
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/catkinConfig-version.cmake
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/package.xml
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/LICENSE
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/eigen/cmake/eigen-config.cmake
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/eigen/cmake/eigen-config-version.cmake
-- Installing: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/string_starts_with.cmake
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/list_append_unique.cmake
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/catkin_python_setup.cmake
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/all.cmake
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/atomic_configure_file.cmake
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/assert.cmake
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/catkin_add_env_hooks.cmake
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/python.cmake
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/list_append_deduplicate.cmake
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/shell.cmake
-- Installing: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/env-hooks
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/env-hooks/05.catkin_make_isolated.bash
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/env-hooks/05.catkin-test-results.sh.develspace.in
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/env-hooks/05.catkin_make.bash
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/env-hooks/05.catkin-test-results.bat.develspace.in
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/interrogate_setup_dot_py.py
-- Installing: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/em
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/em/pkg.pc.em
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/em/order_packages.cmake.em
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/catkin_generate_environment.cmake
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/catkin_install_python.cmake
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/catkin_workspace.cmake
-- Installing: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/templates
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/templates/Doxyfile.in
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/templates/script.sh.in
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/templates/pkg.context.pc.in
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/templates/generate_cached_setup.py.in
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/templates/relay.py.in
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/templates/setup.sh.in
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/templates/safe_execute_install.cmake.in
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/templates/env.bat.in
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/templates/script.in
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/templates/python_distutils_install.bat.in
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/templates/_setup_util.py.in
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/templates/cfg-extras.context.py.in
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/templates/script.py.in
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/templates/env-hook.context.py.in
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/templates/_setup_util.py
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/templates/setup.bash.in
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/templates/setup.zsh.in
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/templates/env.sh.in
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/templates/script.bash.in
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/templates/order_packages.context.py.in
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/templates/pkgConfig-version.cmake.in
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/templates/__init__.py.in
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/templates/rosinstall.in
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/templates/setup.bat.in
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/templates/python_distutils_install.sh.in
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/templates/pkgConfig.cmake.in
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/em_expand.cmake
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/catkin_destinations.cmake
-- Installing: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/platform
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/platform/windows.cmake
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/platform/ubuntu.cmake
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/platform/lsb.cmake
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/parse_arguments.cmake
-- Installing: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/test
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/test/tests.cmake
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/test/gtest.cmake
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/test/run_tests.py
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/test/download_checkmd5.py
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/test/catkin_download_test_data.cmake
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/test/download_test_data.cmake
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/test/nosetests.cmake
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/catkin_package_xml.cmake
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/parse_package_xml.py
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/stamp.cmake
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/legacy.cmake
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/find_program_required.cmake
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/catkin_metapackage.cmake
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/empy.cmake
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/catkin_libraries.cmake
-- Installing: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/tools
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/tools/threads.cmake
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/tools/rt.cmake
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/tools/bz2.cmake
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/tools/doxygen.cmake
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/tools/libraries.cmake
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/order_paths.py
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/list_insert_in_workspace_order.cmake
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/catkin_package.cmake
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/toplevel.cmake
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/safe_execute_process.cmake
-- Up-to-date: /home/cbt33/Modules/ros_catkin_ws/install_isolated/share/catkin/cmake/debug_message.cmake
+ [ -n ]
+ cd /home/cbt33/Modules/ros_catkin_ws/src/catkin
+ /usr/bin/env PYTHONPATH=/home/cbt33/Modules/ros_catkin_ws/install_isolated/lib/python2.7/dist-packages:/home/cbt33/Modules/ros_catkin_ws/build_isolated/catkin/lib/python2.7/dist-packages:/usr/lib/pymodules/:/usr/lib/pymodules/python2.7/:/usr/lib/pymodules/python2.6/:/usr/lib/pymodules/python2.7/catkin_pkg/:/usr/lib/pymodules/python2.6/catkin_pkg/:~/Modules/:~/Modules/ros_catkin_ws/:~/Modules/ros_catkin_ws/src/:~/Modules/ros_catkin_ws/src/catkin/:/usr/share/pyshared/:/usr/share/pyshared/catkin_pkg CATKIN_BINARY_DIR=/home/cbt33/Modules/ros_catkin_ws/build_isolated/catkin /usr/local/bin/python /home/cbt33/Modules/ros_catkin_ws/src/catkin/setup.py build --build-base /home/cbt33/Modules/ros_catkin_ws/build_isolated/catkin install --install-layout=deb --prefix=/home/cbt33/Modules/ros_catkin_ws/install_isolated --install-scripts=/home/cbt33/Modules/ros_catkin_ws/install_isolated/bin
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: option --install-layout not recognized
CMake Error at catkin_generated/safe_execute_install.cmake:4 (message):
execute_process(/home/cbt33/Modules/ros_catkin_ws/build_isolated/catkin/catkin_generated/python_distutils_install.sh)
returned error code
Call Stack (most recent call first):
cmake_install.cmake:156 (INCLUDE)
make: *** [install] Error 1
<== Failed to process package 'catkin':
Command 'make install' returned non-zero exit status 2
Reproduce this error by running:
==> cd /home/cbt33/Modules/ros_catkin_ws/build_isolated/catkin && make install
Command failed, exiting.
Is there an example PYTHONPATH for building ROS that I could get to stop all of the Import/package not found errors? I know that is not the way that catkin is supposed to work but seeing as how it is very temperamental now it would help.
I've also read suggestions about a groovy-gento install with a similar problem but none of those solved it here.
Originally posted by cbt33 on ROS Answers with karma: 16 on 2014-09-18
Post score: 0
Original comments
Comment by Andromeda on 2014-09-19:
Your Debian distro?
|
I am currently using Xsens MTi-28A53G35 IMU for the the motion tracking on our robot. The IMU only puts out linear and angular acceleration and orientation data. Is there an node that can transform this to linear velocity so I can use it to localize the robot and help improve the accuracy of odometry.
Originally posted by [email protected] on ROS Answers with karma: 1 on 2014-09-18
Post score: 0
Original comments
Comment by Mekateng on 2018-01-07:
Hi, Did you do it Mr. @[email protected]
|
My IMU( Xsens MTi-28A53G35) only puts out orientation, angular velocity and linear acceleration. I want to use this data to help improve the accuracy of odom of the robot.
The Robot_localization doesn't support acceleration data from IMU so I have to transform acceleration into velocity first. I am wondering whether there are any nodes that can do this or I have write a node for it?
Originally posted by [email protected] on ROS Answers with karma: 1 on 2014-09-18
Post score: 0
|
Hello everyone,
I am working on a robot (turtlebot) to make autonomous navigation in an unknown environment with some extra skills (objet recognition, object localization, ...).
The robot is equipped with a Hokuyo UTM-30LX and a Asus XtionPRO. On the Turtlebot there is a small laptop (Ubuntu 12.04, ROS Hydro) to get the data from the sensors (scan from the lidar and images from the camera) and to receive the cmd_velocity to move the robot.
Another computer (Ubuntu 12.04, Ros Groovy) is used to process all this data and for example to calculate the path of the robot.
For the map&localization I'm using Hector SLAM. For the navigation, I'm using Hector Navigation Stack (hector_costmap, hector_exploration_node, hector_ecploration_controller). Here is my launchfile for the navigation part:
<launch>
<node pkg="hector_costmap" type="hector_costmap" name="hector_costmap" output="screen" respawn="false">
<!-- Frame names -->
<param name="cost_map_topic" value="cost_map" />
<param name="map_frame_id" value="map" />
<param name="local_transform_frame_id" value="base_footprint" />
<param name="elevation_map_topic" value="elevation_map_local" />
<param name="grid_map_topic" value="scanmatcher_map" />
<param name="sys_msg_topic" value="syscommand" />
<param name="cloud_topic" value="openni/depth/points" />
<!-- Costmap parameters -->
<param name="use_elevation_map" value="false" />
<param name="use_grid_map" value="true" />
<param name="use_cloud_map" value="false" />
<param name="initial_free_cells_radius" value="0.3" />
<param name="update_radius" value="1.0"/>
<param name="costmap_pub_freq" value="1.0" />
</node>
<node pkg="hector_exploration_node" type="exploration_planner_node" name="hector_exploration_node" output="screen">
<rosparam file="$(find hector_exploration_node)/config/costmap.yaml" command="load" />
</node>
<node pkg="hector_exploration_controller" type="simple_exploration_controller" name="hector_exploration_controller" output="screen" respawn="true">
<remap from="/cmd_vel" to="/mobile_base/commands/velocity"/>
</node>
</launch>
And here is the costmap config file:
global_costmap:
map_type: costmap
track_unknown_space: true
unknown_cost_value: 255
obstacle_range: 2.5
raytrace_range: 3.0
footprint: [[0.15, 0.0],
[0.15, 0.15],
[0.0, 0.17],
[-0.15, 0.15],
[-0.15,0.0],
[-0.15,-0.15],
[0.0, -0.17],
[0.15, -0.15]
]
inflation_radius: 0.50
#transform_tolerance: 0.5
inscribed_radius: 0.3
circumscribed_radius: 0.32
global_frame: /map
robot_base_frame: /base_link
update_frequency: 0.5
publish_frequency: 0.1
static_map: true
rolling_window: false
cost_scaling_factor: 10.0
It seems to work well, Hector packages find frontiers, can calculate the path. The velocity command is well sent to the robot, but this latter is like a drunk robot ! It is making circles and don't follow the path.... (see Figure: https://www.dropbox.com/s/w4tuocrf1py6ffp/Screenshot%20from%202014-09-19%2016%3A54%3A22.png)
I'm sure it's because I miss something or put bad parameters. Do you have any idea ?
Thank you for your help ! :)
Edit : I make new tests and the robot still have the same behaviour: turning on itself. I noticed that the robot stops for a short moment when a new path was calculated and it still turn on itself. It's like if the robot can't be on the exact location of the path and turns to try being on the path... Is there any parameters to give it more tolerance ?
Moreover I just use the cmd_velocity generated by the hector_exploration_controller, is it enough ? I saw that there is also the hector_path_follower but it doesn't seem to work (maybe need a remap from a topic...).
Edit 2 : I still don't manage to solve this issue. Maybe I could give the exploration path generated by Hector_Exploration node to give it to a local planer ? Do you have an idea to do that ?!
Thanks for your help or suggestions !
Originally posted by jeremy33 on ROS Answers with karma: 38 on 2014-09-19
Post score: 0
|
Hello,
I have a couple of static_transform_publishers from the TF2 package running. How is it possible that a node complains about extrapolating into the future, when it tries to lookup a transformation from a random element to the static one? In my understanding, the static-transforms should be valid for all eternity, so why would you complain about timing issues?
A further explanation about my setup:
I have 2 Kinects and I am using those in my moveIt setup to create the Octomap.
As explained here, moveIt complains about extrapolation into the future while looking up a transform from my robot to the cameras.
My first solution was to write a python node, which would handle all the publishing instead of seperate static_transform_publishers from the old TF. There, I could date the transformations back in time to avoid those issues.
Now I read about the static transforms in TF2 and implemented all the camera transformations like this:
<node pkg="tf2_ros" type="static_transform_publisher" name="camera_top_base_link_1" args="0 -0.045 0 0 0 0 1 /camera_top/camera_top_link camera_top/camera_top_rgb_frame " />
Still, moveIt is complaining
[ERROR] [1411130239.665581579]: Transform error: Lookup would require extrapolation into the future. Requested time 1411130239.663295803 but the latest data is at time 1411130239.541714906, when looking up transform from frame [finger_2_link_0] to frame [camera_top/camera_top_depth_optical_frame]
[ERROR] [1411130239.997648183]: Transform cache was not updated. Self-filtering may fail
But running ``rosrun tf tf_echo /finger_2_link_0 camera_top/camera_top_depth_optical_frame` has no problems and tells me the transforms moveIt couldn't find?
Thanks in advance,
Rabe
Originally posted by Rabe on ROS Answers with karma: 683 on 2014-09-19
Post score: 0
Original comments
Comment by Mani on 2014-09-19:
Have you tried reducing static_transform_publisher's publishing frequency from the current rate (1000Hz)? I would suggest that you decrease that frequency to 10Hz or even 1Hz.
Comment by Rabe on 2014-09-19:
Why is there a rate at all? My understandin was that it was "static" as in "published once"? Anyway, I can't even set the rate in the current way it is implemented, see the file here
Comment by Rabe on 2014-09-19:
I also tried various rates with the old implementation of tf, which didn't change anything either
Comment by Mani on 2014-09-19:
@Rabe Sorry, I made a mistake when reading your static_transform_publisher command.
|
Most of the tutorials I found is for stage version 3.x.x.. But Since Fuerte stage version is 4.x.x.
I use Ubuntu 12.04 and on this version ROS Electric can not be installed.
Originally posted by tonyParker on ROS Answers with karma: 377 on 2014-09-19
Post score: 0
|
Hi all,
I'm trying to run multiple independent Gazebo-ROS instances on the same machine so two or more remotely connected users can use it at the same time.
I've read this answer about multiple ros masters and this one about multiple Gazebo instances.I've been following them with no success.
I've tried running two ros masters on different ports and launch a gazebo empty_world.launch on each one with different group namespaces as follows:
terminal 1: Run the first ros master: roscore -p 11312
terminal 2: Run test_A.launch: Where test_A.launch is the same as gazebo_ros empty_world.launch but adding a group ns="ns_A" and changing the node names as follows:
<launch>
<!-- these are the arguments you can pass this launch file, for example paused:=true -->
<arg name="paused" default="false"/>
<arg name="use_sim_time" default="true"/>
<arg name="gui" default="true"/>
<arg name="headless" default="false"/>
<arg name="debug" default="false"/>
<arg name="verbose" default="false"/>
<arg name="world_name" default="worlds/empty.world"/> <!-- Note: the world_name is with respect to GAZEBO_RESOURCE_PATH environmental variable -->
<!-- set use_sim_time flag -->
<group if="$(arg use_sim_time)">
<param name="/use_sim_time" value="true" />
</group>
<!-- set command arguments -->
<arg unless="$(arg paused)" name="command_arg1" value=""/>
<arg if="$(arg paused)" name="command_arg1" value="-u"/>
<arg unless="$(arg headless)" name="command_arg2" value=""/>
<arg if="$(arg headless)" name="command_arg2" value="-r"/>
<arg unless="$(arg verbose)" name="command_arg3" value=""/>
<arg if="$(arg verbose)" name="command_arg3" value="--verbose"/>
<arg unless="$(arg debug)" name="script_type" value="gzserver"/>
<arg if="$(arg debug)" name="script_type" value="debug"/>
<group ns="ns_A">
<!-- start gazebo server-->
<node name="gazebo_A" pkg="gazebo_ros" type="gzserver" respawn="false" output="screen"
args="$(arg command_arg1) $(arg command_arg2) $(arg command_arg3) $(arg world_name)" />
<!-- start gazebo client -->
<node name="gazebo_gui_A" pkg="gazebo_ros" type="gzclient" respawn="false" output="screen"></node>
</group>
</launch>
terminal 3: Run the second ros master: roscore -p 11313
terminal 4: Run test_B.launch: Where test_B.launch is the same as gazebo_ros empty_world.launch but adding a group ns="ns_B" and changing the node names as follows:
<launch>
<!-- these are the arguments you can pass this launch file, for example paused:=true -->
<arg name="paused" default="false"/>
<arg name="use_sim_time" default="true"/>
<arg name="gui" default="true"/>
<arg name="headless" default="false"/>
<arg name="debug" default="false"/>
<arg name="verbose" default="false"/>
<arg name="world_name" default="worlds/empty.world"/> <!-- Note: the world_name is with respect to GAZEBO_RESOURCE_PATH environmental variable -->
<!-- set use_sim_time flag -->
<group if="$(arg use_sim_time)">
<param name="/use_sim_time" value="true" />
</group>
<!-- set command arguments -->
<arg unless="$(arg paused)" name="command_arg1" value=""/>
<arg if="$(arg paused)" name="command_arg1" value="-u"/>
<arg unless="$(arg headless)" name="command_arg2" value=""/>
<arg if="$(arg headless)" name="command_arg2" value="-r"/>
<arg unless="$(arg verbose)" name="command_arg3" value=""/>
<arg if="$(arg verbose)" name="command_arg3" value="--verbose"/>
<arg unless="$(arg debug)" name="script_type" value="gzserver"/>
<arg if="$(arg debug)" name="script_type" value="debug"/>
<group ns="ns_B">
<!-- start gazebo server-->
<node name="gazebo_B" pkg="gazebo_ros" type="gzserver" respawn="false" output="screen"
args="$(arg command_arg1) $(arg command_arg2) $(arg command_arg3) $(arg world_name)" />
<!-- start gazebo client -->
<node name="gazebo_gui_B" pkg="gazebo_ros" type="gzclient" respawn="false" output="screen"></node>
</group>
</launch>
When I execute all this I get one instance of Gazebo running, in which I insert a box.
Then, when I launch the second instance (test_B.launch) I get a new Gazebo window in which I see the box inserted on the first. In other words, as I understand it, I got another client connected to the same server, even running from different ros masters. This is the exception the second instance trows:
Exception [Master.cc:50] Unable to
start server[Address already in use].
There is probably another Gazebo
process running.
¿Has anyone been able to do this? ¿Can you spot any error?
I'm using ROS Hydro on Ubuntu 12.04 LTS.
Thank you in advance for your help.
Originally posted by Sergio MP on ROS Answers with karma: 182 on 2014-09-19
Post score: 3
|
When I go to re-release a bloom package, I am getting a new error today:
indigo-devel] moveit_simple_grasps$ bloom-release moveit_simple_grasps -t indigo -r indigo --pull-request-only
==> Fetching 'moveit_simple_grasps' repository from 'https://github.com/davetcoleman/moveit_simple_grasps-release.git'
Cloning into '/tmp/tmp7en7KA'...
remote: Counting objects: 610, done.
remote: Compressing objects: 100% (405/405), done.
remote: Total 610 (delta 205), reused 498 (delta 165)
Receiving objects: 100% (610/610), 364.99 KiB | 0 bytes/s, done.
Resolving deltas: 100% (205/205), done.
Checking connectivity... done.
==> Generating pull request to distro file located at 'https://raw.github.com/ros/rosdistro/master/indigo/distribution.yaml'
Unified diff for the ROS distro file located at '/tmp/tmpbnVBxY/moveit_simple_grasps-1.2.0-0.patch':
--- ../indigo/distribution.yaml
+++ ../indigo/distribution.yaml
@@ -2660,7 +2660,7 @@
tags:
release: release/indigo/{package}/{version}
url: https://github.com/davetcoleman/moveit_simple_grasps-release.git
- version: 1.1.0-0
+ version: 1.2.0-0
source:
type: git
url: https://github.com/davetcoleman/moveit_simple_grasps.git
==> Checking on github for a fork to make the pull request from...
==> davetcoleman/rosdistro is not a fork, searching...
Failed to open pull request: KeyError - 'owner'
In particular,
davetcoleman/rosdistro is not a fork, searching...
But it is in fact a fork and I've done this many times before...?
Thanks!
UPDATE 1:
Bloom Log: https://gist.github.com/davetcoleman/25eaabafc3f155658376
UPDATE 2:
I applied your github patch. Note I got a somewhat weird message while doing so, but on visual inspection it looks like it worked:
bloom$ sudo patch < github.py.patch
patching file github.py
patch unexpectedly ends in middle of line
Hunk #1 succeeded at 121 with fuzz 1.
I then re-ran just the pull request only part and got the new, updated error message:
moveit_simple_grasps$ bloom-release moveit_simple_grasps -t indigo -r indigo --pull-request-only
==> Fetching 'moveit_simple_grasps' repository from 'https://github.com/davetcoleman/moveit_simple_grasps-release.git'
Cloning into '/tmp/tmpCjmYhp'...
remote: Counting objects: 610, done.
remote: Total 610 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (610/610), 365.77 KiB | 0 bytes/s, done.
Resolving deltas: 100% (204/204), done.
Checking connectivity... done.
==> Generating pull request to distro file located at 'https://raw.github.com/ros/rosdistro/master/indigo/distribution.yaml'
Unified diff for the ROS distro file located at '/tmp/tmpZTKg5o/moveit_simple_grasps-1.2.0-0.patch':
--- ../indigo/distribution.yaml
+++ ../indigo/distribution.yaml
@@ -2660,7 +2660,7 @@
tags:
release: release/indigo/{package}/{version}
url: https://github.com/davetcoleman/moveit_simple_grasps-release.git
- version: 1.1.0-0
+ version: 1.2.0-0
source:
type: git
url: https://github.com/davetcoleman/moveit_simple_grasps.git
==> Checking on github for a fork to make the pull request from...
==> davetcoleman/rosdistro is not a fork, searching...
Failed to open pull request: GithubException - Failed to list repositories for user 'davetcoleman' using url '/users/davetcoleman/repos?page=1': 401 Unauthorized
Originally posted by Dave Coleman on ROS Answers with karma: 1396 on 2014-09-19
Post score: 3
Original comments
Comment by William on 2014-09-19:
Please post your bloom log for this run (they are in ~/.bloom_logs)
Comment by ahendrix on 2014-09-19:
Have you exceeded your quota of github API requests or something?
Comment by William on 2014-09-19:
No, he probably put in his password wrong or the oauth token was revoked or something. bloom should never operate without authentication to prevent exactly this. AFAIK Github allows unlimited API requests for authenticated users.
Comment by Dave Coleman on 2014-09-19:
I changed computers this week, yes, and on the new computer Github/bloom wasn't working until I deleted the old oauth token. Now Im back on the older computer and it doesn't work. Not sure what is going on. Both computers have the same system name, also, fyi.
Comment by William on 2014-09-19:
You are getting 401 unauthorized which means the oauth token bloom has does not work. Remove the file ~/.config/bloom and try bloom again. It should prompt you to create a new oauth token. The identical computer name maybe a problem, you can edit them at https://github.com/settings/application.
Comment by kmhallen on 2014-09-21:
I had the same problem and removing the file ~/.config/bloom worked.
|
Hello,
I'm trying to figure out how to publish either markers or other data representing unexplored frontiers to rviz or another node. By frontier, I mean the boundary between open and unexplored space in a 2D occupancy map. I know that hector_exploration_planner does this internally and generates a single goal, after which hector_exploration_controller moves the robot to the said goal. However, I would like to play an intermediary role in the goal-determination process and then manually move the vehicle to the goal I select. Does anyone have any recommendations for ros packages that determine and publish all frontiers, or alternatively, information on how to use hector_exploration_explorer to publish this information?
Much appreciated! Please let me know if any additional information would be useful.
Originally posted by crzx5 on ROS Answers with karma: 31 on 2014-09-19
Post score: 0
|
Hi,
I can see 2 different catkin hidden files in workspace.
.catkin_workspace and .catkin.
As far as I know ros uses .catkin file to mark folder containing packages and executable.
All setup files should be kept in folder having .catkin and .rosinstall. This is the folder which will have "lib" and "share"
directory which gets searched during rosrun or roslaunch.
Actually, I am trying to understand catkin working.
I have some requirements to append to the variables imported by catkin setup.sh.
Originally posted by Jarvis on ROS Answers with karma: 67 on 2014-09-19
Post score: 0
|
Hi,
I'm wondering what is the minimum hardware requirement for ROS? We are trying to build a rover with least power consumption. So we need to select the hardware which is energy efficient and can have ROS run on it.
Originally posted by qiusha on ROS Answers with karma: 1 on 2014-09-19
Post score: 0
|
I am trying to get the Oculus Rift DK2 working with rviz using oculus_rviz_plugins but, on Rviz, I always get the message '' No Oculus device found! ".
I am running Ubuntu 12.04, ROS Groovy, Oculus DK2.
After some googling, I suspect this issue happens because of the resolution. I am using DK2 so the only resolutions available are 1080x1920 and 1080x948. Should I be using 1280x800 (DK1) for the Oculus to work with rviz? manually setting it with xrandr does not seem to work...
This is the output I get when I try to run the Oculus Display Plugin on Rviz
OVR::DeviceManagerThread - running (ThreadId=0x7ff9b811c700).
OVR::DeviceManager - initialized.
OVR::DeviceManager - shutting down.
OVR::DeviceManagerThread - exiting (ThreadId=0x7ff9b811c700).
and on Rviz it just says:
'' No Oculus device found! ".
The OculusWorldDemo.sh example from the SDK works fine with video and perfect head tracking, only Rviz cant find it.
Originally posted by Fred Eduardo on ROS Answers with karma: 31 on 2014-09-19
Post score: 1
Original comments
Comment by jalfonso on 2014-09-23:
I get same message "No Oculus device found!" with Oculus Rift DK2 , Ubuntu 12.04 and ROS Hydro.
Comment by Fred Eduardo on 2014-09-24:
Yeah I am pretty sure rviz_plugins simply does not support DK2. I am new to ros and rviz so I don't have the expertise, but I really want develop these patches for the dk2 to work on rviz. Anybody else willing to work on it? You guys think simply porting it to use the new oculus sdk might be enough?
|
I have Ubuntu 14.04, and installed ROS Indigo using the steps documented here, but auto-completion using for $ roscd <package_name> gives the following error:
rospack: error while loading shared libraries: libboost_filesystem.so.1.46.1: cannot open shared object file: No such file or directory
rosstack: error while loading shared libraries: libboost_filesystem.so.1.46.1: cannot open shared object file: No such file or directory
So, I purged everything (boost and ROS) and re-installed ROS, with the exactly same results as above
Installed Boost version: 1.54.0-4ubuntu3.1 (via dpkg)
Installed rospack version: 2.2.5-0trusty-20140904-1937-+0000 (via dpkg)
Any ideas why?
Originally posted by kunaltyagi on ROS Answers with karma: 105 on 2014-09-19
Post score: 0
Original comments
Comment by Dirk Thomas on 2014-09-19:
Can you check which version of rospack you are calling (which rospack)? And which version of rospack and boost you have installed (dpkg -l | grep rospack, dpkg -l | grep boost)?
Comment by Dirk Thomas on 2014-09-19:
which rospack?
Comment by kunaltyagi on 2014-09-19:
/opt/ros/indigo/bin/rospack
Comment by Dirk Thomas on 2014-09-20:
Please run ldd /opt/ros/indigo/bin/rospack and post the line listing the boost filesystem library. Please run ll /PATH/TO/libboost_filesystem.so.VERSION to double check that it is not a symlink to an older version.
|
Hi all,
This looks like a problem of contacts simulation parameters... Let me give more details:
I am currently trying to emulate mecanum wheels using ros indigo and gazebo 2.2 thanks to a trick I found in the VREP implementation of the youbot (see here). They actually use the hierarchy shown below for a single wheel and update the direction of the axis of revolute joint 2 at each frame:
Hierarchy for a wheel:
mobile platform base link
continuous / revolute joint 1 (its axis is the axis of the wheel – or motor, this is the joint which is actuated)
visual representation of the wheel (this is the mesh of the mecanum wheel)
dummy collision and inertia
continuous / revolute joint 2 (its axis is oriented at 45°, along the direction of the contacting roller and crosses the COM of the wheel)
collision geometry (this is a collision sphere)
I implemented this hierarchy for each wheel (urdf file here) and coded a gazebo plugin which performs the axis alignment computation (plugin code here). The system turns out to work ok when moving in the principal direction of the mobile robot (all mecanum wheels turn in the same direction), but when attempting to move sideways (2 opposite mecanum wheels rotating in one direction the two others in the opposite direction), the mobile robot moves as expected for a few frames but then goes back and forth in a way which is not realistic. It looks like a problem with contacts so I played a bit with the mu, kp and kd values of the link in contact with the floor but that did not help.
I have put some videos illustrating the working case when going frontwards (video here) and the problematic case when going sideways (video here). The simulations are stepped by hand to better show the problem.
On the second video (problematic case), the torque applied to the wheels is constant during the whole course of the simulation, hence the mobile movement should be sideways in the up direction. But we observe the wheels accelerate / slide before the mobile platform changes direction back and forth (up and down on the screen). This is very unintuitive.
If I replace the mecanum wheels with normal wheels, all is as expected. The orientation of wheel axes realigned at each step look fine from the printfs.
I am not sure what to do and feel a bit lost... Anyone has an idea of what I could change to improve things?
Thanks,
Antoine.
Originally posted by arennuit on ROS Answers with karma: 955 on 2014-09-19
Post score: 0
|
Hi All,
I would like to synchronise two sensor inputs with a tf::messageFilter. How would I go about connecting both message_filters::subscribers to a single tf::messageFilter.
I have tried to sync both the subscribers via a synchroniser using an approximate time policy. I would like to connect this to the tf::messageFilter
In the header file I have:
tf::TransformListener m_tfListener;
typedef message_filters::sync_policies::ApproximateTime<sensor_msgs::NavSatFix, sensor_msgs::Imu> MySyncPolicy;
message_filters::Subscriber< sensor_msgs::NavSatFix > *m_gpsSub;
message_filters::Subscriber<sensor_msgs::Imu> *m_imuSub;
message_filters::Synchronizer<MySyncPolicy>* sync;
tf::MessageFilter< sensor_msgs::NavSatFix, sensor_msgs::Imu>* m_gpsFilter;
in the .cpp file I have
m_gpsSub= new message_filters::Subscriber<sensor_msgs::NavSatFix>(private_nh, "fix", 5);
m_imuSub = new message_filters::Subscriber<sensor_msgs::Imu>(private_nh, "imu", 5)
m_gpsFilter = new tf::MessageFilter<sensor_msgs::NavSatFix, sensor_msgs::Imu>(m_tfListener, odomFrameId, 10)
sync= new message_filters::Synchronizer<MySyncPolicy>(MySyncPolicy(20), *m_gpsSub, *m_imuSub);
m_gpsFilter->connectInput(sync);
m_gpsFilter->registerCallback(boost::bind(&SwarmbotMCL::gpsCallback, this, _1, _2));
however It complains that tf::MessageFilter can only take one input:
error: wrong number of template arguments (2, should be 1)
/opt/ros/hydro/include/tf/message_filter.h:106:7: error: provided for ‘template<class M> class tf::MessageFilter’
does anyone know of the correct way to do this?
Originally posted by PeterMilani on ROS Answers with karma: 1493 on 2014-09-20
Post score: 2
|
I want to use webcamera to test images in ROS. I am programming using OPENCV and want to see the live video stream from my laptop in a window on ROS. When I try to launch a file whose contents are given below, I get an error that "ERROR: cannot launch node of type [uvc_cam/uvc_cam_node]: can't locate node [uvc_cam_node] in package [uvc_cam]
No processes to monitor :".
I launch the file using the command : roslaunch ishan_vision uvc_cam.launch device:=/dev/video0
uvc_cam.launch file :
<node name="uvc_cam_node" pkg="uvc_cam" type="uvc_cam_node" output="screen">
<remap from="camera/image_raw" to="camera/rgb/image_color" />
<param name="device" value="$(arg device)" />
<param name="width" value="320" />
<param name="height" value="240" />
<param name="frame_rate" value="20" />
<param name="exposure" value="0" />
<param name="gain" value="100" />
</node>
Can anybody please help?
Thanks
Originally posted by ish45 on ROS Answers with karma: 151 on 2014-09-20
Post score: 1
|
Hello,
I'm using Hydro, Ubuntu 12.04 and I installed Moveit from the source.
When I try to load my .urdf with the setup_assistant, moveit prints that:
[ INFO] [1411283688.252217911]: Loaded motoman_mh5 robot model.
[ INFO] [1411283688.252495879]: Setting Param Server with Robot Description
[ INFO] [1411283688.258372674]: Robot semantic model successfully loaded.
[ INFO] [1411283688.258451525]: Setting Param Server with Robot Semantic Description
[ INFO] [1411283688.290750255]: Loading robot model 'motoman_mh5'...
[ INFO] [1411283688.290813881]: No root joint specified. Assuming fixed joint
================================================================================
REQUIRED process [moveit_setup_assistant-1] has died!
process has died [pid 14258, exit code -11, cmd /home/lower/moveit/devel/lib/moveit_setup_assistant/moveit_setup_assistant __name:=moveit_setup_assistant __log:=/home/lower/.ros/log/e5208dd8-415d-11e4-a760-00216a36b28c/moveit_setup_assistant-1.log].
log file: /home/lower/.ros/log/e5208dd8-415d-11e4-a760-00216a36b28c/moveit_setup_assistant-1*.log
Initiating shutdown!
In other computer with the same system, it works. So I assume that the .urdf is ok.
Thanks!
Running it with GDB, that is what I get:
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /home/lower/catkin_workspace/devel/lib/moveit_setup_assistant/moveit_setup_assistant...(no debugging symbols found)...done.
Starting program: /home/lower/catkin_workspace/devel/lib/moveit_setup_assistant/moveit_setup_assistant __name:=moveit_setup_assistant __log:=/home/lower/.ros/log/18c0b614-417b-11e4-a388-00216a36b28c/moveit_setup_assistant-1.log
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffddf64700 (LWP 771)]
[New Thread 0x7fffdd763700 (LWP 772)]
[New Thread 0x7fffdcf62700 (LWP 773)]
[New Thread 0x7fffcffff700 (LWP 778)]
[New Thread 0x7fffcf7fe700 (LWP 779)]
[New Thread 0x7fffbffff700 (LWP 780)]
[New Thread 0x7fffbf7fe700 (LWP 781)]
[New Thread 0x7fffbe38d700 (LWP 782)]
[New Thread 0x7fffad724700 (LWP 783)]
[New Thread 0x7fffacf23700 (LWP 784)]
[New Thread 0x7fffa7fff700 (LWP 785)]
[New Thread 0x7fffa77fe700 (LWP 786)]
[Thread 0x7fffad724700 (LWP 783) exited]
[Thread 0x7fffbe38d700 (LWP 782) exited]
[Thread 0x7fffa7fff700 (LWP 785) exited]
[Thread 0x7fffa77fe700 (LWP 786) exited]
[New Thread 0x7fffa77fe700 (LWP 787)]
[New Thread 0x7fffa7fff700 (LWP 788)]
[New Thread 0x7fffbe38d700 (LWP 789)]
[Thread 0x7fffa77fe700 (LWP 787) exited]
[Thread 0x7fffa7fff700 (LWP 788) exited]
[Thread 0x7fffacf23700 (LWP 784) exited]
[New Thread 0x7fffacf23700 (LWP 790)]
[New Thread 0x7fffa7fff700 (LWP 791)]
[New Thread 0x7fffa77fe700 (LWP 792)]
[Thread 0x7fffbe38d700 (LWP 789) exited]
[Thread 0x7fffacf23700 (LWP 790) exited]
[Thread 0x7fffa77fe700 (LWP 792) exited]
[New Thread 0x7fffa77fe700 (LWP 793)]
[Thread 0x7fffa77fe700 (LWP 793) exited]
[New Thread 0x7fffa77fe700 (LWP 794)]
[New Thread 0x7fffacf23700 (LWP 795)]
[New Thread 0x7fffbe38d700 (LWP 796)]
[New Thread 0x7fffad724700 (LWP 797)]
[New Thread 0x7fffa6ffd700 (LWP 798)]
[New Thread 0x7fffa67fc700 (LWP 799)]
[New Thread 0x7fffa5ffb700 (LWP 800)]
[New Thread 0x7fffa57fa700 (LWP 801)]
[New Thread 0x7fffa4ff9700 (LWP 802)]
[Thread 0x7fffa5ffb700 (LWP 800) exited]
[Thread 0x7fffa57fa700 (LWP 801) exited]
[Thread 0x7fffacf23700 (LWP 795) exited]
[Thread 0x7fffa7fff700 (LWP 791) exited]
[Thread 0x7fffa67fc700 (LWP 799) exited]
[Thread 0x7fffa6ffd700 (LWP 798) exited]
[Thread 0x7fffbe38d700 (LWP 796) exited]
[Thread 0x7fffa4ff9700 (LWP 802) exited]
[Thread 0x7fffa77fe700 (LWP 794) exited]
[New Thread 0x7fffa77fe700 (LWP 803)]
[New Thread 0x7fffa4ff9700 (LWP 804)]
[New Thread 0x7fffbe38d700 (LWP 805)]
[New Thread 0x7fffa6ffd700 (LWP 806)]
[New Thread 0x7fffacf23700 (LWP 807)]
[New Thread 0x7fffa7fff700 (LWP 808)]
[New Thread 0x7fffa67fc700 (LWP 809)]
[New Thread 0x7fffa5ffb700 (LWP 810)]
[New Thread 0x7fffa57fa700 (LWP 811)]
[Thread 0x7fffa57fa700 (LWP 811) exited]
[Thread 0x7fffa5ffb700 (LWP 810) exited]
[Thread 0x7fffa6ffd700 (LWP 806) exited]
[Thread 0x7fffa4ff9700 (LWP 804) exited]
[Thread 0x7fffad724700 (LWP 797) exited]
[Thread 0x7fffbe38d700 (LWP 805) exited]
[Thread 0x7fffacf23700 (LWP 807) exited]
[Thread 0x7fffa67fc700 (LWP 809) exited]
[Thread 0x7fffa7fff700 (LWP 808) exited]
[New Thread 0x7fffa7fff700 (LWP 812)]
[New Thread 0x7fffa67fc700 (LWP 813)]
[New Thread 0x7fffacf23700 (LWP 816)]
[New Thread 0x7fffbe38d700 (LWP 818)]
[Thread 0x7fffa67fc700 (LWP 813) exited]
[Thread 0x7fffbe38d700 (LWP 818) exited]
[Thread 0x7fffacf23700 (LWP 816) exited]
[Thread 0x7fffa77fe700 (LWP 803) exited]
[New Thread 0x7fffa77fe700 (LWP 819)]
[New Thread 0x7fffacf23700 (LWP 820)]
[Thread 0x7fffacf23700 (LWP 820) exited]
[Thread 0x7fffa7fff700 (LWP 812) exited]
Program received signal SIGSEGV, Segmentation fault.
0x00007fffecfdb24e in glXCreateContext ()
from /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1
(gdb)
Originally posted by Bastbeat on ROS Answers with karma: 131 on 2014-09-21
Post score: 0
|
I have installed rosserial_arduino on my RasPi and my Arduino code for Push Button has been uploaded successfully.
To run the code, I am following the following steps as mentioned in the tutorial:
Startup roscore using roscore
Run the run the rosserial_python serial_node.py using rosrun rosserial_python serial_node.py _port:=/dev/ttyUSB0
Watch button status on rostopic echo pushed
Now, the issue here is that when I try step 2 using rosrun rosserial_python serial_node.py _port:=/dev/ttyACM0 (my Arduino is on ACM0), the error message I receive is
[ERROR] [WallTime: 1411295710.119812] Error opening serial: could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0'
For some reason, it keeps taking USB0 as the input even if I specify ACM0 as the port. This error does not occur on my Ubuntu 14.04 distro running Indigo. My RasPi is running Groovy.
I have also added the necessary group permissions (adding user to dialout, etc.) but to no avail. Please suggest methods to solve this issue.
Thanks to ahendrix for having found out the problem. But there is a follow up issue here. Please check.
Originally posted by Nightstalker on ROS Answers with karma: 35 on 2014-09-21
Post score: 0
|
CMake Error at /opt/ros/hydro/share/catkin/cmake/catkinConfig.cmake:75 (find_package):
Could not find a configuration file for package pr2_msgs.
Set pr2_msgs_DIR to the directory containing a CMake configuration file for
pr2_msgs. The file will have one of the following names:
pr2_msgsConfig.cmake
pr2_msgs-config.cmake
Call Stack (most recent call first):
youbot_driver_ros_interface/CMakeLists.txt:5 (find_package)
-- Configuring incomplete, errors occurred!
Invoking "cmake" failed
Originally posted by seggs on ROS Answers with karma: 1 on 2014-09-21
Post score: 0
|
I use following launch file to run hector mapping on turtlebot. It don't gives any error also don't create any map. When I enter rosrun map_server map_saver -f ~/mymap mymap.pgm is light gray image.
Original launch file
<launch>
<include file="$(find turtlebot_gazebo)/launch/turtlebot_empty_world.launch" />
<include file="$(find hector_mapping)/launch/mapping_default.launch">
<arg name="pub_map_odom_transform" value="true" />
<arg name="base_frame" value="base_footprint" />
<arg name="odom_frame" value="odom" />
</include>
<include file="$(find hector_geotiff)/launch/geotiff_mapper.launch">
<arg name="trajectory_publish_rate" value="4" />
</include>
<node pkg="hector_pose_estimation" type="pose_estimation" name="hector_pose_estimation" output="screen" />
<include file="$(find turtlebot_rviz_launchers)/launch/view_robot.launch" />
</launch>
Graph of this launch file is like this. I couldn't find the problem.
rqt_graph
tf view_frames
Latest launch file
<launch>
<include file="$(find turtlebot_gazebo)/launch/turtlebot_empty_world.launch" />
<include file="$(find turtlebot_rviz_launchers)/launch/view_robot.launch" />
<include file="$(find hector_mapping)/launch/mapping_default.launch">
<arg name="pub_map_odom_transform" value="false" />
</include>
<include file="$(find hector_geotiff)/launch/geotiff_mapper.launch">
<arg name="trajectory_publish_rate" value="4" />
</include>
<node pkg="tf" type="static_transform_publisher" name="odom_to_map" args="0 0 0 0 0 0 /map /odom 100"/>
</launch>
Bag file with /scan and /tf topics
All of the sollutions are merged as a package at Github
Originally posted by serdar on ROS Answers with karma: 3 on 2014-09-21
Post score: 0
Original comments
Comment by bvbdort on 2014-09-21:
cross check laser is published in base_footprint frame.
Comment by serdar on 2014-09-22:
@bvbdort Is it wrong that laserscan_nodelet_manager is publishing scan? In rviz I can see laser scan in /scan topic.
Comment by bvbdort on 2014-09-22:
check the frame id of laser scan it should be base_footprint or any other frame which has tf with base_footprint. Can you share your rosrun tf view_frames output.
Comment by serdar on 2014-09-22:
@bvbdort I added rosrun tf view_frames output to question body.
Comment by bvbdort on 2014-09-22:
what is the frame id of laser; you can view it from rostopic echo /scan
Comment by bvbdort on 2014-09-22:
Also use
Comment by serdar on 2014-09-22:
@bvbdort frame id of scan is /camera_depth_frame.
Comment by bvbdort on 2014-09-22:
use <arg name="pub_map_odom_transform" value="false"/> , hope it works
Comment by serdar on 2014-09-22:
@bvbdort When I pass false to pub_map_odom_transform, in rviz Transform status section it prints No transform from [map] to [base_footprint].
Comment by bvbdort on 2014-09-22:
Change frame in rviz to map to view map
Comment by serdar on 2014-09-22:
I always change but it always shows light gray square, never draws map.
|
How can I install tum_simulator on ROS Hydro? The instructions are written for fuerte
Originally posted by Pa El on ROS Answers with karma: 13 on 2014-09-21
Post score: 0
|
Dear all.
i 'm using ubuntu 12.04 ,turtlebot1 and hydro,created a catkin_ws workspace , installed sbpl through sudo apt-get install ros-hydro-sbplthanks to Johannes https://github.com/meyerj/sbpl_lattice_planner and ahendrix https://github.com/trainman419/sbpl_lattice_planner , i download Johannes's and catkin_makesuccessfuly,but when i
roslaunch sbpl_lattice_planner move_base_sbpl_fake_localization_2.5cm.launch
it came out two errors,ERROR: cannot launch node of type [stage/stageros]: can't locate node [stageros] in package [stage] ,ERROR: cannot launch node of type [nav_view/nav_view]: nav_view . when i rospack find stage and stage_ros in the path'/opt/ros/hydro/share/'
my questions are:
in the move_base_sbpl_fake_localization_2.5cm.launch,how to correct the line <node pkg="stage" type="stageros" name="stageros" args="$(find sbpl_lattice_planner)/worlds/willow.world" respawn="false" >to fix the first error?
in the sbpl_lattice_planner/launch/move_base/nav_view_sbpl.xml,how to correct the line node name="nav_view" pkg="nav_view" type="nav_view" respawn="false">to fix the second error(i want to use rviz to replace nav_view,but don't know how to do ),does the 'remap from ...to ...'lines also need to be changed ?
in the sbpl_lattice_planner/launch/move_base/move_base/move_base_sbpl.xml, does the line <param name="SBPLLatticePlanner/primitive_filename" value="$(find sbpl)/matlab/mprim/pr2.mprim"/> fit my turtlebot1 (it can only forward ,backward and rotation)?
thanks to your time and suggestions !!
Originally posted by jxl on ROS Answers with karma: 252 on 2014-09-21
Post score: 0
|
I am using an Odroid U3 with my robot, Ubuntu 14.04. I am using an external computer to launch the ROS node of the robot.
I was wondering if there is a way to start ROS in the robot after the Odroid starts up. Like if the robot were turned on with the ROS node running after the startup. That way I would not have to use the external computer. Right now I do not need to monitor the robot so it is OK if I do not have a roscore running externally.
Originally posted by Luis Ruiz on ROS Answers with karma: 114 on 2014-09-22
Post score: 3
|
I has frute then I remove it and I downloaded hydro. I followed the steps until I reached to this step:
sudo rosdep init
I got the following error:
Traceback (most recent call last):
File "/usr/bin/rosdep", line 3, in <module>
from rosdep2.main import rosdep_main
File "/usr/lib/pymodules/python2.7/rosdep2/__init__.py", line 40, in <module>
from .installers import InstallerContext, Installer, \
File "/usr/lib/pymodules/python2.7/rosdep2/installers.py", line 35, in <module>
from rospkg.os_detect import OsDetect
ImportError: No module named rospkg.os_detect
Then I looked for a solution and I did the following:
pip install -U rospkg
I got the following error :
Downloading/unpacking rospkg
Cannot fetch index base URL http://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement rospkg
No distributions at all found for rospkg
Storing complete log in /home/asctec/.pip/pip.log
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
load_entry_point('pip==1.0', 'console_scripts', 'pip')()
File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 116, in main
return command.main(initial_args, args[1:], options)
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 147, in main
log_fp = open_logfile(log_fn, 'w')
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 176, in open_logfile
log_fp = open(filename, mode)
IOError: [Errno 13] Permission denied: '/home/asctec/.pip/pip.log'
Also I tried:
sudo pip install --upgrade pip
and I got the following error:
Downloading/unpacking pip
Downloading pip-1.5.6.tar.gz (938Kb): 40Kb downloaded
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 126, in main
self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 223, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 955, in prepare_files
self.unpack_url(url, location, self.is_download)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1072, in unpack_url
return unpack_http_url(link, location, self.download_cache, only_download)
File "/usr/lib/python2.7/dist-packages/pip/download.py", line 441, in unpack_http_url
download_hash = _download_url(resp, link, temp_location)
File "/usr/lib/python2.7/dist-packages/pip/download.py", line 366, in _download_url
chunk = resp.read(4096)
File "/usr/lib/python2.7/socket.py", line 380, in read
data = self._sock.recv(left)
File "/usr/lib/python2.7/httplib.py", line 561, in read
s = self.fp.read(amt)
File "/usr/lib/python2.7/socket.py", line 380, in read
data = self._sock.recv(left)
File "/usr/lib/python2.7/ssl.py", line 241, in recv
return self.read(buflen)
File "/usr/lib/python2.7/ssl.py", line 160, in read
return self._sslobj.read(len)
SSLError: The read operation timed out
Storing complete log in /home/asctec/.pip/pip.log
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
load_entry_point('pip==1.0', 'console_scripts', 'pip')()
File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 116, in main
return command.main(initial_args, args[1:], options)
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 147, in main
log_fp = open_logfile(log_fn, 'w')
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 176, in open_logfile
log_fp = open(filename, mode)
IOError: [Errno 13] Permission denied: '/home/asctec/.pip/pip.log'
What should I do exactly to make roscore working because it is not working ??????????
Originally posted by RSA_kustar on ROS Answers with karma: 275 on 2014-09-22
Post score: 0
Original comments
Comment by bvbdort on 2014-09-22:
try sudo easy_install rospkg
Comment by Vova Niu on 2014-09-22:
what version of Ubuntu are you using?
Comment by RSA_kustar on 2014-10-09:
@Vova Niu
ubuntu 12.04
Comment by RSA_kustar on 2014-10-09:
@bvbdort I solve it using the command of re-install. I will post the answer
|
Hi all,
Based on some condition in node, I want to start and stop hector slam . (in parallel)
I had looked at different questions and rosspawn but couldn't figure it out.
if(start_node == true)
{
// start node in parallel
// Here my case is hector SLAM
}
if (stop_node == true)
{
// Stop the node
}
Any suggestions ?
thanks.
Edit ::
I found starting node in another package in python code from Roslaunch-API Usage. I am looking for similar way in C++ also starting nodes with params and arguments.
import roslaunch
package = 'rqt_gui'
executable = 'rqt_gui'
node = roslaunch.core.Node(package, executable)
launch = roslaunch.scriptapi.ROSLaunch()
launch.start()
process = launch.launch(node)
print process.is_alive()
process.stop()
Originally posted by bvbdort on ROS Answers with karma: 3034 on 2014-09-22
Post score: 2
|
Hi,
i have multiple launch files which are started from a shell script after the booting of the computer which is on the robot.
For some reason this creates multiple directories in $HOME/.ros/log. To find the correct logfiles if we have to debug something is kind of annoying as the files are in all of the directories and we have to check quite a few to find the file which has the newest data written into.
Is there a setting to set the log dir for all nodes? The ones started from roslaunch as well as the roscore which is started with the roscore command and the nodes with are running from rosrun.
thank you.
bajo
Originally posted by bajo on ROS Answers with karma: 206 on 2014-09-22
Post score: 1
Original comments
Comment by dornhege on 2014-09-22:
Can you maybe just include all launch files in a single launch file?
|
Hi all,
as stated here (http://arduino.cc/en/pmwiki.php?n=Tutorial/Memory) adruinos usually do not have much SRAM and it is easy to use it all up by using many constant strings
Notice that there's not much SRAM
available in the Uno. It's easy to use
it all up by having lots of strings in
your program.
<sarcasm warning> The nice feature of the arduino IDE in this cases is that it does not fail to compile or upload but only the arduino programm will run 'strangely' </sarcasm warning>
If you run out of SRAM, your program
may fail in unexpected ways; it will
appear to upload successfully, but not
run, or run strangely. To check if
this is happening, you can try
commenting out or shortening the
strings or other data structures in
your sketch (without changing the
code). If it then runs successfully,
you're probably running out of SRAM.
I have observed this behaviour with my arduino code that uses ros_lib. One of the causes is that ros_lib stores for each topic (publish/subscribe) 3 strings ( md5sum, message type name and topic name ). Particularly if I use topics with namespaces if have observed the problem on arduino uno after setting up only 3 or 4 topics.
How the question: Has anyone considered modifying the message generator for Ardunio such that it uses PROGMEM for storing md5sum, topic and stuff? (Or is it even possible?)
http://www.arduino.cc/en/Reference/PROGMEM
The data is static and I think this would significantly reduce the SRAM usage....
Thank you!
Edit 22.09.: anyone?
Originally posted by Wolf on ROS Answers with karma: 7555 on 2014-09-22
Post score: 2
Original comments
Comment by gvdhoorn on 2014-09-24:
You might want to try and just report this as an issue over at the ros-drivers/rosserial github repo. Do refer to this post in your issue.
|
I am trying to implement some TF under groovy, but ran into compilation errors quickly. I just installed a fresh Ubuntu 12.04 with ROS Groovy. To be sure, I tried to implement the tutorial (http://wiki.ros.org/tf/Tutorials/Introduction%20to%20tf) to see if the error also replicates there when compiled, and it does:
Built target
/home/ruud/Dropbox/ros/catkin_workspace/src/learning_tf/src/turtle_tf_broadcaster.cpp: In function ‘void poseCallback(const PoseConstPtr&)’:
/home/ruud/Dropbox/ros/catkin_workspace/src/learning_tf/src/turtle_tf_broadcaster.cpp:14:44: warning: ‘tf::Quaternion::Quaternion(const tfScalar&, const tfScalar&, const tfScalar&)’ is deprecated (declared at /opt/ros/groovy/include/tf/LinearMath/Quaternion.h:51) [-Wdeprecated-declarations]
/home/ruud/Dropbox/ros/catkin_workspace/src/learning_tf/src/turtle_tf_broadcaster.cpp:14:46: error: no matching function for call to ‘tf::Quaternion::setRPY(tf::Quaternion)’
/home/ruud/Dropbox/ros/catkin_workspace/src/learning_tf/src/turtle_tf_broadcaster.cpp:14:46: note: candidate is:
/opt/ros/groovy/include/tf/LinearMath/Quaternion.h:94:8: note: void tf::Quaternion::setRPY(const tfScalar&, const tfScalar&, const tfScalar&)
/opt/ros/groovy/include/tf/LinearMath/Quaternion.h:94:8: note: candidate expects 3 arguments, 1 provided
make[2]: *** [learning_tf/CMakeFiles/turtle_tf_broadcaster.dir/src/turtle_tf_broadcaster.cpp.o] Error 1
make[1]: *** [learning_tf/CMakeFiles/turtle_tf_broadcaster.dir/all] Error 2
make: *** [all] Error 2
Anyone had this issue before?
Thanks!
Ruud
EDIT SOLVED:
In the tutorial it says (see below) that you have to change line 14 of the code. I did that but then I get the error. If I switch back to the original code, then it compiles fine!
"Looks like Quaternion API has changed (sorry but not sure when it occurred...Here it's assumed at some point between electric and fuerte) so that the order of the arguments needs changed (Relevant QA thread). That said, if you're on a version prior to the API change, you need to change line 14 to:
q.setRPY( tf::Quaternion(msg->theta, 0, 0) );"
Please also take a look here if you have this error: http://answers.ros.org/question/45884/turtle-tf-tutorial-fails-to-work/?answer=47845#post-id-47845
Originally posted by Ruud on ROS Answers with karma: 212 on 2014-09-22
Post score: 0
|
There seems to be an error when using catkin_make to create the ROS workspace using groovy distribution. When i type the catkin_make command to do environment setup in ~/catkin_ws/src, this is the error message i see.
CMake Error at /home/shaurya/ros_ws/devel/share/baxter_sim_kinematics/cmake/baxter_sim_kinematicsConfig.cmake:165 (find_package):
Could not find module Findbaxter_core_msgs.cmake or a configuration file
for package baxter_core_msgs.
Adjust CMAKE_MODULE_PATH to find Findbaxter_core_msgs.cmake or set
baxter_core_msgs_DIR to the directory containing a CMake configuration file
for baxter_core_msgs. The file will have one of the following names:
baxter_core_msgsConfig.cmake
baxter_core_msgs-config.cmake
Call Stack (most recent call first):
/opt/ros/groovy/share/catkin/cmake/catkinConfig.cmake:75 (find_package)
baxter_simulator/baxter_sim_hardware/CMakeLists.txt:4 (find_package)
-- Eigen found (include: /usr/include/eigen3)
-- Configuring incomplete, errors occurred!
Invoking "cmake" failed
Originally posted by GoBaxter on ROS Answers with karma: 15 on 2014-09-22
Post score: 0
|
I am trying to install Baxter on ROS groovy from catkin workspace where the SDK resides, and use wstool to install and update. This is waht i am supposed to do:-
$ cd ~/ros_ws/src
$ git clone [email protected]:RethinkRobotics/baxter_simulator.git
# IMPORTANT EARLY-DEV-RELEASE STEPS:
$ cd baxter_simulator
$ git checkout early_interface_dev
$ cd ..
$ wstool init # need to do this only if this is a new workspace where this command was not executed before.
$ wstool merge baxter_simulator/baxter_simulator.rosinstall
$ wstool update
But after i type in i get this error message. please explain the reason and solution.
sa@svs-FX6860:~/catkin_ws/src/baxter_simulator$ git checkout early_interface_dev
error: pathspec 'early_interface_dev' did not match any file(s) known to git.
Originally posted by GoBaxter on ROS Answers with karma: 15 on 2014-09-22
Post score: 0
|
So, I'm having an issue with compilation after moving to an indigo platform on ubuntu 14.04. As I understand it, from here, here, here, and here the FindEigen.cmake is now in /opt/indigo/share/cmake_modules/cmake/Modules/. I see this on my system, and I followed the instructions to add cmake_modules as a dependency in both the package.xml and CMakeLists.txt, however, I still get the same error.
The exact error message i get is:
CMake Error at /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:75 (find_package):
Could not find a package configuration file provided by "eigen" with any of
the following names:
eigenConfig.cmake
eigen-config.cmake
Add the installation prefix of "eigen" to CMAKE_PREFIX_PATH or set
"eigen_DIR" to a directory containing one of the above files. If "eigen"
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
vigir_atlas_ros_control/vigir_atlas_controller/CMakeLists.txt:20 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/pachu/flor_repo/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/pachu/flor_repo/catkin_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed
So... I'm not really sure what else to try. I was working with vigir_atlas_ros_control/vigir_atlas_controller/CMakeLists.txt to add the dependencies but nothing seemed to change. Do i have to change something in /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake? Any help would be greatly appreciated.
Originally posted by pachuc on ROS Answers with karma: 13 on 2014-09-22
Post score: 1
|
hello everyone.
i've just installed last ubuntu's release on my computer (it seemed a good idea), then i tried to install even last release of ROS.
Sadly, that's what i get:
ubisum@biagioPC:~$ sudo apt-get install ros-hydro-desktop-full
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
ros-hydro-desktop-full : Depends: ros-hydro-desktop but it is not going to be installed
Depends: ros-hydro-simulators but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
do you know any breakthrough? thanks.
Originally posted by ubisum on ROS Answers with karma: 23 on 2013-10-22
Post score: 0
|
Hello,
I tried to launch
roslaunch openni_launch openni.launch
and got this error:
process[camera/driver-3]: started with pid [21833]
[ERROR] [1382523364.281865460]: Failed to load nodelet [/camera/driver] of type [openni_camera/driver]: According to the loaded plugin descriptions the class openni_camera/driver with base class type nodelet::Nodelet does not exist. Declared types are ccny_rgbd/RGBDImageProcNodelet depth_image_proc/convert_metric depth_image_proc/disparity depth_image_proc/point_cloud_xyz depth_image_proc/point_cloud_xyzrgb depth_image_proc/register image_proc/crop_decimate image_proc/debayer image_proc/rectify image_view/disparity image_view/image nodelet_tutorial_math/Plus pcl/BAGReader pcl/ExtractIndices pcl/NodeletDEMUX pcl/NodeletMUX pcl/PCDReader pcl/PCDWriter pcl/PassThrough pcl/PointCloudConcatenateDataSynchronizer pcl/PointCloudConcatenateFieldsSynchronizer pcl/ProjectInliers pcl/StatisticalOutlierRemoval pcl/VoxelGrid stereo_image_proc/disparity stereo_image_proc/point_cloud stereo_image_proc/point_cloud2
[FATAL] [1382523364.282295582]: Service call failed!
Anyone knows what's wrong? Kinect is not yet connected. I have Ubuntu 12.4 OS and ROS Hydro.
Originally posted by Wojciech on ROS Answers with karma: 66 on 2013-10-23
Post score: 0
Original comments
Comment by bit-pirate on 2013-10-23:
Please state what software (OS and ROS) and versions you are using (use tags for that as well).
Comment by bit-pirate on 2013-10-27:
32 or 64bit? Did you install the openni packages (sudo apt-get install ros-hydro-openni-launch)?
|
Hi all.
I'd like to translate /cmd_vel(geometry_msgs::Twist) to ackermann_msgs::ackermannDrive.
Linear speed is same in two msgs.(linear.x = speed)
How can I covert angular velocity to steering angle?(angular.z --> steering_angle)
Are there nodes for it? I couldn't find to translate from angular velocity to steering angle.
Could you please let me know equation and necessary parameters?
Thanks.
Originally posted by Park on ROS Answers with karma: 25 on 2013-10-23
Post score: 1
Original comments
Comment by alex920a on 2014-04-28:
any news? I need the answer too
Comment by macrot51 on 2019-05-14:
Hello Park, I try doing a similar thing. Would be glad if you could help me out. Cheers Marco
|
Hi all, at first ;) my Ubuntu is 12.04 and my gazebo version is 1.9.1 and also my Ros is hydro. I have a simulated kinect in gazebo and i need the color of points, I’ve write below code that i get the data of simulated kinect and converted to pointcloud, also i tried two method that second one is in comment but when i print the color, it's empty but all other thing is ok, any one can help me?
void readkinectCallback(const sensor_msgs::PointCloud2& msg)
{
pcl::PointCloud<pcl::PointXYZRGB> pc;
// Convert To Poinct Cloud
pcl::fromROSMsg(msg,pc);
uint32_t rgb = *reinterpret_cast<int*>(&pc.points[100].rgb);
uint8_t r = (rgb >> 16) & 0x0000ff;
uint8_t g = (rgb >> 8) & 0x0000ff;
uint8_t b = (rgb) & 0x0000ff;
// std::cout<<pc.point[0].r<<pc.point[0].g<<pc.point[0].b<<endl;
}
Originally posted by VahidD on ROS Answers with karma: 72 on 2013-10-23
Post score: 0
|
Hello,
I'm using the openni_camera and openni_launch stacks with ROS fuerte on a platform with low processing power.
I only need two topics: /rgb/image_rect and /depth_registered/image_rect. Is there a way to only publish those topics in order to speed up the processing time?
Thanks,
Originally posted by Pino on ROS Answers with karma: 88 on 2013-10-23
Post score: 0
|
Update: 3 images one with after set position issued. One with global map on, one with global map off, and the gazebo image of the simulation.
Update: setting the static map parameter to false in the global_costmap yaml file and the blue map line disappears. Not sure why since the static map is blank. Turning off the Global Map panel (topic: /move_base/global_costmap/costmap) in rivz also makes the blue line go away.
Update using a the light blue crescent map shape is coming from
nav_msgs::OccupancyGrid topic /move_base/global_costmap/costmap. When I toggle the global panel off this line disappears. Not sure what this line represents. Robot still runs backwards in both rviz and gazebo if DWA is on.
When I run with the local cost map parms below my robot in rviz and gazebo run backwards and it plots no local (green) path. The aqua blue dots seem to be map related while the red dots are laser. Note they seem to have different orientations. But why?
global_costmap:
global_frame: /map
robot_base_frame: /base_link
update_frequency: 30.0
publish_frequency: 30.0
static_map: true # note setting to false removes blue line
width: 20.0
height: 20.0
origin_x: -10.0
origin_y: -10.0
local_costmap:
global_frame: /odom
robot_base_frame: /base_link
update_frequency: 10.0
publish_frequency: 10.0
static_map: false
rolling_window: true
width: 16.0
height: 16.0
origin_x: 0.0
origin_y: 0.0
when I run with
static_map: true
rolling_window: false
my robot runs forward and does display a current local path. These are the only changes I make to get this results. Static map can be set to false here and as long as DWA is false also it will move forward.
Originally posted by rnunziata on ROS Answers with karma: 713 on 2013-10-23
Post score: 0
Original comments
Comment by David Lu on 2013-10-25:
What release are you running?
Comment by David Lu on 2013-10-25:
Also, the blue dots are your laser scans, and they are where you expect them to be?
Comment by rnunziata on 2013-10-25:
I am running the latest hydro and gazebo 1.9. The blue dots do not make since to me...since the laser is pointing in the opposite direction. The active laser scan are the red dot and cresent line above the yellow goal arrow. The blue dots are maybe the map data but why are they on the other side.
Comment by dornhege on 2013-10-29:
You have displayed global costmap and shown the local costmap parameters. Can you check global costmap parameters.
Comment by David Lu on 2013-11-01:
Is your configuration using the ObstacleLayer or the VoxelLayer?
Comment by rnunziata on 2013-11-01:
I am strictly 2d ObstacleLayer
Comment by David Lu on 2013-11-01:
Can you clarify what topic you're seeing the blue dots in your visualization from?
Comment by rnunziata on 2013-11-01:
updated question with topic data. /move_base/global_costmap/costmap
Comment by David Lu on 2013-11-01:
Odd. Can you give a zoomed out full resolution version of just the data from /move_base/global_costmap/costmap and whatever whatever your laser scan is?
Comment by rnunziata on 2013-11-01:
Have Video ...how to up load Ogg Video (video/ogg)? I try attach file but it does not return. File is 6meg. Is that too big?
Comment by David Lu on 2013-11-01:
Does it need to be video? Can you just grab two screenshots?
Comment by rnunziata on 2013-11-01:
done...see updated question
Comment by rnunziata on 2013-11-01:
Hold on...I believe my static map was not as clean as I thought on second inspection. dots so small you can hardly see them in GIMP Image editor. The map was probably bad orientation to begin with. Sorry to waist you time.
|
I am trying to compile from source to test fix. But get error. It has to be in my CMakefile or package file. Can someone advise. Below are the files for rrbot_gazebo. There are no pgm is this dir just launch file and a world file.
# http://ros.org/doc/groovy/api/catkin/html/user_guide/supposed.html
cmake_minimum_required(VERSION 2.8.3)
project(rrbot_gazebo)
# Load catkin and all dependencies required for this package
# TODO: remove all from COMPONENTS that are not catkin packages.
find_package(catkin REQUIRED COMPONENTS gazebo_ros)
# TODO: fill in what other packages will need to use this package
## DEPENDS: system dependencies of this project that dependent projects also need
## CATKIN_DEPENDS: catkin_packages dependent projects also need
## INCLUDE_DIRS:
## LIBRARIES: libraries you create in this project that dependent projects also need
catkin_package(
DEPENDS
CATKIN_DEPENDS # TODO
INCLUDE_DIRS # TODO include
LIBRARIES # TODO
)
<package>
<name>rrbot_gazebo</name>
<version>0.1.0</version>
<description>rrbot_gazebo</description>
<maintainer email="[email protected]">Richard Nunziata</maintainer>
<license>BSD</license>
<author email=email="[email protected]">Richard Nunziata</author>
<buildtool_depend>catkin</buildtool_depend>
<run_depend>rrbot_description</run_depend>
<run_depend>rrbot_control</run_depend>
<run_depend>gazebo_ros</run_depend>
<export>
</export>
</package>
- Generating .msg files for action tf2_msgs/LookupTransform /home/viki/catkin_ws/src/geometry_experimental/tf2_msgs/action/LookupTransform.action
Generating for action LookupTransform
-- tf2_msgs: 9 messages, 1 services
CMake Error at /home/viki/catkin_ws/build/geometry_experimental/tf2_msgs/cmake/tf2_msgs-genmsg.cmake:89 (add_custom_target):
add_custom_target cannot create target "tf2_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/viki/catkin_ws/src/gazebo_ros_demos/rrbot_gazebo". 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)
geometry_experimental/tf2_msgs/CMakeLists.txt:11 (generate_messages)
CMake Error at /home/viki/catkin_ws/build/geometry_experimental/tf2_msgs/cmake/tf2_msgs-genmsg.cmake:172 (add_custom_target):
add_custom_target cannot create target "tf2_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/viki/catkin_ws/src/gazebo_ros_demos/rrbot_gazebo". 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)
geometry_experimental/tf2_msgs/CMakeLists.txt:11 (generate_messages)
CMake Error at /home/viki/catkin_ws/build/geometry_experimental/tf2_msgs/cmake/tf2_msgs-genmsg.cmake:255 (add_custom_target):
add_custom_target cannot create target "tf2_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/viki/catkin_ws/src/gazebo_ros_demos/rrbot_gazebo". 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)
geometry_experimental/tf2_msgs/CMakeLists.txt:11 (generate_messages)
Originally posted by rnunziata on ROS Answers with karma: 713 on 2013-10-23
Post score: 0
Original comments
Comment by KruseT on 2013-10-23:
I changed title, hope you don't mind
|
Hi,
I'm programming in c++ and I use catkin. I wanted to work with amcl node. But since it's not catkinised yet, I had to use the gmapping node. I followed the tutorial from here:
http:// wiki.ros.org/ catkin/ Tutorials/ using_rosbuild_with_catkin
to get this node. I did each step. Now I want to run the node with the command
$ rosrun gmapping slam_gmapping
scan:=base_scan
but it doesn't work, see the error message :
[rosrun] Couldn't find executable
named slam_gmapping below
/home/pauline/ros_ws/gmapping/gmapping
(I found the command to run it in here http:// wiki.ros.org/ gmapping)
I don't understand because I did
$ rosmake gmapping
and it was successfull. Am I missing something here ??
Thanks for your help
Originally posted by moutinoir on ROS Answers with karma: 23 on 2013-10-23
Post score: 0
|
I'm trying to use sound_play package in fuerte.
However, I cannot find the sound_play package in my desktop-full ros fuerte. Do anyone know how to install the sound_play package?
Originally posted by ldsrogan on ROS Answers with karma: 1 on 2013-10-23
Post score: 0
|
I'm currently writing a node that uses a 3rd party library. This library listens for multi-cast data streaming on port 1001. The problem I'm running into is that it requires root privileges to bind to this port (or any port <= 1023).
There isn't anything I can do to change the port number that I'm aware of, and (a) I don't want to have to run the node as root, especially since this node is likely gong to be distributed, and (b) as far as I can tell running the node as root isn't possible even if I wanted too.
Does anybody know what I might be able to do to listen to port 1001 from within my node?
Originally posted by dpkoch on ROS Answers with karma: 132 on 2013-10-23
Post score: 0
|
Ubuntu 12.04 and fuerte
Pioneer P3-DX
Hi,
I have two simple questions about the settings on pioneer mobile robot
Question 1:
The pioneer robot is giving a beep when it does not recieve any command from the joy stick. It does not give a beep when it receives commands to move. Could any tell how to change these beep settings ?
Question 2:
I have to press a push button on the top of Motors to start the pioneer after reset. Is it possible to not press the push button and yet get the pioneer mobile robot to move ?
Originally posted by sai on ROS Answers with karma: 1935 on 2013-10-23
Post score: 2
|
I am working on USARSim/ROS control framework. I have been able to move robot using keyboard through ROS package. Now I want to generate a global map in 2D of the USARSim environment where the robot is moving.
What is the prerequisite for map_saver utility to generate a 2D map?
Can anyone please help me regarding this.
Originally posted by RB on ROS Answers with karma: 229 on 2013-10-24
Post score: 0
|
Hi all,
I am trying to build ros (hydro) on OSX 10.9. I had it working on 10.8, but since the update to 10.9 I can't get it to compile. orocos_kdl is giving me the following error:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/utility:221:9: error: field has incomplete type 'KDL::TreeElement'
It says that a number of times and also :
/opt/ros/hydro/src/orocos_kdl/src/tree.cpp:39:21: error: no viable conversion from 'pair<basic_string<[3 * ...]>, [...]>' to 'const pair<basic_string<[3 * ...]>, [...]>'
Any solution to this?
Originally posted by Hansg91 on ROS Answers with karma: 1909 on 2013-10-24
Post score: 0
Original comments
Comment by Artem on 2013-10-24:
I have lots of problems rebuilding hydro too. One hint, try to run brew install for all necessary libraries and programs. I basically had to almost rebuild everything. The problem now is how to build vtk and pcl.
Comment by Hansg91 on 2013-10-24:
Did you run brew upgrade ? Or did you remove stuff from brew and reinstalled them?
Comment by William on 2013-10-24:
I think you need to relink everything, I haven't updated yet, but I have heard that libc++ is now the default rather than libstdc++, which is likely to cause problems (I have not confirmed that). If you run into specific compile errors like with KDL, I would suggest filing tickets directly against them.
Comment by William on 2013-10-24:
That's re-linkedit, not brew link.
Comment by Hansg91 on 2013-10-24:
What do you mean relink everything? I mean I understand, but how do I do that?
Comment by William on 2013-10-24:
I think the easiest way is to uninstall and reinstall.
Comment by Hansg91 on 2013-10-24:
I was afraid you'd say that :(, I will give it a shot
Comment by Artem on 2013-10-24:
William is right about libstdc++, that was the issue. I did brew uninstall and then brew install for most of the packages. William have you updated hombrew pcl? As far as I remember your formula was pulling binaries? Now it has to be compiled :(
Comment by William on 2013-10-24:
@Art the binary for pcl in Homebrew should be specific for mountain lion, you'll have to build it from source, which should be possible with the --build-from-source option to brew. I'll try to get a new bottle as soon as possible.
Comment by Hansg91 on 2013-10-24:
I am now also stuck at compiling PCL through brew. It seems to need some functions in vtk which do not exist. Is there perhaps a version mismatch? ps. I had to disable some python cmake settings for vtk for it to compile and had to enable VTK_USE_SYSTEM_TIFF.
Comment by Hansg91 on 2013-10-24:
Seems pcl1.7 was not ready for vtk6: https://github.com/PointCloudLibrary/pcl/issues/199
Comment by Artem on 2013-11-11:
I built fully functional PCL after applying a few patches. The source files can be found here https://github.com/Lenskiy/pcl
Comment by Bruno Normande on 2013-11-18:
I Already have the PCL installed, with vtk5. What packages should I reinstall to get orocos_kdl working? @William
Comment by William on 2013-11-22:
@Bruno Normande Not sure, I still have not upgraded to 10.9 myself.
|
hi dear
I want to use ros on a board like beagleboard,odroid,cubie board
but I do not have enough information about ros and the boards
can some one help me which board is the best and why?
Originally posted by Hamid Didari on ROS Answers with karma: 1769 on 2013-10-24
Post score: 0
Original comments
Comment by Hendrik Wiese on 2013-10-24:
We're using an Intel NUC board with a Core i3. Works like a charm.
Comment by Hamid Didari on 2013-10-24:
Hi Hendrik
could you tell me about details of this board
which version of linux you use on it?
and how hard is working with it ?
Comment by Hendrik Wiese on 2013-10-25:
It's a pretty neat small board with an mSATA and two memory slots and a Core i3 processor. Here's /proc/cpuinfo of the board: http://pastebin.com/ysmZjgU5 Working with it is like on a normal PC. Ubuntu 13.04 64bit runs pretty well on it.
|
Hi folks,
how are things like AMCL, gmapping and odometry combined?
We're building a robot that will be capable of localizing itself within its environment by using a fixed triangulation system (called beacons). This system tells the robot its X and Y coordinates within the map. So the robot knows its current position pretty well.
Orientation however is measured by a gyroscope. Its angular velocity value is integrated over time to extrapolate the robots orientation. It most likely will be drifting.
Besides the gyroscope/accelerometer the robot will also have access to rotary encoders which measure the distance that its wheels will drive.
And the third thing the robot will likely get is a laser scanner. However there might be other moving obstacles in the range of the laser.
Now, how could we combine pretty well known absolute localisation with laser scan, drifting orientation and odometry by means of AMCL and gmapping?
Thanks a lot!
Cheers,
Hendrik
Originally posted by Hendrik Wiese on ROS Answers with karma: 1145 on 2013-10-24
Post score: 1
|
In roscpp we can use the ROS_*_THROTTLE(..) macros, but rospy doesn't seem to have anything like that.
Any suggestions as to what would be the most elegant / pythonic way of achieving something equivalent in rospy?
Originally posted by gvdhoorn on ROS Answers with karma: 86574 on 2013-10-24
Post score: 5
|
In the image below there are two blue crest. If I toggle off the global map panel then the right one disappears. If I toggle off the local map panel then the left one disappears. My global static map in the map server is blank so the image is real-time! Why are these not aligned?
rosmap.yaml for map server
image: rosmap.pgm
resolution: 0.005000
origin: [-10.000000, -10.000000, 0.000000]
negate: 0
occupied_thresh: 0.65
free_thresh: 0.196
costmap_common_params.yaml for common costmap parameters
obstacle_range: 2.5
raytrace_range: 3.0
footprint: [[0.25, 0.1], [0.25, -0.1], [-0.25,-0.1], [-0.25, 0.1]]
max_scaling_factor: 0.02 # The scalling factor for footprint defined in local costmap
inflation_radius: 0.02 # Propagating cost values out from occupied cells that decrease with distance.
map_type: costmap
track_unknown_space: true
observation_sources: laser_scan_sensor
laser_scan_sensor: {sensor_frame: hokuyo_frame, data_type: LaserScan, topic: /scan, marking: true, clearing: true}
resolution: 0.005
local_costmap:
global_frame: /odom
robot_base_frame: /base_link
update_frequency: 10.0
publish_frequency: 10.0
static_map: true
rolling_window: false
width: 16.0
height: 16.0
origin_x: -8.0
origin_y: -8.0
global_costmap:
global_frame: /map
robot_base_frame: /base_link
update_frequency: 30.0
publish_frequency: 30.0
static_map: true
width: 20.0
height: 20.0
origin_x: -10.0
origin_y: -10.0
Static map:
Originally posted by rnunziata on ROS Answers with karma: 713 on 2013-10-24
Post score: 0
Original comments
Comment by felix k on 2013-10-25:
You should add how you configured your costmaps, especially their origins and staticness.
Comment by rnunziata on 2013-10-25:
I updated question with this information,
|
I have modeled an environment using a CAD software. I would like to convert this CAD model into .xml format so that the ROS recognizes it. Suggestions would be helpful.
Originally posted by vignesh ramani on ROS Answers with karma: 1 on 2013-10-24
Post score: 0
|
I am working on some forked code that is setup for tf and on my BeagleBone Black I only have tf2. I have most of the code working but it is erroring out on sendtransform with
TypeError: sendTransform() takes exactly 2 arguments (6 given)
I am not sure what to change to the new format. I haven't found a way to get the recipe to cross compile tf. But in the long run it would be better to convert over.
I am working on base_controller.py on my github account FriedCircuits\Ros_Arduino_bridge
(can't post links yet)
Any help to convert it to tf2 would be great. I haven working on this for weeks on the BBB and I am pretty close to having something functional.
Thanks!
Originally posted by MobileWill on ROS Answers with karma: 1 on 2013-10-24
Post score: 0
|
Hello.
I need to use a modified version of the prosilica camera driver in Ros Hydro. I have followed the tutorials and I have set up an overlaying catkin workspace with rosbuild. Everything seems fine, but when I try to build the package, all I get is a lot of messages saying the packages are marked with a ROS_NOBUILD flag and I cannot wonder why.
The output of rosmake is:
[ rosmake ] rosmake starting...
[ rosmake ] No package specified. Building ['prosilica_camera']
[ rosmake ] Packages requested are: ['prosilica_camera']
[ rosmake ] Logging to directory /home/marbosjo/.ros/rosmake/rosmake_output-20131025-104949
[ rosmake ] Expanded args ['prosilica_camera'] to:
['prosilica_camera']
[rosmake-0] Starting >>> catkin [ make ]
[rosmake-0] Finished <<< catkin ROS_NOBUILD in package catkin
No Makefile in package catkin
[rosmake-0] Starting >>> genmsg [ make ]
[rosmake-1] Starting >>> cpp_common [ make ]
[rosmake-5] Starting >>> rosgraph [ make ]
[rosmake-6] Starting >>> rospack [ make ]
[rosmake-2] Starting >>> rosclean [ make ]
[rosmake-0] Finished <<< genmsg ROS_NOBUILD in package genmsg
No Makefile in package genmsg
[rosmake-3] Starting >>> console_bridge [ make ]
[rosmake-4] Starting >>> prosilica_gige_sdk [ make ]
[rosmake-0] Starting >>> genlisp [ make ]
[rosmake-1] Finished <<< cpp_common ROS_NOBUILD in package cpp_common
No Makefile in package cpp_common
[rosmake-1] Starting >>> genpy [ make ]
[rosmake-7] Starting >>> gencpp [ make ]
[rosmake-5] Finished <<< rosgraph ROS_NOBUILD in package rosgraph
No Makefile in package rosgraph
[rosmake-5] Starting >>> rostime [ make ]
[rosmake-3] Finished <<< console_bridge ROS_NOBUILD in package console_bridge
No Makefile in package console_bridge
[rosmake-4] Finished <<< prosilica_gige_sdk ROS_NOBUILD in package prosilica_gige_sdk
No Makefile in package prosilica_gige_sdk
[rosmake-2] Finished <<< rosclean ROS_NOBUILD in package rosclean
No Makefile in package rosclean
[rosmake-4] Starting >>> rosparam [ make ]
[rosmake-0] Finished <<< genlisp ROS_NOBUILD in package genlisp
No Makefile in package genlisp
[rosmake-6] Finished <<< rospack ROS_NOBUILD in package rospack
No Makefile in package rospack
[rosmake-3] Starting >>> rosmaster [ make ]
[rosmake-2] Starting >>> roslang [ make ]
[rosmake-0] Starting >>> roslib [ make ]
[rosmake-7] Finished <<< gencpp ROS_NOBUILD in package gencpp
No Makefile in package gencpp
[rosmake-6] Starting >>> xmlrpcpp [ make ]
[rosmake-1] Finished <<< genpy ROS_NOBUILD in package genpy
No Makefile in package genpy
[rosmake-7] Starting >>> class_loader [ make ]
[rosmake-1] Starting >>> message_generation [ make ]
[rosmake-5] Finished <<< rostime ROS_NOBUILD in package rostime
No Makefile in package rostime
[rosmake-4] Finished <<< rosparam ROS_NOBUILD in package rosparam rosmaster: 0.0 sec ] [ roslan... [ 8 Active 11/48 Complete ]
No Makefile in package rosparam
[rosmake-5] Starting >>> roscpp_traits [ make ]
[rosmake-3] Finished <<< rosmaster ROS_NOBUILD in package rosmaster
No Makefile in package rosmaster
[rosmake-2] Finished <<< roslang ROS_NOBUILD in package roslang
No Makefile in package roslang
[rosmake-0] Finished <<< roslib ROS_NOBUILD in package roslib
No Makefile in package roslib
[rosmake-0] Starting >>> rosunit [ make ]
[rosmake-1] Finished <<< message_generation ROS_NOBUILD in package message_generation
No Makefile in package message_generation
[rosmake-7] Finished <<< class_loader ROS_NOBUILD in package class_loader
No Makefile in package class_loader
[rosmake-5] Finished <<< roscpp_traits ROS_NOBUILD in package roscpp_traits
No Makefile in package roscpp_traits
[rosmake-6] Finished <<< xmlrpcpp ROS_NOBUILD in package xmlrpcpp
No Makefile in package xmlrpcpp
[rosmake-2] Starting >>> roscpp_serialization [ make ]
[rosmake-0] Finished <<< rosunit ROS_NOBUILD in package rosunit
No Makefile in package rosunit
[rosmake-0] Starting >>> rosconsole [ make ]
[rosmake-2] Finished <<< roscpp_serialization ROS_NOBUILD in package roscpp_serialization
No Makefile in package roscpp_serialization
[rosmake-2] Starting >>> message_runtime [ make ]
[rosmake-0] Finished <<< rosconsole ROS_NOBUILD in package rosconsole
No Makefile in package rosconsole
[rosmake-0] Starting >>> pluginlib [ make ]
[rosmake-2] Finished <<< message_runtime ROS_NOBUILD in package message_runtime
No Makefile in package message_runtime
[rosmake-2] Starting >>> std_msgs [ make ]
[rosmake-0] Finished <<< pluginlib ROS_NOBUILD in package pluginlib
No Makefile in package pluginlib
[rosmake-2] Finished <<< std_msgs ROS_NOBUILD in package std_msgs
No Makefile in package std_msgs
[rosmake-2] Starting >>> rosgraph_msgs [ make ]
[rosmake-7] Starting >>> geometry_msgs [ make ]
[rosmake-6] Starting >>> diagnostic_msgs [ make ]
[rosmake-2] Finished <<< rosgraph_msgs ROS_NOBUILD in package rosgraph_msgs
No Makefile in package rosgraph_msgs
[rosmake-2] Starting >>> roscpp [ make ]
[rosmake-1] Starting >>> rospy [ make ]
[rosmake-7] Finished <<< geometry_msgs ROS_NOBUILD in package geometry_msgs
No Makefile in package geometry_msgs
[rosmake-6] Finished <<< diagnostic_msgs ROS_NOBUILD in package diagnostic_msgs
No Makefile in package diagnostic_msgs
[rosmake-7] Starting >>> sensor_msgs [ make ]
[rosmake-2] Finished <<< roscpp ROS_NOBUILD in package roscpp
No Makefile in package roscpp
[rosmake-2] Starting >>> rosout [ make ]
[rosmake-1] Finished <<< rospy ROS_NOBUILD in package rospy
No Makefile in package rospy
[rosmake-7] Finished <<< sensor_msgs ROS_NOBUILD in package sensor_msgs
No Makefile in package sensor_msgs
[rosmake-7] Starting >>> camera_calibration_parsers [ make ]
[rosmake-2] Finished <<< rosout ROS_NOBUILD in package rosout
No Makefile in package rosout
[rosmake-2] Starting >>> roslaunch [ make ]
[rosmake-7] Finished <<< camera_calibration_parsers ROS_NOBUILD in package camera_calibration_parsers
No Makefile in package camera_calibration_parsers
[rosmake-2] Finished <<< roslaunch ROS_NOBUILD in package roslaunch
No Makefile in package roslaunch
[rosmake-2] Starting >>> rostest [ make ]
[rosmake-2] Finished <<< rostest ROS_NOBUILD in package rostest
No Makefile in package rostest
[rosmake-2] Starting >>> diagnostic_updater [ make ]
[rosmake-7] Starting >>> topic_tools [ make ]
[rosmake-0] Starting >>> message_filters [ make ]
[rosmake-2] Finished <<< diagnostic_updater ROS_NOBUILD in package diagnostic_updater
No Makefile in package diagnostic_updater
[rosmake-0] Finished <<< message_filters ROS_NOBUILD in package message_filters
No Makefile in package message_filters
[rosmake-5] Starting >>> self_test [ make ]
[rosmake-7] Finished <<< topic_tools ROS_NOBUILD in package topic_tools
No Makefile in package topic_tools
[rosmake-5] Finished <<< self_test ROS_NOBUILD in package self_test
No Makefile in package self_test
[rosmake-0] Starting >>> rosbag [ make ]
[rosmake-6] Starting >>> image_transport [ make ]
[rosmake-6] Finished <<< image_transport ROS_NOBUILD in package image_transport
No Makefile in package image_transport
[rosmake-0] Finished <<< rosbag ROS_NOBUILD in package rosbag
No Makefile in package rosbag
[rosmake-0] Starting >>> rosmsg [ make ]
[rosmake-6] Starting >>> polled_camera [ make ]
[rosmake-6] Finished <<< polled_camera ROS_NOBUILD in package polled_camera
No Makefile in package polled_camera
[rosmake-0] Finished <<< rosmsg ROS_NOBUILD in package rosmsg
No Makefile in package rosmsg
[rosmake-0] Starting >>> rosservice [ make ]
[rosmake-0] Finished <<< rosservice ROS_NOBUILD in package rosservice
No Makefile in package rosservice
[rosmake-0] Starting >>> dynamic_reconfigure [ make ]
[rosmake-0] Finished <<< dynamic_reconfigure ROS_NOBUILD in package dynamic_reconfigure
No Makefile in package dynamic_reconfigure
[rosmake-0] Starting >>> driver_base [ make ]
[rosmake-0] Finished <<< driver_base ROS_NOBUILD in package driver_base
No Makefile in package driver_base
[rosmake-0] Starting >>> prosilica_camera [ make ]
[rosmake-0] Finished <<< prosilica_camera ROS_NOBUILD in package prosilica_camera
[ rosmake ] Results:
[ rosmake ] Built 48 packages with 0 failures.
[ rosmake ] Summary output to directory
[ rosmake ] /home/marbosjo/.ros/rosmake/rosmake_output-20131025-104949
Finally I have managed to build the package with make and adding a Makefile with the following line:
include $(shell rospack find mk)/cmake.mk
But I cannot install it, or use it from the location of the workspace, so I have to manually copy the files in the ROS_ROOT.
Any idea about how to build it with rosmake?
Any idea about how to install o use the package compiled with make, without manually moving the files to ROS_ROOT?
Originally posted by marbosjo on ROS Answers with karma: 16 on 2013-10-24
Post score: 0
|
Hi all!
I've just followed this tutorial to create an offline mirror of the ROS Wiki and API, but the API is only populated with diamondback and independent API folders. Where have Fuerte, Groovy and Hydro gone? It there something wrong with the mirror scripts or the website?
in folder roswiki/doc I've executed
$ ls -lah
drwxrwxr-x 4 miquel miquel 4,0K ago 28 23:41 .
drwxr-xr-x 5 miquel miquel 656K oct 25 14:01 ..
lrwxrwxrwx 1 miquel miquel 10 ene 30 2013 api -> groovy/api
drwxrwxr-x 3 miquel miquel 4,0K jul 10 2011 diamondback
lrwxrwxrwx 1 miquel miquel 26 ago 28 23:40 electric -> /home/rosbot/docs/electric
lrwxrwxrwx 1 miquel miquel 24 ago 28 23:40 fuerte -> /home/rosbot/docs/fuerte
lrwxrwxrwx 1 miquel miquel 24 ago 28 23:40 groovy -> /home/rosbot/docs/groovy
lrwxrwxrwx 1 miquel miquel 23 ago 28 23:41 hydro -> /home/rosbot/docs/hydro
drwxrwxr-x 3 miquel miquel 4,0K ene 30 2013 independent
I don't have any rosbot user in my laptop!
Originally posted by Miquel Massot on ROS Answers with karma: 1471 on 2013-10-25
Post score: 0
|
After installing OSX 10.9, PCL does not build anymore. There were a few compilation and linking problems related to VTK 6.0, that I resolved somehow see this discussion.
Now there is a compilation error
[ 21%] Building CXX object filters/CMakeFiles/pcl_filters.dir/src/extract_indices.cpp.o
In file included from /Users/user/Documents/temp/pcl/pcl/filters/src/extract_indices.cpp:41:
In file included from /Users/user/Documents/temp/pcl/pcl/filters/include/pcl/filters/impl/extract_indices.hpp:43:
In file included from /Users/user/Documents/temp/pcl/pcl/filters/include/pcl/filters/extract_indices.h:43:
In file included from /Users/user/Documents/temp/pcl/pcl/filters/include/pcl/filters/filter_indices.h:43:
In file included from /Users/user/Documents/temp/pcl/pcl/filters/include/pcl/filters/filter.h:43:
In file included from /Users/user/Documents/temp/pcl/pcl/common/include/pcl/pcl_base.h:45:
In file included from /Users/user/Documents/temp/pcl/pcl/common/include/pcl/pcl_macros.h:69:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/iostream:38:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/ios:216:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__locale:15:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:434:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/algorithm:1795:32: error: cannot convert 'const pcl::Boundary' to
'unsigned char' without a conversion operator
_VSTD::memset(__first, (unsigned char)__value_, (size_t)(__n));
^~~~~~~~~~~~~~~~~~~~~~~
Any ideas how to resolve this?
Originally posted by Artem on ROS Answers with karma: 709 on 2013-10-25
Post score: 2
Original comments
Comment by Hansg91 on 2013-10-26:
I also tried to compile the latest version of https://github.com/kylelutz/pcl.git and with the vtk6-fixes branch, but then I get some eigen error ...
Comment by Ivano on 2013-10-26:
The eigen issue has been solved here https://github.com/PointCloudLibrary/pcl/issues/283
Regarding the rest, I'm getting the same errors as yourself above after upgrading to Mavericks. V frustrating...
|
there seem to be some differences in the protocol
see
http://support.robotis.com/en/product/dynamixel_pro/communication/instruction_status_packet.htm
and
http://support.robotis.com/en/product/dynamixel/communication/dxl_packet.htm
however, on the dynamixel pro communication site robotis states
Dynamixel protocol 2.0
Previously both Dynamixel and Dynamixel PRO implemented a different protocol. TO verify protocol version please refer to both instruction and status packet.
unfortunately i couldn't find any information if the ros-dynamixel package will support the pro servos
Originally posted by jochen.mueck on ROS Answers with karma: 48 on 2013-10-25
Post score: 0
Original comments
Comment by jochen.mueck on 2013-10-25:
so by looking at the code i figured out that they are currently not supported
|
After an upgrade to Groovy, our PR2 doesn't seem to be using the wired network. Looking at the
/var/log/roam/console-output.log file, I see (with timestamps removed)
validate_common returned False
Discarding packet based on xid: 2742288446 != 11612
validate_common returned False
Discarding packet based on xid: 2742288446 != 11612
validate_common returned False
Fri Oct 25 11:59:11 2013 1382727551.35
# 0 ddwrt 0.0 99.999 99.999 Wired 99.998 100 rule active
# 1 bs@lan1 0.0 -inf -inf Wired 0.000 100 norule active
# 2 wan0 0.0 -inf -inf Wired -1.000 -1 norule active
[ INFO ] : State machine transitioning 'SELECT':'fail'-->'ERROR'
Fri Oct 25 11:59:12 2013 1382727552.35
# 0 ddwrt 0.0 99.998 99.998 Wired 99.997 100 rule active
# 1 bs@lan1 0.0 -inf -inf Wired 0.000 100 norule active
# 2 wan0 0.0 -inf -inf Wired -1.000 -1 norule active
- Base station address is 192.168.1.142:1194
Fri Oct 25 11:59:13 2013 1382727553.35
# 0 ddwrt 0.0 99.998 99.998 Wired 99.997 100 rule active
# 1 bs@lan1 0.0 -inf -inf Wired 0.000 100 norule active
# 2 wan0 0.0 -inf -inf Wired -1.000 -1 norule active
Fri Oct 25 11:59:14 2013 1382727554.35
# 0 ddwrt 0.0 99.999 99.999 Wired 99.997 100 rule active
# 1 bs@lan1 0.0 -inf -inf Wired 0.000 100 norule active
# 2 wan0 0.0 -inf -inf Wired -1.000 -1 norule active
- Base station address is 192.168.1.142:1194
Fri Oct 25 11:59:15 2013 1382727555.35
# 0 ddwrt 0.0 94.999 94.999 Wired 89.998 100 rule active
# 1 bs@lan1 0.0 -inf -inf Wired 0.000 100 norule active
# 2 wan0 0.0 -inf -inf Wired -1.000 -1 norule active
Fri Oct 25 11:59:16 2013 1382727556.35
# 0 ddwrt 0.0 99.999 99.999 Wired 99.998 100 rule active
# 1 bs@lan1 0.0 -inf -inf Wired 0.000 100 norule active
# 2 wan0 0.0 -inf -inf Wired -1.000 -1 norule active
[ INFO ] : State machine transitioning 'ERROR':'done'-->'INIT'
[ INFO ] : State machine transitioning 'INIT':'done'-->'SELECT'
Fri Oct 25 11:59:17 2013 1382727557.35
# 0 ddwrt 0.0 99.998 99.998 Wired 99.997 100 rule active
# 1 bs@lan1 0.0 -inf -inf Wired 0.000 100 norule active
# 2 wan0 0.0 -inf -inf Wired -1.000 -1 norule active
Fri Oct 25 11:59:18 2013 1382727558.35
# 0 ddwrt 0.0 99.999 99.999 Wired 99.998 100 rule active
# 1 bs@lan1 0.0 -inf -inf Wired 0.000 100 norule active
# 2 wan0 0.0 -inf -inf Wired -1.000 -1 norule active
Discarding packet based on xid: 17313 != 52692
validate_common returned False
Discarding packet based on xid: 17313 != 52692
validate_common returned False
[ INFO ] : State machine transitioning 'SELECT':'fail'-->'ERROR'
Fri Oct 25 11:59:19 2013 1382727559.35
# 0 ddwrt 0.0 99.999 99.999 Wired 99.998 100 rule active
# 1 bs@lan1 0.0 -inf -inf Wired 0.000 100 norule active
# 2 wan0 0.0 -inf -inf Wired -1.000 -1 norule active
wan0 never seems to have an active connection. Any ideas?
Originally posted by vhwanger on ROS Answers with karma: 52 on 2013-10-25
Post score: 0
Original comments
Comment by Dan Lazewatsky on 2013-10-25:
Since this isn't actually ROS related, you might do better with the pr2-admins mailing list.
|
Hi, We have a Velodyne Lidar (HDL-32E)(equipped with IMU) that I am trying to start with it. we have gathered UDP positioning packet(port 8308) which includes gyroscope, accelerometer and temperature measurements. I have a few questions:
1- Should all gyro measurements be negative? (mine are)
2- We get 6 accelerometer measurements (ACC1x, ACC1y, ACC2x, ACC2y, ACC3x, ACC3y). I expected to have 3 acceleration measures. How can I get these 6 to 3 x-y-z accelerations?
3- We get 3 temperature measures? why 3? do they differ?
I really appreciate your help.
Originally posted by MinaAttari on ROS Answers with karma: 21 on 2013-10-25
Post score: 2
Original comments
Comment by joq on 2013-10-25:
I have no access to that device and no experience with it. Maybe others can help.
Comment by joq on 2013-10-25:
Appendix B in the 32E manual does have some diagrams and hints: http://velodynelidar.com/lidar/products/manual/63-9113%20HDL-32E%20manual_Rev%20E_NOV2012.pdf .
Comment by Michiel on 2014-07-28:
I have the same question 2, how can I get the 3 x-y-z accelerations from these 6 measurements? You already figured it out?
Comment by Heikki on 2015-12-04:
In order to get the orientation and accelerations out of these 6 measurements, you should use some IMU algorithm. For example this: http://dx.doi.org/10.1155/2015/503814 and it has source code available here: https://github.com/hhyyti/dcm-imu
Comment by joq on 2015-12-04:
Note: there is now an experimental velodyne_gps_imu package in github. It's currently in the gps_imu branch, not yet merged into master. Anyone who tries it, please comment on pull request #53
|
By custom I mean, it's just an iRobot Create with a kinect mounted on it. The laptop that I plan to use has the following specifications -
Intel® Core™2 Duo CPU T9400 @ 2.53GHz × 2
32bit, 4GB Ram, Graphics - Intel integrated graphics controller
Ubuntu 12.04
By primary aim is to be able to run some path planning algorithms based on real time data from the kinect.
So which version of ROS would you say is more stable for this work?
Originally posted by nemesis on ROS Answers with karma: 237 on 2013-10-25
Post score: 0
|
Hi there,
I am working on ROS-Groovy installed on precise 12.04 linux machine. when trying to connect to ur5 robot using the instructions given in README.md file found in this link github.com/ros-industrial/universal_robot...
I get the below error.
[ERROR] [WallTime: 1382729859.230626] Loaded calibration offsets: {}
Traceback (most recent call last):
File "/home/robotlabpc/catkin_ws/src/universal_robot/ur_driver/src/ur_driver/driver.py", line 697, in <module>
if __name__ == '__main__': main()
File "/home/robotlabpc/catkin_ws/src/universal_robot/ur_driver/src/ur_driver/driver.py", line 648, in main
program = fin.read() % {"driver_hostname": get_my_ip(robot_hostname, PORT)}
File "/home/robotlabpc/catkin_ws/src/universal_robot/ur_driver/src/ur_driver/driver.py", line 609, in get_my_ip
s = socket.create_connection((robot_ip, port))
File "/usr/lib/python2.7/socket.py", line 571, in create_connection
raise err
socket.error: [Errno 111] Connection refused
[ur_driver-2] process has died [pid 22866, exit code 1, cmd /home/robotlabpc/catkin_ws/src/universal_robot/ur_driver/src/ur_driver/driver.py 192.168.1.5 __name:=ur_driver __log:=/home/robotlabpc/.ros/log/a1eeed26-3dac-11e3-8aa7-0013d41b020f/ur_driver-2.log].
log file: /home/robotlabpc/.ros/log/a1eeed26-3dac-11e3-8aa7-0013d41b020f/ur_driver-2*.log
Can some one please provide steps to configure the server side (ROS) and any details which needs attention on the polyscope touch screen interface.
Any help in this regard will be good. Thanks in advance.
Regards,
Murali
Originally posted by MKI on ROS Answers with karma: 246 on 2013-10-25
Post score: 0
Original comments
Comment by sedwards on 2013-10-27:
Are you able to ping your robot?
Comment by MKI on 2013-10-27:
Hi Shaun, Yes, I was able to ping the robot, I defined the Robot and My PC to have static IP addresses. Robot is configured listen on port 30000. When I launch ur5.launch, I get warning msgs stating that, I have not configured the calibration offsets for joints. Awaiting your response, Thank you.
|
I want to display a map on android tablet. I have a gapping node which publishes a "map" topic. To display it I followed make_a_map tutorial from android apps, that can be found on rosjava github. Unfortunately instead of displaying a map, application crashes due to out of memory problem. What am I doing wrong? How can I access OccupancyGrid message and display its content on my tablet?
Map info taken from rostopic echo map_metadata:
resolution: 0.0500000007451
width: 4000
height: 4000
My tablet is Samsung Galaxy note 10.1 which has 2GB RAM, 1,4 GHz quad core CPU and runs on Android 4.1
Originally posted by grzebyk on ROS Answers with karma: 141 on 2013-10-25
Post score: 1
Original comments
Comment by Eric Perko on 2013-10-26:
How large is your map? I suggest you edit your question to include the map metadata info (e.g. rostopic echo /map/info ) as well as maybe some details about what type of tablet you are displaying on. Out-of-memory issues might be completely reasonable with a large map and a low-memory device.
Comment by grzebyk on 2013-10-26:
thank you for your comment. I edited my question.
|
I'm not sure what's causing this but catkin_make ignores dependencies for one or two of my packages.
The package x_competitor_layer depends on the message generation of x_eth_interface. I've added this dependency in
package.xml (build_depend and run_depend)
CMakeLists.txt (x_eth_interface in find_package as well as x_eth_interface_generate_messages in add_dependencies)
of x_competitor_layer package.
But still catkin_make doesn't build x_eth_interface_generate_messages first and keeps complaining about a missing header file. I can solve this problem manually by calling catkin_make x_eth_interface_generate_messages first. But catkin should be able to solve it on its own, shouldn't it?
So what could possibly have gone wrong? What might be missing?
Thanks guys!
Cheers,
Hendrik
Originally posted by Hendrik Wiese on ROS Answers with karma: 1145 on 2013-10-25
Post score: 0
Original comments
Comment by Artem on 2013-10-26:
Maybe it's a different problem, but have you tried to call catkin_make, a few times in row?
Comment by Hendrik Wiese on 2013-10-26:
Yepp, I have. Sadly to no avail.
Comment by Dirk Thomas on 2013-10-27:
Please provide a minimal rosinstall file for your workspace (or point to repos containing the code in question) which allows to reproduce your issue.
|
I'm totally a beginner in ROS & Robotics .. I have installed ROS Hydro and set up my workspace + sandbox.
then i started to create enclosure_escape package with 3 dependencies
$ roscd
$ cd sandbox
$ roscreate-pkg enclosure_escape roscpp kobuki_msgs geometry_msgs
now I have to create my c++ code in src folder .. lets say enclosure_escape.cpp
which contains the following code ..
//include libraries
#include <kobuki_msgs/BumperEvent.h>
#include <geometry_msgs/Twist.h>
#include <ros/ros.h>
//define the bumperCallback function
void bumperCallback(const kobuki_msgs::BumperEvent bumperMessage)
{
ROS_INFO("bumper hit. value = [%d]", bumperMessage.bumper);
}
//ROS node entry point
int main(int argc, char **argv)
{
ros::init(argc, argv, "turtlebot_test_node");
ros::NodeHandle n;
ros::Subscriber bumperSubscriber = n.subscribe("/mobile_base/events/bumper", 100, bumperCallback);
ros::Publisher velocityPublisher = n.advertise<geometry_msgs::Twist>("cmd_vel_mux/input/teleop", 1);
//create a Twist message to publish the velocity
geometry_msgs::Twist velMessage;
velMessage.linear.x = 1.0;
velMessage.angular.z = 0.0;
//publish the message
velocityPublisher.publish(velMessage);
ros::spin();
return 0;
}
now the Question comes .. how to run this on turtlebot simulator?
Originally posted by adelali on ROS Answers with karma: 1 on 2013-10-25
Post score: 0
Original comments
Comment by choog on 2014-06-06:
on your
ros::Publisher velocityPublisher = n.advertise<geometry_msgs::Twist>("cmd_vel_mux/input/teleop", 1);
line why do you specify ("cmd_vel_mux/input/teleop", 1) in your code? what is this doing?
|
Hi all,
I have started to write some unittests in Python for my nodes and I would like to use existing tests as a model.
I have some experience with GTest (a little less with Python's unittest) but I had never tried to integrate my tests with ROS. Some questions for which I did not find answers in the documentation are: what kind of things should be tested in rostest level? parameters? subscriptions? the code itself? And how are these usually tested? For instance, are the parameters loaded in the rostest launch file or in your Python/C++ code? Even more, how Node-Level and Code-Level tests should be integrated?
I am looking for tests that could help me with the understanding of these concepts (and that maybe could be used as examples in the unittest's tutorials section).
Edit
To sum up my question, I am looking for examples of python's unittest that could be good candidates to put them in the tutorials section (http://wiki.ros.org/unittest)
In essence these examples should illustrate proper ways of using unittest to test the correctness of your nodes. Eg: loading/setting parameters, initialization, publishers/subscribers, etc.
Originally posted by Victor Gonzalez-Pacheco on ROS Answers with karma: 396 on 2013-10-25
Post score: 10
|
I'm trying the DWA Local Planner as an alternative for the TrajectoryPlanner. At first it moves heading to the given goal pretty fast. But close to the goal, that is about half a meter which still is quite a distance considering that the whole world of the robot is just a plane of 2 by 3 meters, it kind of stops and keeps like dancing in place.
Here's my parameter dump for the local costmap and the DWA Local Planner. There has to be something wrong...
//edit: Okay, I overlooked an error message coming out of the local planner. Here it is:
None of the 94 first of 94 (94) points of the global plan were in the local costmap and free
What might be causing this error?
Thanks for your help!
Cheers,
Hendrik
Originally posted by Hendrik Wiese on ROS Answers with karma: 1145 on 2013-10-26
Post score: 1
|
I'm trying to install Ros Groovy on Fedora 19, following http://wiki.ros.org/groovy/Installation/Fedora. I already had a couple of problems that I have been able to solve myself. However, I don't know how to fix the following problem.
When running
sudo ./src_wet/catkin/bin/catkin_make_isolated --install -DSETUPTOOLS_DEB_LAYOUT=OFF --source-space src_wet/ -j1
this error
pcl/io/include/pcl/io/vtk_lib_io.h:57:29: fatal error: vtkSmartPointer.h: No such file or directory
appears. However, the find command gives the location of that file as /usr/include/vtk/vtkSmartPointer.h. So, why is this error happening?
Originally posted by atp on ROS Answers with karma: 529 on 2013-10-26
Post score: 0
|
Hello, everyone!
It's not a question about ROS, but I think many of you met the same problem. I have been writing code that have a part to solve some complicate geometrical problem. The problem had been solved on a sketch by me and I replaced the solution in the code using variable name according to that I use on the sheet. After few week I have lost my sketch and the solution too.. but when I look at the code I have no idea how I have solved it and that all these variables mean. Comments are useful no so better than variable names. And I really need to solve the problem again to understand how it works.
Perhaps someone knows instruments or practices to do the code more self-documented in this case.
Thanks, Aleksey.
Originally posted by flipback on ROS Answers with karma: 16 on 2013-10-27
Post score: 0
|
At the moment, I control my Husky robot by using a wireless joypad as described in Husky-ROS tutorial
roscore
roslaunch clearpath_base example.launch
roslaunch clearpath_teleop teleop.launch
Since I need to log some parameters (such as left and right linear velocity, encoders ticks, etc..), I use "rostopic echo" and then I re-direct the output to a text file.
For example, I do as follows:
rostopic echo /clearpath/robots/default/cmd_vel >> log-for-vel.txt
After this, I wrote down a bash script which is able to extract only the desired values from the log files.
Typically, each topic file is something like this:
header:
seq: 778
stamp:
secs: 1380713547
nsecs: 429730892
frame_id: ''
left_speed: 0.34
right_speed: 0.34
left_accel: 0.5
right_accel: 0.5
---
header:
seq: 779
stamp:
secs: 1380713544
nsecs: 735946893
frame_id: ''
left_speed: 0.26
right_speed: 0.26
left_accel: 0.5
right_accel: 0.5
And I just need to extract timestamp and left and right velocity information.
Since this is an intricate solution, I would like to know if there is any smarter solution to log these values in a text files without having to redirect the output for each topic.
What's the best solution for my problem?
I really hope you can help me!
Thank you very much!
Originally posted by Marcus Barnet on ROS Answers with karma: 287 on 2013-10-27
Post score: 0
|
Hi all,
I've worked on simulated husky with simulated kinect to create a customize 3d occupancy map, i want to transform the pointcloud frame to map or world frame, but i don't have these frames, just i can translate to odom frame, for creating 3d occupancy map, is it enough or i should add a link in my urdf or any thing else to create world frame ?!
Thank you.
Originally posted by VahidD on ROS Answers with karma: 72 on 2013-10-27
Post score: 1
Original comments
Comment by Abdulbaki on 2017-10-06:
How could you do it?
|
H everyone, I can compile the following code in Xcode but I cannot do the same when using rosmake. Here is my .h file:
#ifndef __AStartAlgorithm__AStarAlgorithm__
#define __AStartAlgorithm__AStarAlgorithm__
#include <iostream>
#include <vector>
class AStarAlgorithm{
public:
AStarAlgorithm();
void astar();
void printmap(std::vector < std::vector<int> >map);
private:
};
#endif /* defined(__AStartAlgorithm__AStarAlgorithm__) */
Here is my .cpp:
#include "../header/AStarAlgorithm.h"
#include <iostream>
#include <vector>
AStarAlgorithm::AStarAlgorithm(){
}
void AStarAlgorithm::astar(){
std::vector<std::vector<int> > map = {{8,8,8,8,8,8,8},{8,0,0,0,0,0,8},{8,0,0,0,0,0,8},{8,0,1,0,0,2,8},{8,0,0,0,0,0,8},{8,0,0,0,0,0,8},{8,8,8,8,8,8,8}};
// printmap(map);
}
/*
void AStarAlgorithm::printmap(std::vector < std::vector<int> >map){
for(int i = 0; i < map.size(); i++){
for(int j = 0; j < map[i].size(); j++){
if(map[i][j] <10){
std::cout << "|"<<map[i][j] << " |";
}else{
std::cout << "|"<<map[i][j] << "|";
}
}
std::cout << std::endl;
}
std::cout << std::endl;
}
*/
I want to print out the vector with the commented out code but the problem at the moment is just initialising the vector. Here is my error in ROS:
/home/jay/fuerte/sandbox/ucl_drone/src/trajectory/AStarAlgorithm.cpp:
In member function ‘void
AStarAlgorithm::astar()’:
/home/jay/fuerte/sandbox/ucl_drone/src/trajectory/AStarAlgorithm.cpp:17:154:
error: in C++98 ‘map’ must be
initialised by constructor, not by
‘{...}’
/home/jay/fuerte/sandbox/ucl_drone/src/trajectory/AStarAlgorithm.cpp:17:154:
error: deducing from brace-enclosed
initialiser, list requires #include
<initializer_list>
/home/jay/fuerte/sandbox/ucl_drone/src/trajectory/AStarAlgorithm.cpp:17:154:
error: deducing from brace-enclosed
initialiser, list requires #include
<initializer_list>
/home/jay/fuerte/sandbox/ucl_drone/src/trajectory/AStarAlgorithm.cpp:17:154:
warning: extended initialiser lists
only available with -std=c++0x or
-std=gnu++0x [enabled by default] /home/jay/fuerte/sandbox/ucl_drone/src/trajectory/AStarAlgorithm.cpp:17:154:
error: could not convert ‘{{8, 8, 8,
8, 8, 8, 8}, {8, 0, 0, 0, 0, 0, 8},
{8, 0, 0, 0, 0, 0, 8}, {8, 0, 1, 0, 0,
2, 8}, {8, 0, 0, 0, 0, 0, 8}, {8, 0,
0, 0, 0, 0, 8}, {8, 8, 8, 8, 8, 8,
8}}’ from ‘’ to
‘std::vectorstd::vector<int >’
Any help will be much appreciated! Thank you.
Originally posted by JP on ROS Answers with karma: 95 on 2013-10-27
Post score: 0
|
Hi there,
I'm trying to integrate RGB-D SLAM with the Hector Quadrotor model simulation on Gazebo. The idea is to launch the model of the quadrotor with a kinect and use the visual data recovered by the simulated camera in the running RGB-D SLAM.
What's supposed to be done so this can function right? What topics should be called in each launched file so can RGB-D SLAM Bcan receive data from the simulated Gazebo Kinect?
Thank you! Best regards
Originally posted by TSC on ROS Answers with karma: 210 on 2013-10-27
Post score: 0
Original comments
Comment by rock-ass on 2014-01-08:
I have tried to do the same thing, i got it working (although there is some issues). It required to resolve all dependancy issues and to migrate some old packages into Hydro distro, if you're still interested I could give a few pointers..
Comment by TSC on 2014-01-08:
Hi there! Off course, I'm still interested. Can you please give me some tips, maybe even post some packages to download and use them on Hydro? So you are able to use RGB-D SLAM and Hector Quadrotor both on Hydro? I will need RGBD-SLAM running on Ubuntu ARM.
Thank you
Comment by rock-ass on 2014-01-09:
Yes i'm able to use them on hydro. I can provide updated source code of rgbdslam package to be able to compile on ROS hydro, i will provide the info today. But you want it on ARM? simulator on arm should be a real pain to setup and probably will be of poor performance
Comment by TSC on 2014-01-09:
The only thing I want for ARM is the RGB-D SLAM package, since I will be using visual stream data for navigation of a real quad. But first I need to put the simulation correctly working on Hydro so that I can make a port of the used algorithms on a Odroid board.
Comment by rock-ass on 2014-01-10:
I posted an answer with link to repo, mark it as answered if it helps :) Let me know if you get any results. i am also working on a quadrotor simulation, only i'm using stereo camera only instead of kinect
|
Building octomap, orocos_kdl and other packages on OSX 10.9 produces the following compilation errors
/Users/artemlenskiy/ros/hydro/src/octomap/src/Pointcloud.cpp:37:12: fatal error: 'ext/algorithm' file not found
#include <ext/algorithm>
^
[ 29%] Building CXX object src/CMakeFiles/octomap.dir/AbstractOcTree.cpp.o
In file included from /Users/artemlenskiy/ros/hydro/src/octomap/src/OcTreeLUT.cpp:37:
In file included from /Users/artemlenskiy/ros/hydro/src/octomap/include/octomap/OcTreeLUT.h:40:
/Users/artemlenskiy/ros/hydro/src/octomap/include/octomap/OcTreeKey.h:40:12: fatal error: 'tr1/unordered_set' file not found
#include <tr1/unordered_set>
...
In the case of orocos_kdl
In file included from /Users/artemlenskiy/ros/hydro/src/orocos_kdl/src/kinfam_io.cpp:22:
In file included from /Users/artemlenskiy/ros/hydro/src/orocos_kdl/src/kinfam_io.hpp:25:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/iostream:38:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/ios:216:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__locale:15:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:434:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/algorithm:593:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/utility:221:9: error: field has incomplete type 'KDL::TreeElement'
_T2 second;
Originally posted by Artem on ROS Answers with karma: 709 on 2013-10-27
Post score: 8
Original comments
Comment by Bruno Normande on 2013-11-18:
Did you find an answer to the orocos_kdl problem? I've built latest version of octomap/devel branch without problem, but I don't know yet how to solve this orocos_kdl error
|
I am following this page:
http://wiki.ros.org/groovy/Installation/UbuntuARM
and have it working, but cannot find the install package for navigation.
apt-cache search ros-groovy
does not show up a nav package other than nav_msgs.
So, of course,
sudo apt-get install ros-groovy-navigation
just returns this:
Unable to locate package ros-groovy-navigation
How do I get programs like amcl, move_base, etc. installed?
Originally posted by dan on ROS Answers with karma: 875 on 2013-10-27
Post score: 0
|
After taking some time to acquaint myself with the KnowRob system, I'm now in the process of writing my own modules using its functionalities. As a simple starting point, I just want to write an action recipe telling my robot to get to the middle of the room (x=0.00, y=0.00), then just move to another point in the map (x=3.00, y=3.00).
I'm using the move_base module for navigation, and the robot is simulated in an empty room (no semantic map is needed as the space is empty).
CPL is not something I want to look into right now, as my time is limited and I think that system would add a layer of complexity that I don't need right now. I know that the KnowRob team has done experiments using action recipes in the past without using CPL and the cogito system.
In order to implement a working application, I decided to extend the KnowRob ontology with data about action execution on one hand, and to write a simple python module to query the prolog system to actually move the robot on the other hand.
This is the core of my extension to the ontology
> <owl:Class rdf:about="&move;GoToPoint">
> <rdfs:subClassOf rdf:resource="&knowrob;Translation-LocationChange"/>
> <rdfs:subClassOf>
> <owl:Class>
> <owl:intersectionOf rdf:parseType="Collection">
> <owl:Restriction>
> <owl:onProperty rdf:resource="&move;providedByMotionPrimitive"/>
> <owl:hasValue rdf:resource="&move;move_base" />
> </owl:Restriction>
> <owl:Restriction>
> <owl:onProperty rdf:resource="&move;destXValue"/>
> <owl:cardinality rdf:datatype="&xsd;decimal">1</owl:cardinality>
> </owl:Restriction>
> <owl:Restriction>
> <owl:onProperty rdf:resource="&move;destYValue"/>
> <owl:cardinality rdf:datatype="&xsd;decimal">1</owl:cardinality>
> </owl:Restriction>
> </owl:intersectionOf>
> </owl:Class>
> </rdfs:subClassOf> </owl:Class>
I added a MotionPrimitive class, of which move_base is a subclass. Each motion primitive provides a providedByROSAction property: a string containing the name of the appropriate ROS actionlib server. My action recipe is thus simply composed as an intersection of various GoToPoint restrictions.
The robot connects to json_prolog and, on being asked to perform the task, asks for
plan_subevents(move:'MovementTest', SEs)
then queries for the appropriate action primitives and, if it is aware of them, queries for the needed parameters and calls the corresponding servers.
I implemented this approach and it works just fine. I know there are a few minor things that should be fixed (e.g. in the ontology points in space should be represented as properties of a PointInSpace class) but I'm afraid about a major issue that this implementation brings up. Mainly, maintaining both the ontology and the robot executor might become very difficult with the number of action servers getting big. It would obviously be also very prone to errors, as the developers would have to both update one and the other, in two different languages.
Am I proceeding in the right direction with this implementation structure? Am I missing something big? Should I use some other built-in feature I didn't see/notice?
Originally posted by micpalmia on ROS Answers with karma: 58 on 2013-10-27
Post score: 1
|
Hi, i,ve managed to create some bags starting from some carmen log file.
Now i'm trying to use those bags with for gmapping but while rosbag play doesn't show any error, gmapping get stuck at:
update frame 0
update ld=0 ad=0
Laser Pose= 0 0 0
m_count 0
Registering First Scan
so when i try to get the map file using "rosrun map_server map_saver" only a partial map file is given.
While doing this procedure with the bag given in the gmapping from logged data tutorial nothing get wrong.
one of the bags i'm trying to use is this: db.tt/BawU5lXp
Is there a way to check if the bag is suitable for what i'm doing ? what can be the problem ?
Originally posted by loppo on ROS Answers with karma: 26 on 2013-10-27
Post score: 0
|
Hi there,
Ubuntu 12.04;
Ros Hydro;
C++;
link page on ROS: tf/Tutorials/Writing a tf listener (C++)
phenomenon: When I tried to follow the tutorial to write a tf listener in C++ and catkin_make it, error cannot find Velocity.h in the system.
I searched and found that there is Velocity.h in Groovy. In this page(remove turtlesim velocity and use Twist msg in Github), jihoonl says we should change turtlesimVelocity.h to geometry_msgs/Twist.h.
How should I change the C++ tutorial code in 'writing a tf listener'? I tried to change it properly, but failed. Any suggestion is highly appreciated :)
Thank you very much.
Originally posted by pymsmile on ROS Answers with karma: 1 on 2013-10-27
Post score: 1
|
Hi there,
How can I check if a topic name already exists with Python?
I think this can be a noob question, but I have not managed to find it...
Regards.
Originally posted by BeLi on ROS Answers with karma: 21 on 2013-10-27
Post score: 2
Original comments
Comment by user23fj239 on 2016-02-16:
This question is with good cause, as one could avoid subscribing to topics not being out there. I ran into the same problem in roscpp and there seems to be no solution, but subscribing to the topics having in mind and checking for incoming msgs.
|
So I'm trying to wrap my head around which node exactly does the control system for moving a specific distance in the Navigation stack (using current velocity from /cmd_vel). I came to the conclusion that move_base is responsible for this, but now I'm wondering: what kind of control system does it implement? How does it know what cmd_vel to publish in order to reach the specific distance it must go? Is it a PID controller or something?
I'm mostly asking this just to make sure that I understand this right... I basically want to make sure that my robot moves to the designated destination in a controlled manner (not just full speed until it reaches target then stops and overshoots)...
Originally posted by basheersubei on ROS Answers with karma: 33 on 2013-10-27
Post score: 2
Original comments
Comment by David Lu on 2013-11-01:
Which planner are you using and what ROS version?
Comment by basheersubei on 2013-11-01:
I haven't started working on the Navigation stack, because I need to first figure out my base_controller (and I need to find out what it should expect from Navigation). Basically, does Navigation take care of going from one point to another in a controlled manner (without overshoot)?
|
Hi,
I have question, on odom and base_footprint, especially when the robot is falling down or 4-legged walking in REP 120.
I assume that humanoid robot did not know about the current waist position, but can estimate orientation from IMU sensors.
does odom correspond to the sensor based orientation and world reference based position of the waist?
does base_footprint respect the sensor based orientation and model based calculation of the height of the waist?
if it is ok, the question is
how do you estimate the position of the odom, from the walking controllers? does that include any sensor data?
does base_footprint does not reflect any sensor data? what's happens if the robot falling down or 4-legged walking mode?
Originally posted by Kei Okada on ROS Answers with karma: 1186 on 2013-10-27
Post score: 3
|
Hello Everybody,
A ROS newbie here. I'm learning ROS and currently at the file system tutorials.
I'm currently running ROS on 64-bit Ubuntu 12 and soon I'm going to install it on Beaglebone Black (Angstrom).
I have a Logitech C920 webcam with hardware H264. Please suggest me 2D slam technique which can be used with my webcam and is easy to learn.
Regards,
sarkar
Originally posted by sarkar on ROS Answers with karma: 36 on 2013-10-27
Post score: 1
|
Hi,
I am trying to implement my own rqt plugin with C++. It consist of a QGraphicsView with few QGraphicsItems.
I did it like in rqt_image_view, basically by copying and adjusting the content of CMakeList.txt, package.xml, plugin.xml, setup.py.
However it is build without any errors when I try to launch it I get a message:
qt_gui_main() found no plugin matching "agent_gui"
I have no idea what can I do wrong here. I have included PLUGINLIB_EXPORT_CLASS macro in source file of my class inheriting from rqt_gui_cpp::Plugin, added appropriate export in plugin.xml. Just like in rqt_image_view plugin and the tutorial.
I use ROS groovy and catkin on Ubuntu 12.04 LTS
Thanks in advance, I appreciate any help.
Filip
Originally posted by robodude on ROS Answers with karma: 36 on 2013-10-28
Post score: 1
|
hasitha@hasitha-HP-ProBook-4520s:~$ rosmake rgbdslam_freiburg
[ rosmake ] rosmake starting...
[ rosmake ] Packages requested are: ['rgbdslam_freiburg']
[ rosmake ] Logging to directory /home/hasitha/.ros/rosmake/rosmake_output-20131028-235835
[ rosmake ] Expanded args ['rgbdslam_freiburg'] to:
['rgbdslam']
[rosmake-0] Starting >>> roslang [ make ]
[rosmake-1] Starting >>> geometry_msgs [ make ]
[rosmake-2] Starting >>> opencv2 [ make ]
[rosmake-3] Starting >>> bullet [ make ]
[rosmake-0] Finished <<< roslang No Makefile in package roslang
[rosmake-2] Finished <<< opencv2 ROS_NOBUILD in package opencv2
[rosmake-0] Starting >>> rospy [ make ]
[rosmake-2] Starting >>> roscpp [ make ]
[rosmake-1] Finished <<< geometry_msgs No Makefile in package geometry_msgs
[rosmake-1] Starting >>> sensor_msgs [ make ]
[rosmake-0] Finished <<< rospy No Makefile in package rospy
[rosmake-3] Finished <<< bullet ROS_NOBUILD in package bullet
[rosmake-0] Starting >>> rosconsole [ make ]
[rosmake-3] Starting >>> angles [ make ]
[rosmake-3] Finished <<< angles ROS_NOBUILD in package angles
[rosmake-3] Starting >>> rostest [ make ]
[rosmake-2] Finished <<< roscpp No Makefile in package roscpp
[rosmake-2] Starting >>> roswtf [ make ]
[rosmake-0] Finished <<< rosconsole No Makefile in package rosconsole
[rosmake-1] Finished <<< sensor_msgs No Makefile in package sensor_msgs
[rosmake-0] Starting >>> message_filters [ make ]
[rosmake-1] Starting >>> image_geometry [ make ]
[rosmake-3] Finished <<< rostest No Makefile in package rostest
[rosmake-1] Finished <<< image_geometry ROS_NOBUILD in package image_geometry
[rosmake-3] Starting >>> std_msgs [ make ]
[rosmake-2] Finished <<< roswtf No Makefile in package roswtf
[rosmake-1] Starting >>> rosbag [ make ]
[rosmake-0] Finished <<< message_filters No Makefile in package message_filters
[rosmake-2] Starting >>> rosbuild [ make ]
[rosmake-0] Starting >>> tf [ make ]
[rosmake-0] Finished <<< tf ROS_NOBUILD in package tf
[rosmake-2] Finished <<< rosbuild No Makefile in package rosbuild
[rosmake-1] Finished <<< rosbag No Makefile in package rosbag
[rosmake-3] Finished <<< std_msgs No Makefile in package std_msgs
[rosmake-0] Starting >>> roslib [ make ]
[rosmake-1] Starting >>> pcl [ make ]
[rosmake-2] Starting >>> smclib [ make ]
[rosmake-3] Starting >>> rosservice [ make ]
[rosmake-0] Finished <<< roslib No Makefile in package roslib
[rosmake-0] Starting >>> pluginlib [ make ]
[rosmake-2] Finished <<< smclib ROS_NOBUILD in package smclib
[rosmake-3] Finished <<< rosservice No Makefile in package rosservice
[rosmake-2] Starting >>> bond [ make ]
[rosmake-3] Starting >>> dynamic_reconfigure [ make ]
[rosmake-1] Finished <<< pcl ROS_NOBUILD in package pcl
No Makefile in package pcl
[rosmake-0] Finished <<< pluginlib ROS_NOBUILD in package pluginlib
[rosmake-0] Starting >>> common_rosdeps [ make ]
[rosmake-2] Finished <<< bond ROS_NOBUILD in package bond
[rosmake-2] Starting >>> bondcpp [ make ]
[rosmake-1] Starting >>> cv_bridge [ make ]
[rosmake-1] Finished <<< cv_bridge ROS_NOBUILD in package cv_bridge
[rosmake-2] Finished <<< bondcpp ROS_NOBUILD in package bondcpp
[rosmake-2] Starting >>> nodelet [ make ]
[rosmake-1] Starting >>> visualization_msgs [ make ]
[rosmake-0] Finished <<< common_rosdeps ROS_NOBUILD in package common_rosdeps
[rosmake-0] Starting >>> octomap_ros [ make ]
[rosmake-3] Finished <<< dynamic_reconfigure ROS_NOBUILD in package dynamic_reconfigure
[rosmake-3] Starting >>> nav_msgs [ make ]
[rosmake-2] Finished <<< nodelet ROS_NOBUILD in package nodelet
[rosmake-2] Starting >>> nodelet_topic_tools [ make ]
[rosmake-1] Finished <<< visualization_msgs No Makefile in package visualization_msgs
[rosmake-1] Starting >>> actionlib_msgs [ make ]
[rosmake-0] Finished <<< octomap_ros ROS_NOBUILD in package octomap_ros
[rosmake-3] Finished <<< nav_msgs No Makefile in package nav_msgs
[rosmake-0] Starting >>> trajectory_msgs [ make ]
[rosmake-3] Starting >>> std_srvs [ make ]
[rosmake-2] Finished <<< nodelet_topic_tools ROS_NOBUILD in package nodelet_topic_tools
[rosmake-2] Starting >>> pcl_ros [ make ]
[rosmake-1] Finished <<< actionlib_msgs No Makefile in package actionlib_msgs
[rosmake-2] Finished <<< pcl_ros ROS_NOBUILD in package pcl_ros
[rosmake-0] Finished <<< trajectory_msgs No Makefile in package trajectory_msgs
[rosmake-3] Finished <<< std_srvs No Makefile in package std_srvs
[rosmake-2] Starting >>> flann [ make ]
[rosmake-0] Starting >>> mk [ make ]
[rosmake-3] Starting >>> orocos_kdl [ make ]
[rosmake-1] Starting >>> arm_navigation_msgs [ make ]
[rosmake-2] Finished <<< flann ROS_NOBUILD in package flann
[rosmake-2] Starting >>> opencv_tests [ make ]
[rosmake-3] Finished <<< orocos_kdl ROS_NOBUILD in package orocos_kdl
[rosmake-0] Finished <<< mk No Makefile in package mk
[rosmake-2] Finished <<< opencv_tests ROS_NOBUILD in package opencv_tests
[rosmake-1] Finished <<< arm_navigation_msgs ROS_NOBUILD in package arm_navigation_msgs
[rosmake-1] Starting >>> octomap_server [ make ]
[rosmake-3] Starting >>> python_orocos_kdl [ make ]
[rosmake-1] Finished <<< octomap_server ROS_NOBUILD in package octomap_server
[rosmake-1] Starting >>> rgbdslam [ make ]
[rosmake-3] Finished <<< python_orocos_kdl ROS_NOBUILD in package python_orocos_kdl
[rosmake-3] Starting >>> kdl [ make ]
[rosmake-3] Finished <<< kdl ROS_NOBUILD in package kdl
No Makefile in package kdl
[rosmake-3] Starting >>> eigen_conversions [ make ]
[rosmake-3] Finished <<< eigen_conversions ROS_NOBUILD in package eigen_conversions
[rosmake-3] Starting >>> tf_conversions [ make ]
[rosmake-3] Finished <<< tf_conversions ROS_NOBUILD in package tf_conversions
[rosmake-3] Starting >>> cv_markers [ make ]
[rosmake-3] Finished <<< cv_markers ROS_NOBUILD in package cv_markers
[ rosmake ] All 2 linesrgbdslam: 0.0 sec ] [ 1 Active 47/48 Complete ]
{-------------------------------------------------------------------------------
mkdir: cannot create directory `build': Permission denied
[ rosmake ] Output from build of package rgbdslam written to:
[ rosmake ] /home/hasitha/.ros/rosmake/rosmake_output-20131028-235835/rgbdslam/build_output.log
[rosmake-1] Finished <<< rgbdslam [FAIL] [ 0.07 seconds ]
[ rosmake ] Halting due to failure in package rgbdslam.
[ rosmake ] Waiting for other threads to complete.
[ rosmake ] Results:
[ rosmake ] Built 48 packages with 1 failures.
[ rosmake ] Summary output to directory
[ rosmake ] /home/hasitha/.ros/rosmake/rosmake_output-20131028-235835
Originally posted by Hasitha on ROS Answers with karma: 19 on 2013-10-28
Post score: 0
|
Hello,
When checking for collision in MoveIt! using CollisionResult, one can get the distance to the nearest collision. Is it possible to also have the normal vector along that distance? Basically, I'm trying to get as much collision information as possible before it happens, so direction in addition to proximity would be very useful.
Thanks,
JML
Originally posted by JML on ROS Answers with karma: 26 on 2013-10-28
Post score: 0
|
Operating System Details:
Ubuntu 12.04 LTS (Precise Pangolin) - ROS Hydro
The following command:
rosrun rviz rviz
Briefly displays the rviz logo, before repeating the following error 100 times:
[ WARN] [1383004708.902971662]: OGRE EXCEPTION(3:RenderingAPIException): Invalid parentWindowHandle (wrong server or screen) in GLXWindow::create at /build/buildd/ogre-1.7.4/RenderSystems/GL/src/GLX/OgreGLXWindow.cpp (line 229)
rviz::RenderSystem: error creating render window: std::exception
And then finally giving up with the following messages:
[ERROR] [1383004708.903200106]: Unable to create the rendering window after 100 tries.
rviz: /tmp/buildd/ros-hydro-rviz-1.10.9-0precise-20131021-0017/src/rviz/ogre_helpers/render_system.cpp:374: Ogre::RenderWindow* rviz::RenderSystem::makeRenderWindow(intptr_t, unsigned int, unsigned int): Assertion `false' failed.
Aborted (core dumped)
I've tried re-installing rviz, which didn't help. Also, I was having the same problem before moving from fuerte to hydro (though a long while back rviz was working fine with fuerte). I suspect it has been an update to rviz or ogre which has caused this problem, but I'm not really sure how to go about attempting to repair it..
Originally posted by Stephen Vidas on ROS Answers with karma: 131 on 2013-10-28
Post score: 2
Original comments
Comment by dgossow on 2013-10-29:
Try 'sudo apt-get install --reinstall nvidia-current'
Comment by Tim Murphy on 2014-04-08:
I have them same error and dgossow's suggestion didn't work. Any other ideas?
Comment by bwillaert on 2014-07-29:
Same problem here with 12.04 and Hydro and the following hardware:
01:00.0 3D controller: NVIDIA Corporation GK107M [GeForce GT 740M] (rev a1)
Subsystem: ASUSTeK Computer Inc. Device 1587
Kernel driver in use: nvidia
Kernel modules: nvidia_331_updates, nvidia_304_updates, nouveau, nvidiafb
|
I read that download_unpack_build.mk is now discouraged:
https://groups.google.com/forum/#!topic/ros-sig-buildsystem/e027agspX24
and it is now recommended to install them from source or using rosdep.
In the past (fuerte), we have used the tool a lot to download exotic libraries that are not released as ubuntu/debian packages, or don't have a Find*.cmake file, etc. Using the download_unpack_build.mk it was really easy to integrate them in our build system. Especially when we wanted to get a very specific version, and/or patch it to adapt to our needs.
Is there a similar solution in catkin?
I understand that it might cause issues on the build farms, but the packages we are working on are not going to be released.
Originally posted by brice rebsamen on ROS Answers with karma: 1001 on 2013-10-28
Post score: 1
|
Under what condition would the PID error vector be greater then the set point vector (command sent). This is happening to me using the gazebo ros plugin. Related question is there a way to turn off the PID process in the plugin to run some test.
Originally posted by rnunziata on ROS Answers with karma: 713 on 2013-10-28
Post score: 0
|
Hello all,
I have an application where I am using the turtlebot simulator with move_base for some navigation related tasks. So generally, if a goal is specified, I am assuming the nav stack comes up with a spline for a large set of points that when passed through, take the robot there. If I have my own (sufficiently large) set of waypoints; is there a way to avoid stopping at every waypoint and rather let the robot drive through them like a curve?
Thanks,
Sai
Originally posted by SaiHV on ROS Answers with karma: 275 on 2013-10-28
Post score: 2
|
Hi guys,
1)
How do you guys set your initial pose if the origin of map is [0.000, 0.000, 0.000] ?
Simply by estimation or there is a way to let us know the exact point we wanted?
2)
Inside this yaml file(map info) there is this resolution, how does the resolution affect as it changes?
Originally posted by FuerteNewbie on ROS Answers with karma: 123 on 2013-10-28
Post score: 0
|
Dear ROS users,
i tried to implement a C++ plugin (lets call it rqt_myplugin) following the tutorial rqt/Tutorials/Writing a C++ Plugin and the rqt_plugin ImageView. I am quite sure, that namespaces and classes are well defined in all necessary files. The problem is, that when i am trying to execute my plugin by running
rosrun rqt_myplugin rqt_myplugin
i get the message:
qt_gui_main() found no plugin matching "rqt_myplugin"
Rqt doesn't show the plugin neither.
Could you explain, how rqt is aware of my created plugin? I thought that it should be enough to source devel/setup.bash.
I am using ROS Hydro and Kubuntu 12.10 32Bit.
Originally posted by MZofka on ROS Answers with karma: 21 on 2013-10-28
Post score: 0
Original comments
Comment by Thomas on 2013-10-28:
Did you add your plugin to your ROS path? I.e. what does rospack find rqt_myplugin return? Did you edit the plugin.xml file properly and doe the name match what your put in rqt_myplugin? Please provide us your current plugin.xml file.
Comment by Thomas on 2013-10-29:
Your plugin.xml seems ok. How is called your plug-in? (I mean the .so file)
|
I've created my own .msg and can perform "rosmsg show MyMessage".
The question is how can I use it in my C++ code?
I've seen this link that is exactly the same question (http://answers.ros.org/question/31779/how-to-use-a-message-that-i-made/) however I don't really get it all. =(
Why is there a Header header in the .msg file? Is it "standard" to have in a msg?
Where Is the MyMessage.h file saved? How do I create It? I can only find the .msg file. Since I can't find it I cant Include it in the cpp file naturally.
It also states that I should add the line in the manifest. When I do this i get an error saying:
The manifest must not contain the following tags: depend
How can I solve this?
Many Thanks, Patrik
Originally posted by Mr Hillgren on ROS Answers with karma: 41 on 2013-10-28
Post score: 0
|
Hi,everyone.
I have a Poineer-3DX robot, the onboard computer system now is Windows 2000. I can connect the robot with my laptop(already installed with ROS hydro and Ubuntu 12.04) through a serial line。
My first question is: whether I should install ROS on the onboard computer? If I have to, how to install? The instruction of the installation is not clear.
My second question is :When I send the command
rostopic pub -1 /RosAria/cmd_vel geometry_msgs/Twist '{linear: {x: 0.1, y: 0.0, z: 0.0}, angular: {x: 0.0, y: 0.0, z: 0.0}}'
to the real robot, it can move, but very slowly even I change the linear x velocity to a bigger value, what's the problem? However, if I run the command to the simulator, the change of the velocity works.
Thank you guys.
Originally posted by hangzhang on ROS Answers with karma: 88 on 2013-10-28
Post score: 0
Original comments
Comment by autonomy on 2013-10-30:
This is just a guess (from working with p2os), but the robot may move slowly because somewhere in the params the max velocity value is set to a very small number. Sometimes, with ROS nodes, parameters are not documented well. See if you can find it in the source or if there is one set by the sim.
|
Hello,
I'm trying to properly use Hector slam in simulation using a turtlebot. I'm using ROS hydro and Gazebo 1.9 on ubuntu 12.04. Once I spawned in Gazebo the turtlebot and the world I created, I use this launch file to start hector slam:
<launch>
<param name="/use_sim_time" value="true"/>
<node pkg="rviz" type="rviz" name="rviz"
args="-d $(find hector_slam_launch)/rviz_cfg/mapping_demo.rviz"/>
<include file="$(find hector_mapping)/launch/mapping_default.launch">
<arg name="odom_frame" value="odom"/>
</include>
<arg name="trajectory_source_frame_name" value="scanmatcher_frame"/>
<arg name="trajectory_update_rate" default="4"/>
<arg name="trajectory_publish_rate" default="0.25"/>
<node pkg="hector_trajectory_server" type="hector_trajectory_server" name="hector_trajectory_server" output="screen">
<param name="target_frame_name" type="string" value="map" />
<param name="source_frame_name" type="string" value="$(arg trajectory_source_frame_name)" />
<param name="trajectory_update_rate" type="double" value="$(arg trajectory_update_rate)" />
<param name="trajectory_publish_rate" type="double" value="$(arg trajectory_publish_rate)" />
</node>
<node pkg="hector_geotiff" type="geotiff_node" name="hector_geotiff_node" output="screen" launch-prefix="nice -n 15">
<remap from="map" to="/dynamic_map" />
<param name="map_file_path" type="string" value="$(find hector_geotiff)/maps" />
<param name="map_file_base_name" type="string" value="hector_slam_map" />
<param name="geotiff_save_period" type="double" value="0" />
<param name="draw_background_checkerboard" type="bool" value="true" />
<param name="draw_free_space_grid" type="bool" value="true" />
</node>
</launch>
The slam seems to work when I navigate the robot around, but I'm very surprised by the bad result compared to gmapping. It get lost very easily and the map is very bad. I would like to know if I set up something in the wrong way, or if it depends from the fact that I'm using a fake laser from kinect or maybe that the world in gazebo I created is challenging for hector slam.
EDIT:
If I move the robot only forward/backward the map is correctly reconstructed, but if I make the robot rotate on itself it prints 'SearchDir angle change too large' and it gets totally lost (sometimes it makes position jumps up to 1 meter and more!!).
This is the world I'm using in gazebo:
Many thanks!!
Originally posted by Tirjen on ROS Answers with karma: 808 on 2013-10-29
Post score: 0
|
Hello,
I'm trying to adapt the Euclidean Cluster Extraction tutorial from PCL to work with ROS.
I can get the tutorial working as it should, my question is with handling the detected clusters.
My idea was to publish each cluster in a different topic so I can look at them separately in rviz. My question is how can I do that?
Currently I'm creating one publisher as a global variable, and using nodehandle.advertise<sensor_msgs::PointCloud2>() in main() to create a topic and publish on it. This means that I can only publish only one pointcloud through this.
Is it possible to create a number of publishers, unknown at compile time, since I don't know how many objects will be detected, that each publish on a different topic?
How else would you recommend I use/view the vector of PointClouds that get created by the cluster extraction? The tutorial extracts them to files, but I would rather view them in rviz somehow.
Originally posted by Barbas on ROS Answers with karma: 55 on 2013-10-29
Post score: 4
|
I've tried to use my own .msg to send between nodes but I'm having some trouble. I got an answer on It before http://answers.ros.org/question/95406/how-can-i-use-my-own-msg/ but I don not get It to work properly.
The package .xml looks like this:
<?xml version="1.0"?>
<package>
<name>distanceCalc</name>
<version>0.0.0</version>
<description>The distanceCalc package</description>
<maintainer email="[email protected]">patrik</maintainer>
<license>TODO</license>
<build_depend>message_generation</build_depend>
<run_depend>message_runtime</run_depend>
<buildtool_depend>catkin</buildtool_depend>
<build_depend>cv_bridge</build_depend>
<build_depend>pcl</build_depend>
<build_depend>pcl_ros</build_depend>
<build_depend>roscpp</build_depend>
<build_depend>sensor_msgs</build_depend>
<build_depend>std_msgs</build_depend>
<build_depend>std_msgs</build_depend>
<build_depend>stereo_msgs</build_depend>
<build_depend>message_generation</build_depend>
<run_depend>message_generation</run_depend>
<build_depend>msg/distanceMessage</build_depend>
<run_depend>msg/distanceMessage</run_depend>
<run_depend>cv_bridge</run_depend>
<run_depend>pcl</run_depend>
<run_depend>pcl_ros</run_depend>
<run_depend>roscpp</run_depend>
<run_depend>sensor_msgs</run_depend>
<run_depend>std_msgs</run_depend>
<run_depend>std_msgs</run_depend>
<run_depend>stereo_msgs</run_depend>
<export>
</export>
</package>
The CmakeList.txt looks like this:
cmake_minimum_required(VERSION 2.8.3)
project(distanceCalc)
find_package(catkin REQUIRED COMPONENTS
cv_bridge
pcl
pcl_ros
roscpp
sensor_msgs
std_msgs
stereo_msgs
message_generation
)
add_message_files(FILES distanceMessage.msg)
generate_messages(DEPENDENCIES std_msgs)
include_directories(
${catkin_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
${PCL_INCLUDE_DIRS}
)
add_executable(distanceCalc src/distanceCalculation.cpp)
target_link_libraries(distanceCalc ${catkin_LIBRARIES} ${OpenCV_LIBRARIES} ${PCL_INCLUDE_DIRS})
add_dependencies(distanceCalc distanceCalc_gen_msg_cpp)
In my case I have projects within my src folder in the catkin_ws, one of them is named distanceCalc and have a folder named msg where the message distanceMessage.msg is placed.
Is there some mistake that I'm making, because when I try to inclide the message with
the line
#include <msg/distanceMessage>
in my cpp file which exists in the src folder in the project distanceCalc I get an error (when trying to perform the catkin_make command) saying
"fatal error: msg/distanceMessage: No such file or directory"?
If this is not enough information to answer the questions please inform me and I will update.
Regards, Patrik
Originally posted by Mr Hillgren on ROS Answers with karma: 41 on 2013-10-29
Post score: 2
|
Catkin puts the headers from my custom messages from package1 in
~/ros_ws/devel/include/<package1>/
I want to use them when compiling package2. I am assuming that the CMakeLists.txt for package2 needs a line like
include_directories(
${<WORSPACE_ROOT>}/devel/include
${catkin_INCLUDE_DIRS}
)
but I don't know the correct variable is for the workspace root, ie ~/ros_ws.
The other question is: is there a better way of doing than than manually specifying the top-level include dir?
Here are the CMakeLists.txt files:
ardrone_autonomy (project1) :
cmake_minimum_required(VERSION 2.8.3)
project(ardrone_autonomy)
find_package( catkin REQUIRED COMPONENTS roscpp rospy std_msgs image_transport sensor_msgs std_srvs tf camera_info_manager message_generation )
#uncomment if you have defined messages or services
add_message_files( FILES
matrix33.msg
navdata_adc_data_frame.msg
navdata_altitude.msg
navdata_demo.msg
navdata_euler_angles.msg
navdata_games.msg
navdata_gyros_offsets.msg
navdata_hdvideo_stream.msg
navdata_kalman_pressure.msg
navdata_magneto.msg
Navdata.msg
navdata_phys_measures.msg
navdata_pressure_raw.msg
navdata_pwm.msg
navdata_raw_measures.msg
navdata_rc_references.msg
navdata_references.msg
navdata_time.msg
navdata_trackers_send.msg
navdata_trims.msg
navdata_video_stream.msg
navdata_vision_detect.msg
navdata_vision.msg
navdata_vision_of.msg
navdata_vision_perf.msg
navdata_vision_raw.msg
navdata_watchdog.msg
navdata_wifi.msg
navdata_wind_speed.msg
navdata_zimmu_3000.msg
vector21.msg
vector31.msg
)
add_service_files(
FILES
CamSelect.srv
FlightAnim.srv
LedAnim.srv
)
generate_messages(
DEPENDENCIES
std_msgs
sensor_msgs
)
catkin_package(
INCLUDE_DIRS include devel/include
LIBRARIES ${PROJECT_NAME}
CATKIN_DEPENDS roscpp std_msgs message_runtime
DEPENDS libsdl-dev
# DEPENDS system_lib
)
#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)
find_package(Boost REQUIRED COMPONENTS)
set(SDK ARDroneLib/)
link_directories(${PROJECT_SOURCE_DIR}/lib/)
include_directories(${SDK} ${SDK}/FFMPEG/Includes ${SDK}/Soft/Common ${SDK}/Soft/Lib ${SDK}/VP_SDK ${SDK}/VP_SDK/VP_Os/linux )
add_executable(ardrone_driver src/ardrone_driver.cpp src/video.cpp src/ardrone_sdk.cpp src/teleop_twist.cpp)
target_link_libraries(ardrone_driver ${catkin_LIBRARIES} pc_ardrone avcodec avutil swscale vlib sdk SDL )
mrl_ardrone (project2) :
cmake_minimum_required(VERSION 2.8.3)
project(mrl_ardrone)
find_package(catkin REQUIRED COMPONENTS roscpp std_msgs cv_bridge ardrone_autonomy )
catkin_package(
INCLUDE_DIRS include
LIBRARIES mrl_ardrone
CATKIN_DEPENDS roscpp std_msgs cv_bridge ardrone_autonomy
# DEPENDS system_lib
)
###########
## Build ##
###########
## Specify additional locations of header files
## Your package locations should be listed before other locations
# include_directories(include)
include_directories(
# This is super sketchy, there must be an automated way to do this
/home/mike/ros_ws/devel/include/
${ROS_ROOT}
${catkin_INCLUDE_DIRS}
)
## Declare a cpp executable
add_executable( tracker src/tracker/trackerMain.cpp src/tracker/tracker.cpp src/tracker/drone_controller.cpp src/tracker/PID.cpp )
# make sure configure headers are built before any node using them
add_dependencies(tracker ardrone_autonomy)
add_executable( testMain src/tracker/testMain.cpp src/tracker/drone_controller.cpp src/tracker/PID.cpp )
add_dependencies( testMain ardrone_autonomy )
## Specify libraries to link a library or executable target against
find_package(OpenCV)
include_directories(${OpenCV_INCLUDE_DIRS})
find_package(cv_bridge)
include_directories(${cv_bridge_INCLUDE_DIRS})
target_link_libraries( tracker
${catkin_LIBRARIES}
${cv_bridge_INCLUDE_DIRS}
)
target_link_libraries( testMain
${catkin_LIBRARIES}
${cv_bridge_INCLUDE_DIRS}
)
When I run
~/ros_ws $ catkin_make
I get:
Project 'mrl_ardrone' tried to find library 'ardrone_autonomy'. The
library is neither a target nor built/installed properly. Did you compile
project 'ardrone_autonomy'? Did you find_package() it before the
subdirectory containing its code is included?
which suggests to me that my problem is not with the include directory itself, but something more general with CMake not being able to find stuff. But I have no idea.
Originally posted by ounsworth on ROS Answers with karma: 37 on 2013-10-29
Post score: 2
|
Hello dear Community!
Could someone help me with the problem I'm experiencing with Interactive Moveit! markers in rviz with my simple test robot arm.
Please review the link www.youtube.com/watch?v=M1c8A-DfghA and tell me please why I can't change the Goal State with the Interactive Marker? And as you would see from video I can do this through the Planning Tab, setting the random Goal State. What should I do to force Interactive Marker to change the Goal State?
Please help me with this stopper.
Please feel free to ask from me (I do really want find the problem) all that is necessary to help to resolve this problem. I have successfully used pr2_moveit_config tutorial, and Interactive Markers for move groups (like right_arm) out there works fine.
Thanks, Alexey!
Originally posted by maska on ROS Answers with karma: 61 on 2013-10-29
Post score: 1
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.