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

naikin's profile - activity

2018-08-06 12:59:06 -0500 received badge  Notable Question (source)
2018-02-07 13:31:42 -0500 received badge  Student (source)
2017-12-04 02:47:40 -0500 received badge  Famous Question (source)
2017-12-04 02:47:40 -0500 received badge  Notable Question (source)
2017-11-14 05:41:27 -0500 received badge  Popular Question (source)
2017-10-13 18:14:21 -0500 received badge  Popular Question (source)
2017-10-05 08:45:31 -0500 edited question opencv python system conflict

opencv system conflict I installed ROS kinetic from source. Thus I had to set the PYTHONPATH variable myself. The proble

2017-10-05 08:44:46 -0500 asked a question opencv python system conflict

opencv system conflict I installed ROS kinetic from source. Thus I had to set the PYTHONPATH variable myself. The proble

2017-04-26 00:29:14 -0500 received badge  Famous Question (source)
2017-02-27 18:43:25 -0500 received badge  Notable Question (source)
2017-02-24 18:16:40 -0500 commented answer Convert message const ptr to non-const ptr

Partially, yes. Sorry about that. I failed to mention it is about actionlib in particular cause I was not aware there is a difference. Again, what I really want is to end up with non-const ptr to the message when I receive it with actionlib.

2017-02-24 13:57:41 -0500 asked a question Actionlib with non-const ptr

How can I receive a message in actionlib without using a non-const ptr? I checked the headers for SimpleActionServer and it seems like it can only accept a const-ptr as argument in the callback function and indeed the code does not compile when the type isn't const. Is there a way to get a non-const-ptr as argument? If, not, how do I properly convert a const-ptr to non-const ptr - http://answers.ros.org/question/25535...

2017-02-24 13:47:41 -0500 received badge  Popular Question (source)
2017-02-23 04:48:30 -0500 commented answer Convert message const ptr to non-const ptr

Thanks, that indeed works in some cases, but I cannot make it work with actionlib because it expects a ConstPtr.

2017-02-22 20:27:20 -0500 asked a question Convert message const ptr to non-const ptr

What is the PROPER way to convert the ConstPtr that I receive in a message callback to a non-const ptr so that I can modify the data? What I want to do is to store a buffer of the messages my node receives and then do some additional manipulation.

