Ask Your Question

zqpm's profile - activity

2018-12-14 12:50:57 -0600 received badge  Famous Question (source)
2018-08-21 08:12:18 -0600 received badge  Famous Question (source)
2018-02-26 22:43:06 -0600 received badge  Notable Question (source)
2018-02-26 22:43:06 -0600 received badge  Popular Question (source)
2018-02-16 05:11:17 -0600 received badge  Notable Question (source)
2018-02-16 05:11:17 -0600 received badge  Popular Question (source)
2017-06-16 11:15:34 -0600 asked a question make sure all ROS_INFO gets to /rosout

make sure all ROS_INFO gets to /rosout I would like to get all my ROS_INFO, ROS_WARN, etc. message from /rosout (or /ros

2017-06-14 08:56:16 -0600 commented question Possible for a node to "refresh" information with rosmaster?

Consider yourself lucky then.

2017-06-14 07:45:10 -0600 commented question Possible for a node to "refresh" information with rosmaster?

I don't, but shit happens. To quote: The not-so-great solution is to just spawn roscore in the background and hope that

2017-06-13 09:48:39 -0600 asked a question Possible for a node to "refresh" information with rosmaster?

Possible for a node to "refresh" information with rosmaster? The basic scenario I would like to avoid Start roscore St

2017-03-23 14:31:09 -0600 received badge  Great Answer (source)
2017-02-17 12:14:01 -0600 received badge  Good Answer (source)
2017-02-16 04:57:24 -0600 received badge  Nice Answer (source)
2017-01-20 14:56:44 -0600 received badge  Teacher (source)
2017-01-20 14:56:44 -0600 received badge  Necromancer (source)
2017-01-12 08:58:40 -0600 answered a question rosdep initialization error

This wound up being the solution on one system I was using (Jetson TX1 w/ Ubuntu 16.04)

sudo c_rehash /etc/ssl/certs

2016-12-20 11:13:20 -0600 received badge  Famous Question (source)
2016-03-02 19:07:20 -0600 received badge  Famous Question (source)
2016-01-27 09:44:59 -0600 commented answer catkin_make not linking opencv dependencies

I do have the repository version and a version I built from source (for some purpose I can't remember). Setting that env variable to did not redirect the linker to the source build for me, however.

2016-01-27 09:41:10 -0600 received badge  Editor (source)
2016-01-27 08:05:03 -0600 answered a question catkin_make not linking opencv dependencies

Apparently a bunch of my OpenCV shared libraries were missing for some reason. Now reinstalled via 'apt-get install --reinstall ...' and compiling fine.

With the .so files missing the linker was trying to use the .a static libraries instead. My build knowledge is not that deep so I don't currently understand why that wouldn't work (in case anyone want to enlighten me).

2016-01-27 07:47:29 -0600 received badge  Enthusiast
2016-01-27 01:26:45 -0600 received badge  Notable Question (source)
2016-01-26 14:30:23 -0600 received badge  Popular Question (source)
2016-01-26 12:40:46 -0600 commented question catkin_make not linking opencv dependencies

Okay. Hope that's better.

2016-01-26 10:01:38 -0600 asked a question catkin_make not linking opencv dependencies

Something has gotten screwed up on one of my machines and now catkin_make is not linking opencv dependencies correctly (or something along those lines), i.e., I'm am getting a long list of errors of the format: In function 'SOME OPENCV FUNCTION', undefined reference to 'X'.

/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_core.a(gl_core_3_1.cpp.o): In function `IntGetProcAddress(char const*)':
(.text._ZL17IntGetProcAddressPKc+0x15): undefined reference to `glXGetProcAddressARB'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_core.a(system.cpp.o): In function `cv::makeKey()':
(.text._ZN2cvL7makeKeyEv+0x14): undefined reference to `pthread_key_create'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_core.a(system.cpp.o): In function `cv::Mutex::Mutex()':
(.text._ZN2cv5MutexC2Ev+0x1c): undefined reference to `pthread_spin_init'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_core.a(system.cpp.o): In function `cv::Mutex::~Mutex()':
(.text._ZN2cv5MutexD2Ev+0x34): undefined reference to `pthread_spin_destroy'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_core.a(system.cpp.o): In function `cv::Mutex::operator=(cv::Mutex const&)':
(.text._ZN2cv5MutexaSERKS0_+0x41): undefined reference to `pthread_spin_destroy'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_core.a(system.cpp.o): In function `cv::Mutex::lock()':
(.text._ZN2cv5Mutex4lockEv+0x4): undefined reference to `pthread_spin_lock'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_core.a(system.cpp.o): In function `cv::Mutex::unlock()':
(.text._ZN2cv5Mutex6unlockEv+0x4): undefined reference to `pthread_spin_unlock'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_core.a(system.cpp.o): In function `cv::Mutex::trylock()':
(.text._ZN2cv5Mutex7trylockEv+0x8): undefined reference to `pthread_spin_trylock'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_core.a(system.cpp.o): In function `cv::TLSDataContainer::~TLSDataContainer()':
(.text._ZN2cv16TLSDataContainerD2Ev+0x1f): undefined reference to `pthread_spin_lock'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_core.a(system.cpp.o): In function `cv::TLSDataContainer::~TLSDataContainer()':
(.text._ZN2cv16TLSDataContainerD2Ev+0x42): undefined reference to `pthread_spin_unlock'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_core.a(system.cpp.o): In function `cv::TLSDataContainer::~TLSDataContainer()':
(.text._ZN2cv16TLSDataContainerD2Ev+0x10f): undefined reference to `pthread_spin_unlock'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_core.a(system.cpp.o): In function `cv::TLSStorage::~TLSStorage()':
(.text._ZN2cv10TLSStorageD2Ev+0x3d): undefined reference to `pthread_spin_lock'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_core.a(system.cpp.o): In function `cv::TLSStorage::~TLSStorage()':
(.text._ZN2cv10TLSStorageD2Ev+0x62): undefined reference to `pthread_spin_unlock'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_core.a(system.cpp.o): In function `cv::TLSStorage::~TLSStorage()':
(.text._ZN2cv10TLSStorageD2Ev+0xcd): undefined reference to `pthread_spin_unlock'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_core.a(system.cpp.o): In function `cv::TLSDataContainer::TLSDataContainer()':
(.text._ZN2cv16TLSDataContainerC2Ev+0x24): undefined reference to `pthread_spin_lock'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_core.a(system.cpp.o): In function `cv::TLSDataContainer::TLSDataContainer()':
(.text._ZN2cv16TLSDataContainerC2Ev+0x6d): undefined reference to `pthread_spin_unlock'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_core.a(system.cpp.o): In function `cv::TLSDataContainer::TLSDataContainer()':
(.text._ZN2cv16TLSDataContainerC2Ev+0xab): undefined reference to `pthread_spin_unlock'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_core.a(system.cpp.o): In function `cv::TLSDataContainer::getData() const':
(.text._ZNK2cv16TLSDataContainer7getDataEv+0x22): undefined reference to `pthread_once'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_core.a(system.cpp.o): In function `cv::TLSDataContainer::getData() const ...
(more)
2015-12-08 12:30:10 -0600 received badge  Notable Question (source)
2015-12-08 08:27:43 -0600 commented answer get roslaunch arg value from a file?

That's sort of what I'm doing now, but setting an environment variable has to be done before starting roslaunch (as a script can't set an environment variable in the parent process). Setting a param with the command option works, but there is no substitution rule for using params in a launch file.

2015-12-07 18:38:49 -0600 received badge  Popular Question (source)
2015-12-07 13:15:02 -0600 received badge  Nice Question (source)
2015-12-07 12:45:07 -0600 received badge  Student (source)
2015-12-07 12:44:04 -0600 asked a question get roslaunch arg value from a file?

I have a system with multiple homogeneous robots with an id assigned to each based on the MAC address of it's ethernet interface. I would like to know the best way for my main launch file to get the robot's id from a look up table and use it to set an id parameter (so the robot knows who it is) and include another launch file specific to that robot (i.e., for setting parameters that may differ between robots). Basically I want to get the robot's id as an arg variable in the launch file.

I'm currently setting an environment variable at login inside .bashrc and reading that it, but it would be nice if there was a solution that was more self-contained to my code repository.

Or maybe there is a better way to do what I'm am trying to accomplish?