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

AlphaSierra's profile - activity

2019-10-15 02:13:53 -0500 marked best answer Raspberry Pi TurtleSim Build Error

Hello everyone, I just got a raspberry pi and started following the debian build instructions with the raspberry pi changes listed on the wiki. (I can't link them as this is my first post) When I go to make the code I get the following error message:

[ 61%] Built target mimic
[ 61%] Built target turtle_teleop_key
[ 61%] Built target turtlesim_genlisp
[ 62%] Built target turtlesim_genpy
[ 64%] Building CXX object ros_tutorials/turtlesim/CMakeFiles/turtlesim_node.dir/src/turtle.cpp.o
/home/pi/ros-underlay/ros_tutorials/turtlesim/src/turtle.cpp: In member function âbool turtlesim::Turtle::update(double, QPainter&, const QImage&, qreal, qreal)â:
/home/pi/ros-underlay/ros_tutorials/turtlesim/src/turtle.cpp:132:58: error: no matching function for call to âmax(double, qreal)â
/home/pi/ros-underlay/ros_tutorials/turtlesim/src/turtle.cpp:132:58: note: candidates are:
/usr/include/c++/4.6/bits/stl_algobase.h:210:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
/usr/include/c++/4.6/bits/stl_algobase.h:254:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
/home/pi/ros-underlay/ros_tutorials/turtlesim/src/turtle.cpp:162:44: error: no matching function for call to âmax(qreal, double)â
/home/pi/ros-underlay/ros_tutorials/turtlesim/src/turtle.cpp:162:44: note: candidates are:
/usr/include/c++/4.6/bits/stl_algobase.h:210:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
/usr/include/c++/4.6/bits/stl_algobase.h:254:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
/home/pi/ros-underlay/ros_tutorials/turtlesim/src/turtle.cpp:163:44: error: no matching function for call to âmax(qreal, double)â
/home/pi/ros-underlay/ros_tutorials/turtlesim/src/turtle.cpp:163:44: note: candidates are:
/usr/include/c++/4.6/bits/stl_algobase.h:210:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
/usr/include/c++/4.6/bits/stl_algobase.h:254:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
make[2]: *** [ros_tutorials/turtlesim/CMakeFiles/turtlesim_node.dir/src/turtle.cpp.o] Error 1
make[1]: *** [ros_tutorials/turtlesim/CMakeFiles/turtlesim_node.dir/all] Error 2
make: *** [all] Error 2

I've searched around, and haven't been able to find a working solution for this problem. Does anyone know what's going on?

Thanks!

2017-03-08 15:06:45 -0500 received badge  Famous Question (source)
2016-10-07 14:13:32 -0500 received badge  Notable Question (source)
2016-09-22 10:23:54 -0500 received badge  Self-Learner (source)
2016-07-28 16:32:35 -0500 received badge  Popular Question (source)
2016-07-27 19:15:50 -0500 commented answer ROS Serial Exception Missing File

That was it, I dug around more and found that the path hadn't been updated.

Thanks!

2016-07-27 18:31:00 -0500 asked a question ROS Serial Exception Missing File

Hello all,

I have a node running in ROS Indigo which makes use of the serial library. I've used it on other machines in the past without any issues. My current system is an ODroid XU4.

When I go to run the node however I get the following error:

odroid@odroid:~/Control_Code$ rosrun imu imu_node 
[ INFO] [1469661666.648402551]: running...
terminate called after throwing an instance of 'serial::IOException'
  what():  IO Exception (2): No such file or directory, file /tmp/binarydeb/ros-indigo-serial-1.2.1/src/impl/unix.cc, line 151.
Aborted

Looking in synaptic I have

ros-indigo-serial
ros-indigo-serial-utils

With the following includes: #include "ros/ros.h"

#include "serial/serial.h"

#include "ros/time.h"

#include "std_msgs/String.h"

#include <string>

#include <iostream>

#include <vector>

#include <ios>

#include <stdint.h>

I have no idea where this error is coming from. Has anyone seen this before? What other troubleshooting steps can I take?

Thanks!

2016-01-25 10:02:18 -0500 received badge  Good Question (source)
2014-09-27 03:29:40 -0500 received badge  Nice Answer (source)
2014-04-04 15:27:21 -0500 received badge  Famous Question (source)
2014-03-18 14:53:42 -0500 received badge  Teacher (source)
2014-03-18 11:30:05 -0500 answered a question Autostart ROS

I hear this library is somewhat handy for automatically starting up ROS: http://wiki.ros.org/robot_upstart

2014-03-17 20:15:17 -0500 commented answer Node Latency Questions

That sounds pretty reasonable. If I may ask what sort of computing work was being done? For my application there's going to be a bunch of data aggregation, and navigation. Also, in your experience sort of latency I can expect locally between nodes?

2014-03-17 10:16:12 -0500 received badge  Notable Question (source)
2014-03-16 16:25:18 -0500 commented answer Node Latency Questions

Thanks for the info. Is there anywhere where I can get more technical documentation on the format that is used?

2014-03-16 16:10:54 -0500 received badge  Popular Question (source)
2014-03-16 16:08:35 -0500 commented answer Node Latency Questions

Was it a gigabit network? That's what I'm aiming to have on the vehicle I'm working on.

2014-03-16 12:19:12 -0500 asked a question Node Latency Questions

Hello everyone. I'm trying to understand the different latency issues that occur when using topics to stream data between nodes.

The default method is using TCPROS, which from how it was explained to me converts the data into XML data before it gets transmitted, and then has to be parsed back by the receiving nodes. Even if they're on the same processor. I'm going to conduct some of my own experiments to determine the latency, but since my setup is in a VM it might skew the results. So I'm wondering how bad the latency using this method is.

From some further reading it looks like UDPROS is faster at transmitting the data. I don't really understand why though. While looking around trying to learn more I also came across the ETHAZSL library

If I want to eliminate this issue altogether I could just make everything exist as nodelets under a single node, as they then just share memory. However there are some nodes that will need to exist in fully separate nodes (possibly over a network).

So in summary I'd like to understand how each of these methods works on the backend, and what some good approaches are to reducing latency in the system. How bad is the latency using TCPIP vs UDP?

Thanks!

2014-02-19 01:37:28 -0500 received badge  Nice Question (source)
2014-02-11 22:15:52 -0500 received badge  Famous Question (source)
2014-01-28 17:31:28 -0500 marked best answer Eclipse project creation error

I just got eclipse kepler installed and it seems to work fine. However I went to create an eclipse project for a package and got this error:

rosbox@rosbox-VirtualBox:~/catkin_ws/src/beginner_tutorials$ make eclipse-project

`make: *** No rule to make target `eclipse-project'.  Stop.

I'm using ROS groovy on ubuntu 12.04. I tried looking around this thread: http://answers.ros.org/question/11367/problem-integrating-ros-with-eclipse-indigo/ but I didn't really find anything that worked. They were talking about the cmake files in one of the comments but I didn't quite follow what they were talking about.

Thanks!

2014-01-28 17:31:04 -0500 marked best answer Raspberry Pi Desktop Build Error QT

I'm building the full desktop version of ROS on a raspberry pi following these instructions: http://www.ros.org/wiki/groovy/Installation/Raspbian/Source

Currently I am at step 6

I'm not sure what is causing the error, here is the build log:

[ 84%] Running SIP generator for qt_gui_cpp_sip Python bindings...
roovy/share/python_qt_binding/cmake/shiboken_helper.cmake:11 (find_package):
  By not providing "FindGeneratorRunner.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "GeneratorRunner", but CMake did not find one.

  Could not find a package configuration file provided by "GeneratorRunner"
  with any of the following names:

    GeneratorRunnerConfig.cmake
    generatorrunner-config.cmake

  Add the installation prefix of "GeneratorRunner" to CMAKE_PREFIX_PATH or
  set "GeneratorRunner_DIR" to a directory containing one of the above files.
  If "GeneratorRunner" provides a separate development package or SDK, be
  sure it has been installed.
Call Stack (most recent call first):
  src/qt_gui_cpp_shiboken/CMakeLists.txt:41 (include)


CMake Warning at /opt/ros/groovy/share/python_qt_binding/cmake/shiboken_helper.cmake:18 (message):
  Shiboken binding generator NOT available.
Call Stack (most recent call first):
  src/qt_gui_cpp_shiboken/CMakeLists.txt:41 (include)


-- SIP binding generator available.
-- Python binding generators: sip
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/ros/groovy/ros_catkin_ws/build_isolated/qt_gui_cpp
==> make -j1 -l1 in '/opt/ros/groovy/ros_catkin_ws/build_isolated/qt_gui_cpp'
<== Failed to process package 'qt_gui_cpp': 
  Command '/opt/ros/groovy/env.sh make -j1 -l1' returned non-zero exit status 2

Reproduce this error by running:
==> /opt/ros/groovy/env.sh make -j1 -l1

I did manage to find one thread on this, but it was left unanswered. Does anyone recognize the error, and know how to fix it? Thanks!

UPDATE:

I managed to get a slightly different error after I ran

sudo apt-get install qt-sdk

This is what I got:

[ 84%] Running SIP generator for qt_gui_cpp_sip Python bindings...
sh: 1: /usr/bin/sip: not found
Error: Unable to open
"/opt/ros/groovy/ros_catkin_ws/build_isolated/qt_gui_cpp/sip/qt_gui_cpp_sip/pyqtscripting.sbf"
make[2]: *** [sip/qt_gui_cpp_sip/Makefile] Error 1
make[1]: *** [src/qt_gui_cpp_sip/CMakeFiles/libqt_gui_cpp_sip.dir/all] Error 2
make: *** [all] Error 2
Traceback (most recent call last):
  File "./src/catkin/bin/../python/catkin/builder.py", line 717, in build_workspace_isolated
    number=index + 1, of=len(ordered_packages)
  File "./src/catkin/bin/../python/catkin/builder.py", line 497, in build_package
    install, force_cmake, quiet, last_env, cmake_args, make_args + catkin_make_args
  File "./src/catkin/bin/../python/catkin/builder.py", line 353, in build_catkin_package
    run_command(make_cmd, build_dir, quiet)
  File "./src/catkin/bin/../python/catkin/builder.py", line 198, in run_command
    raise subprocess.CalledProcessError(proc.returncode, ' '.join(cmd))
CalledProcessError: Command '/opt/ros/groovy/env.sh make -j1 -l1' returned non-zero exit status 2
<== Failed to process package 'qt_gui_cpp':
  Command '/opt/ros/groovy/env.sh make -j1 -l1' returned non-zero exit status 2

Reproduce this error by running:
==> /opt/ros/groovy/env.sh make -j1 -l1

Command failed, exiting.
2014-01-28 17:30:48 -0500 marked best answer Unable to download packages on Raspberry Pi

I'm going through the tutorials and am unable to download the fuerte version of rqt to continue. Apparently the packages aren't showing up in the list. I initially installed ROS following these instructions:

www.ros.org/wiki/ROSberryPi/Setting%20up%20ROS%20on%20RaspberryPi

While going through the tutorial I went to install the applications like so:

pi@raspberrypi ~/scripts $ sudo apt-get install ros-fuerte-qt-gui-core ros-fuerte-rqt
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package ros-fuerte-qt-gui-core
E: Unable to locate package ros-fuerte-rqt

Are there any specific sources I need to have enabled to get these packages? Currently I just have the four defaults (I don't have enough karma yet to post the actual source urls, hopefully these are sufficient):

mirrordirector.raspbian.org
us.debian.org
packages.ros.org/ubuntu precise
archive.raspberrypi.org/debian wheezy

Thus far I haven't been able to locate the packages. I tried pulling the packages for a full fuerte desktop install into a VM, and that gave me all sorts of dependency issues. So I figure the ubuntu repos are out for this case.

Does anyone know how I can get this tool? Thanks!

2013-10-17 17:01:19 -0500 received badge  Popular Question (source)
2013-10-17 17:01:19 -0500 received badge  Notable Question (source)
2013-10-15 08:51:32 -0500 received badge  Taxonomist
2013-09-23 04:03:42 -0500 marked best answer Eclipse not resolving anything

I recently got eclipse setup and loaded the catkin project into it. However it seems incapable of resolving anything in the project. Not even standard math functions like atan or sqrt. I am running eclipse from the terminal.

I tried making a simple C program to make sure that nothing was wrong with the compiler in general, and it worked fine.

I've tried rebuilding the project with these options:

catkin_make --force-cmake -G"Eclipse CDT4 - Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_ECLIPSE_MAKE_ARGUMENTS=-j8

I also tried rebuilding the index, as well as adding in the usual default C paths as outlined in this thread: http://answers.ros.org/question/68074/eclipse-and-catkin-problems-symbol-could-not-be-resolved/

Beyond this I don't know what else could be wrong. I had eclipse run a search and apparently all of the includes are unresolved in the project. Even cmath isn't being found.

The include paths that exist in the project are:

#ROS_BUID_SHARED_LIBS=1
#ROS_PACKAGE_NAME="rov1_control"
/usr/src/gtest/include
/usr/src/gtest
/home/rosbox/catkin_ws/rov1_control/include
/opt/ros/groovy/include
/usr/include
/usr/include
/home/rosbox/catkin_ws/devel/include
/home/rosbox/catkin_ws/src/beginner_tutorials/include
/home/rosbox/catkin_ws/src/learning_tf/include

I did notice that when I first imported the project that it didn't bring in any other environment variables. I had to manually add ROS_ROOT, ROS_PACKAGE_PATH, PYTHONPATH, and PATH. I have my .bashrc set to source setup.sh, and noticed this continued even after I manually resourced the session.

The environment variables that I see under the C/C++ Make Project menu are:

CMAKE_NO_VERBOSE
VERBOSE

I'm not sure what else to try to solve this. Has anyone encountered this before? Thanks!

EDIT: Just another observation to add. When I initially load eclipse it seems to be happy with the C++ math functions like atan2, but as soon as I go to edit anything it seems to lose those references.

EDIT 2: Solution found!

The default includes were insufficient, so I started manually adding in includes from a working C++ hello world project until it stopped giving me errors. My includes list is as follows:

/home/rosbox/catkin_ws/devel/include
/opt/ros/groovy/include
/usr/include
/usr/include/c++/4.6
/usr/include/c++/4.6/backward
/usr/include/c++/4.6/i686-linux-gnu/
/usr/include/c++/4.6/i686-linux-gnu/bits/c++config.h
/usr/include/i386-linux-gnu/
/usr/lib/gcc/i686-linux-gnu/4.6/include
/usr/lib/gcc/i686-linux-gnu/4.6/include-fixed
/usr/local/include

Followed by the various project directories.

2013-08-27 15:26:01 -0500 commented question rviz segfault OpenGL Warning

That may not work for me. I have my VM setup to use the internal network mode so I can run the IDE and whatnot through PuTTy and XMing. From what I recall using VMWare player it only lets you do NAT networking.