I know I can manually allocate a copy the message information and store it locally, but this removes the whole point of using classes and becomes a pain when a class has member data which is another class. The autogenerated messages do not have a specific copy constructor and I could not find any good way of adding one (I don't wanna do it manually in the generated header as it will disappear if I change the message). Using the default C++ copy constructor will get me in trouble as it makes only shallow copies of complex data structures which are part of the member data of the message class and when the shared_ptr count for the message goes to 0 I will get a segfault.

2016-10-16 20:06:09 -0500 received badge  Notable Question (source)
2016-10-12 13:14:21 -0500 received badge  Popular Question (source)
2016-10-12 10:52:38 -0500 received badge  Enthusiast
2016-10-10 18:31:19 -0500 asked a question Why ROS generates core packages with same name in both lib and lib64?

I installed ROS from source on Slackware Linux. However for most of the packages it generated python modules with the same name in both ~/ros_catkin_ws/install_isolated/lib/python2.7/site-packages and ~/ros_catkin_ws/install_isolated/lib64/python2.7/site-packages. This is a problem because this creates name clashes and causes import errors. For example, currently these are some of the actionlib modules:

~/ros_catkin_ws/install_isolated/lib64/python2.7/site-packages/actionlib/__init__.py ~/ros_catkin_ws/install_isolated/lib64/python2.7/site-packages/actionlib/exceptions.py ~/ros_catkin_ws/install_isolated/lib/python2.7/site-packages/actionlib/msg/__init__.py

My $PYTHONPATH includes both

~/ros_catkin_ws/install_isolated/lib64/python2.7/site-packages ~/ros_catkin_ws/install_isolated/lib/python2.7/site-packages

However, because of the name clash of the actionlib module, python only finds the module under the lib64 directory and the one under lib is ignored. Thus import actionlib.execptions works ok, but import actionlib.msg fails. When I paste the msg directory in the same directory as exceptions.py, everything works fine.

There are other modules which have the same problem. Why does ROS split the modules in such a way and how can I fix this? To my knowledge, python does not work like that and it does not expect the same module to be in both lib and lib64. For comparison, building from source on Ubuntu Xenial on a 64-bit VM placed everything under lib.

2016-08-23 07:36:48 -0500 received badge  Notable Question (source)
2016-08-19 09:40:24 -0500 received badge  Popular Question (source)
2016-08-18 18:04:34 -0500 asked a question Adding support for new platforms to ROS

Hi, I started installing ROS on my Slackware Linux system and got a error that my system is not recognized. ROS does not know anything about slackware at this point so I started manually tracking the points where rosdep fails. However, this manual tracking takes a lot of time and the moment I fix one error I get to the next one on the pipeline. I am currently quite ahead into the process but where can I read about the official requirements (if they exist) for adding support to new OS so I can implement them and later submit a pull request so my changes are added to the official packages?

2015-11-29 14:28:00 -0500 received badge  Popular Question (source)
2015-11-29 14:28:00 -0500 received badge  Famous Question (source)
2015-11-29 14:28:00 -0500 received badge  Notable Question (source)
2015-07-22 08:27:31 -0500 asked a question Install ROS indigo slackware

I am running Slackware current and I am trying to install ROS indigo from source following this link: http://wiki.ros.org/indigo/Installati...

As rosdep update cannot detect OS, I had to install all dependencies myself. The second answer in this post seems to list the dependencies of ROS (not sure whether the apply to indigo!) http://ros-users.122217.n3.nabble.com... . I was able to find the Slackware equivalents:

UBUNTU: python-wxgtk2.8; SLACKWARE: wxPython

UBUNTU: python-paramiko; SLACKWARE: paramiko

UBUNTU: libboost (1.4); SLACKWARE: boost (installed by default on SlackWare)

UBUNTU: pkg-config; SLACKWARE: pkg-config (installed by default on SlackWare)

UBUNTU: python-yaml; SLACKWARE: pyyaml (libyaml is already installed but this is another package!)

UBUNTU: python-gtk2; SLACKWARE: py-gtk-2 (installed by default on SlackWare)

UBUNTU: libwxgtk2.8-dev; SLACKWARE: wxGTK (seems to be included in wxPython already)

UBUNTU: python-numpy; SLACKWARE: numpy (installed by default on SlackWare)

UBUNTU: python-matplotlib; SLACKWARE: matplotlib

UBUNTU: python-epydoc; SLACKWARE: epydoc

UBUNTU: graphviz; SLACKWARE: graphviz

UBUNTU: python-imaging; SLACKWARE: python-imaging

UBUNTU: doxygen; SLACKWARE: doxygen (installed by default on SlackWare)

UBUNTU: libapr1-dev; SLACKWARE: apr-util (installed by default on SlackWare)

UBUNTU: libbz2-dev; SLACKWARE: bzip2 (installed by default on SlackWare) (not absolutely sure about this one)

UBUNTU: zlib1g-dev; SLACKWARE: zlib (installed by default on SlackWare) (not absolutely sure about this one)

UBUNTU: libaprutil1-dev; SLACKWARE: apr-util (already existing above in the list) (not absolutely sure about that)

UBUNTU: automake; SLACKWARE: automake (installed by default on SlackWare)

UBUNTU: python-dev; SLACKWARE: python? (installed by default on SlackWare) (not absolutely sure about that)

UBUNTU: pysetuptools; SLACKWARE: python-setuptools (not sure whether this is required but seems like it)

UBUNTU: liblog4cxx10-dev; SLACKWARE: log4cxx

I was not sure about the exact equivalents of libwxgtk2.8-dev, python-dev, libbz2-dev, zlib1g-dev, libaprutil1-dev.

Then I executed ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release. I got some errors and had to install python-empy and gtest. However, I still cannot build ROS. I am stuck at this error:

-- catkin 0.6.14
Traceback (most recent call last):
  File "/home/niko/ros_catkin_ws/build_isolated/genmsg/catkin_generated/generate_cached_setup.py", line 20, in <module>
    from catkin.environment_cache import generate_environment_script
ImportError: No module named catkin.environment_cache
CMake Error at /home/niko/ros_catkin_ws/install_isolated/share/catkin/cmake/safe_execute_process.cmake:11 (message):
  execute_process(/usr/bin/python
  "/home/niko/ros_catkin_ws/build_isolated/genmsg/catkin_generated/generate_cached_setup.py")
  returned error code 1

I searched my filesystem for environment.cache* and these were the results:

/home/niko/ros_catkin_ws/install_isolated/lib64/python2.7/site-packages/catkin/environment_cache.py
/home/niko/ros_catkin_ws/install_isolated/lib64/python2.7/site-packages/catkin/environment_cache.pyc
/home/niko/ros_catkin_ws/src/catkin/python/catkin/environment_cache.py
/home/niko/ros_catkin_ws/src/catkin/python/catkin/environment_cache.pyc
/home/niko/ros_catkin_ws/build_isolated/catkin/lib/catkin/environment_cache.py

I added the directories to my PYTHONPATH but still no success. I also tried building jade turtle from source but the result was the same. Any ideas how to fix this?