Ask Your Question

M@t's profile - activity

2019-10-23 02:43:01 -0500 commented answer Custom Global Path

Kind of. I managed to get a custom global planner working by following that tutorial. I didn't try the move_base_flex pa

2019-10-08 02:36:25 -0500 marked best answer How do you implement a rospy KeyboardInterrupt without killing the node?

I want to run a process in a while loop that prints to screen, and exit the while loop by pressing a key or 'Ctrl+C'. But I don't want the same key press to also kill the ros node - I just want to exit the loop. In python you can use KeyboardInterrupt like so:

import time     

while True:
    try:
        print 'Help! Im stuck in a while loop! Press Ctrl+C to save me!'
        time.sleep(0.5)
    except KeyboardInterrupt:
        break

do_other_stuff()

But this doesn't work in a ROS node, and I assume it's because rospy handles the 'Ctrl+C' command in a slightly different way (but please correct me if I'm wrong).

I've tried the ROS equivalent, which replaces KeyboardInterrupt with rospy.ROSInterruptException but this doesn't work either - ROS simply never acknowledges the 'Ctrl+C' command. I've also tried checking for rospy.is_shutdown() in the while loop, as per this question. But this kills the node outright, so I can't continue running other functions or run the while loop again.

Does anyone have a way of achieving this? Or does one of my methods work but I've got the syntax wrong?

2019-08-14 00:20:48 -0500 received badge  Good Answer (source)
2019-07-05 06:44:46 -0500 marked best answer pointgrey_camera_driver fails to compile

I'm trying to follow the navigation tutorials for the Clearpath Jackal here:

http://www.clearpathrobotics.com/asse...

However after installing everything from github in the jackal_navigation/src/ directory, it fails at the 'catkin make' stage and gives me this error:

-- +++ processing catkin package: 'pointgrey_camera_driver'
-- ==> add_subdirectory(pointgrey_camera_driver/pointgrey_camera_driver)
-- libflycapture not found in system library path
INFO:root:Logging into ptgrey.com.
INFO:root:Downloading SDK archive.
INFO:root:Unpacking tarball.
Traceback (most recent call last):
  File "/home/user/autosys_repo1/jackal_navigation/src/pointgrey_camera_driver/pointgrey_camera_driver/cmake/download_flycap", line 81, in <module>
    with tarfile.open(mode="r:gz", fileobj=cStringIO.StringIO(resp.read())) as tar:
  File "/usr/lib/python2.7/tarfile.py", line 1678, in open
    return func(name, filemode, fileobj, **kwargs)
  File "/usr/lib/python2.7/tarfile.py", line 1730, in gzopen
    raise ReadError("not a gzip file")
tarfile.ReadError: not a gzip file
-- libflycapture library: /home/user/autosys_repo1/jackal_navigation/devel/lib/libflycapture.so.2
-- libflycapture include: /home/user/autosys_repo1/jackal_navigation/build/pointgrey_camera_driver/pointgrey_camera_driver/usr/include
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/autosys_repo1/jackal_navigation/build

which is later followed by:

Scanning dependencies of target PointGreyCamera
make[2]: *** No rule to make target `/home/user/autosys_repo1/jackal_navigation/devel/lib/libflycapture.so.2', needed by `/home/user/autosys_repo1/jackal_navigation/devel/lib/libPointGreyCamera.so'.  Stop.
make[2]: *** Waiting for unfinished jobs....
[ 73%] Building CXX object pointgrey_camera_driver/pointgrey_camera_driver/CMakeFiles/PointGreyCamera.dir/src/PointGreyCamera.cpp.o
In file included from /home/user/autosys_repo1/jackal_navigation/src/pointgrey_camera_driver/pointgrey_camera_driver/src/PointGreyCamera.cpp:32:0:
/home/user/autosys_repo1/jackal_navigation/src/pointgrey_camera_driver/pointgrey_camera_driver/include/pointgrey_camera_driver/PointGreyCamera.h:46:36: fatal error: flycapture/FlyCapture2.h: No such file or directory
#include "flycapture/FlyCapture2.h"
                                ^
compilation terminated.

and:

Scanning dependencies of target image_exposure_msgs_generate_messages
[ 89%] Built target image_exposure_msgs_generate_messages
make[2]: *** [pointgrey_camera_driver/pointgrey_camera_driver/CMakeFiles/PointGreyCamera.dir/src/PointGreyCamera.cpp.o] Error 1
make[1]: *** [pointgrey_camera_driver/pointgrey_camera_driver/CMakeFiles/PointGreyCamera.dir/all] Error 2
make: *** [all] Error 2
Invoking "make -j2 -l2" failed

At this point the compilation fails completely and kicks me back to the command prompt "user@system:"

I'm currently using a VM running Ubuntu 14.04 LTS with ROS Indigo. This worked perfectly fine a few week ago, and I get the exact same error on a fresh VM install of Ubuntu/ROS so I assume this indicates a problem with the flycapture libraries, downloading them from the website or otherwise the library isn't present in the main ROS library (which it isn't but that didn't appear to be an issue previously). But I'm not sure if its a bug or something I've done wrong.

Does anyone else experience the same problem working through the same tutorial? And does anyone know how this might be solved?

2019-07-05 06:44:46 -0500 received badge  Nice Answer (source)
2019-06-30 00:52:59 -0500 commented answer frame passed to lookupTransform does not exist

Also worth noting, it seems that sometimes if you call lookupTransform too quickly after init_node you will get the erro

2019-06-30 00:44:16 -0500 commented answer frame passed to lookupTransform does not exist

Also worth noting: listener = tf.TransformListener() must be called from within the SAME FUNCTION as init_node. If you c

2019-06-30 00:43:51 -0500 commented answer frame passed to lookupTransform does not exist

Also worth noting: listener = tf.TransformListener() must be called from within the SAME FUNCTION as init_node. If you c

2019-06-30 00:38:16 -0500 commented answer frame passed to lookupTransform does not exist

Also worth noting: listener = tf.TransformListener() must be called from within the SAME FUNCTION as init_node. If you c

2019-06-30 00:38:01 -0500 commented answer frame passed to lookupTransform does not exist

Also worth noting: listener = tf.TransformListener() must be called from with the SAME FUNCTION as init_node. If you cal

2019-06-21 01:45:23 -0500 received badge  Guru (source)
2019-06-21 01:45:23 -0500 received badge  Great Answer (source)
2019-06-20 18:20:44 -0500 commented question Clearpath Jackal - launch error: unable to open port

I would highly recommend contacting Clearpath support directly for any issues like this. Clearpath have been very helpfu

2019-06-20 18:15:05 -0500 edited answer Can robot_localization package be used on a full NED system?

Actually, robot_localization expects all IMU data to be in the ENU format, as stated on this documentation page under th

2019-06-20 18:14:41 -0500 edited answer Can robot_localization package be used on a full NED system?

Actually, robot_localization expects all IMU data to be in the ENU format, as stated on this documentation page under th

2019-06-20 18:13:24 -0500 received badge  Rapid Responder (source)
2019-06-20 18:13:24 -0500 answered a question Can robot_localization package be used on a full NED system?

Actually, robot_localization expects all IMU data to be in the ENU format, as stated on this documentation page under th

2019-06-20 09:07:53 -0500 received badge  Famous Question (source)
2019-06-20 09:07:53 -0500 received badge  Notable Question (source)
2019-06-16 16:20:24 -0500 commented answer How to call a global planner from within a custom planner?

This is the kind of answer I was looking for! So my suspicion that it's not as simple as constructing and calling anothe

2019-06-16 16:17:12 -0500 commented question How to compile a non-native Navigation Stack with your workspace?

Thanks for the thorough answer @gvdhoorn! Seems that I don't understand CMake as well as I thought I did, so I'd better

2019-06-16 16:14:21 -0500 received badge  Popular Question (source)
2019-06-16 06:02:46 -0500 received badge  Nice Answer (source)
2019-06-12 02:57:38 -0500 received badge  Famous Question (source)
2019-06-11 18:26:30 -0500 edited question How to compile a non-native Navigation Stack with your workspace?

How to compile a non-native Navigation Stack with your workspace? Problem (TL;DR) I am running ROS Indigo on Ubuntu 14.

2019-06-11 18:12:42 -0500 commented question How to compile a non-native Navigation Stack with your workspace?

PCL 1.8 is really important for a few other packages I use, and this is likely to be the only one where I will use the n

2019-06-11 18:02:13 -0500 edited question How to compile a non-native Navigation Stack with your workspace?

How to compile a non-native Navigation Stack with your workspace? Problem (TL;DR) I am running ROS Indigo on Ubuntu 14.

2019-06-11 17:54:38 -0500 edited answer How can I list the dependencies of a package

An alternative to rospack depends is rqt_dep which visualizes the connections like so: The documentation for rqt_dep

2019-06-11 17:54:32 -0500 edited answer How can I list the dependencies of a package

An alternative to rospack depends is rqt_dep which visualizes the connections like so: The documentation for rqt_dep

2019-06-11 17:48:05 -0500 edited question How to compile a non-native Navigation Stack with your workspace?

How to compile a non-native Navigation Stack with your workspace? Problem (TL;DR) I am running ROS Indigo on Ubuntu 14.

2019-06-11 17:42:19 -0500 edited question How to compile a non-native Navigation Stack with your workspace?

How to compile a non-native Navigation Stack with your workspace? Problem (TL;DR) I am running ROS Indigo on Ubuntu 14.

2019-06-11 16:11:48 -0500 received badge  Notable Question (source)
2019-06-11 04:30:49 -0500 received badge  Nice Answer (source)
2019-06-11 04:15:56 -0500 commented question How to compile a non-native Navigation Stack with your workspace?

Thanks for the great suggestions @gvdhoorn! No I don't need PCL 1.8 for this planner, only for a different package entir

2019-06-11 04:10:17 -0500 commented question How to call a global planner from within a custom planner?

Sorry, forgot to add the link to the separate question - which you've already found. I've edited this question to redire

2019-06-11 04:04:38 -0500 commented answer rqt_graph not showing all active nodes

Possibly yes - click the circular blue arrow in the top-left corner to reload the graph. If that doesn't work, add a sc

2019-06-11 03:04:56 -0500 received badge  Popular Question (source)
2019-06-10 23:37:07 -0500 received badge  Necromancer (source)
2019-06-10 23:00:08 -0500 received badge  Rapid Responder (source)
2019-06-10 23:00:08 -0500 answered a question rqt_graph not showing all active nodes

What you are seeing is the ROS nodes. They are shown in bubbles whereas the ROS topics are shown in rectangles. If you w

2019-06-10 22:50:14 -0500 edited question How to compile a non-native Navigation Stack with your workspace?

How to compile a non-native Navigation Stack with your workspace? Problem (TL;DR) I am running ROS Indigo on Ubuntu 14.

2019-06-10 22:46:37 -0500 edited answer How can I list the dependencies of a package

An alternative to rospack depends is rqt_dep which visualizes the connections like so: The documentation for rqt_dep

2019-06-10 22:46:10 -0500 answered a question How can I list the dependencies of a package

An alternative to rospack depends is link text which visualizes the connections like so: The documentation for rqt_de

2019-06-10 22:34:05 -0500 edited question How to compile a non-native Navigation Stack with your workspace?

How to compile a non-native Navigation Stack with your workspace? Problem (TL;DR) I am running ROS Indigo on Ubuntu 14.

2019-06-10 22:28:04 -0500 asked a question How to compile a non-native Navigation Stack with your workspace?

How to compile a non-native Navigation Stack with your workspace? Problem (TL;DR) I am running ROS Indigo on Ubuntu 14.

2019-06-10 17:57:04 -0500 commented question How to call a global planner from within a custom planner?

Also, like I said there are some compatibility issues I am trying to work around, which are confounding the problem. But