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

martin1412's profile - activity

2020-10-24 06:50:06 -0500 received badge  Famous Question (source)
2020-05-01 01:30:22 -0500 received badge  Popular Question (source)
2019-12-09 08:28:22 -0500 received badge  Nice Question (source)
2018-08-23 09:07:25 -0500 asked a question Configuring multiple Loggers (file / console)

Configuring multiple Loggers (file / console) Hi guys, I've been playing with ROS logging a little and was wondering w

2018-05-11 07:00:37 -0500 commented answer Could not load panel in rviz -- PluginlibFactory: The plugin for class ...

Thank you, solved it for me as well

2018-05-11 00:56:47 -0500 received badge  Famous Question (source)
2018-03-30 03:34:14 -0500 received badge  Famous Question (source)
2018-03-12 09:49:23 -0500 received badge  Notable Question (source)
2017-11-12 15:56:58 -0500 received badge  Popular Question (source)
2017-10-19 08:31:33 -0500 received badge  Famous Question (source)
2017-07-18 18:44:50 -0500 received badge  Notable Question (source)
2017-02-15 20:35:58 -0500 received badge  Famous Question (source)
2016-12-20 03:49:12 -0500 answered a question How to run nodelet as standalone with rosparams?

I've got the same problem, if I try to run a standalone nodelet using:

rosrun nodelet nodelet standalone vop_package/VSFNodelet

I can not access the rosparams from within that node (nh.getParam fails)

2016-11-29 03:39:45 -0500 asked a question rospack segmentation fault

Hi guys,

I am using ros::package::getPath to resolve the path to a config file I am loading within my program. When I am starting the node using

rosrun node_pkg node

everything works just fine, but when I directly launch the generated executable in the devel directory, I immediately get a segmentation fault

#0  0x00007ffff33056ad in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#1  0x00007ffff18511f3 in rospack::Stackage::~Stackage() () from /opt/ros/jade/lib/librospack.so
#2  0x00007ffff1847ecf in rospack::Rosstackage::addStackage(std::string const&) ()
   from /opt/ros/jade/lib/librospack.so
#3  0x00007ffff184bfad in rospack::Rosstackage::crawlDetail(std::string const&, bool, int, bool, std::vector<rospack::DirectoryCrawlRecord*, std::allocator<rospack::DirectoryCrawlRecord*> >&, boost::unordered::unordered_set<std::string, boost::hash<std::string>, std::equal_to<std::string>, std::allocator<std::string> >&) ()
   from /opt/ros/jade/lib/librospack.so
#4  0x00007ffff184bef3 in rospack::Rosstackage::crawlDetail(std::string const&, bool, int, bool, std::vector<rospack::DirectoryCrawlRecord*, std::allocator<rospack::DirectoryCrawlRecord*> >&, boost::unordered::unordered_set<std::string, boost::hash<std::string>, std::equal_to<std::string>, std::allocator<std::string> >&) ()
   from /opt/ros/jade/lib/librospack.so
#5  0x00007ffff184cbe5 in rospack::Rosstackage::crawl(std::vector<std::string, std::allocator<std::string> >, bool) () from /opt/ros/jade/lib/librospack.so
#6  0x00007ffff185b2d1 in rospack::rospack_run(int, char**, rospack::Rosstackage&, std::string&) ()
   from /opt/ros/jade/lib/librospack.so
#7  0x00007ffff1857e3c in rospack::ROSPack::run(int, char**) () from /opt/ros/jade/lib/librospack.so
#8  0x00007ffff1858169 in rospack::ROSPack::run(std::string const&) () from /opt/ros/jade/lib/librospack.so
#9  0x00007ffff597bf01 in ros::package::command(std::string const&) () from /opt/ros/jade/lib/libroslib.so
#10 0x00007ffff597c0cd in ros::package::getPath(std::string const&) () from /opt/ros/jade/lib/libroslib.so

can anybody explain this behavior?

#include <ros/package.h> 
std::string path = ros::package::getPath("x_common");

Thank you for your time!

2016-11-16 11:42:23 -0500 received badge  Popular Question (source)
2016-06-30 07:41:42 -0500 received badge  Notable Question (source)
2016-06-29 11:50:57 -0500 received badge  Popular Question (source)
2016-06-02 00:14:47 -0500 received badge  Enthusiast
2016-06-01 02:45:06 -0500 asked a question Remap parameters in included file

Hello guys, this is a snippet from my launch file

<remap from="/a" to="/prefix/a" />
<include file="xyz.launch" />

file xyz.launch contains:

<launch>
<param name="/a/hello" value="10" />
...
</launch>

sadly, the remapping does not work. Is there any way to make this work without having to place the remap in file xyz?

2016-05-31 08:59:17 -0500 asked a question Remapping all topics of a machine to a namespace

Hi guys,

I have to machines, one of them configured as the ROS_MASTER. Both of them are essentially running the same code, but I want both machines to publish messages to different topics, hence I thougt it would be good to put one of the machines into a different namespace.

I did that via export ROS_NAMESPACE=xyz

The code base is quite large, and sadly a lot of people used only global topic names during development, which causes ros to NOT prefix those topics ( /topic1 stays /topic1 while topic2 becomes /xyz/topic2).

Is there any other way (for example with the help of remapping) that would allow me to put all of the topics published by a single physical machine to a different namespace?

Thank you!

2016-01-25 04:58:28 -0500 received badge  Famous Question (source)
2016-01-21 08:28:35 -0500 received badge  Notable Question (source)
2016-01-21 08:25:00 -0500 received badge  Notable Question (source)
2016-01-21 07:00:13 -0500 answered a question PYTHONPATH is not set correctly by source devel/setup.bash

I don't really know what the problem was, I removed the whole workspace and set it up again. It seems to work now

2016-01-21 06:58:53 -0500 received badge  Scholar
2016-01-21 06:58:45 -0500 answered a question What causes a library (.so) to be copied to devel/lib

The problem seems to be related to the order of commands in my CMakeLists.txt Thank you gvdhoorn!

After moving the add_library, add_dependencies and target_link_libraries statements below catkin_package, the .so file was created in devel/lib

2016-01-21 06:38:45 -0500 received badge  Popular Question (source)
2016-01-21 05:39:51 -0500 received badge  Editor (source)
2016-01-21 05:23:58 -0500 received badge  Popular Question (source)
2016-01-21 04:28:58 -0500 asked a question What causes a library (.so) to be copied to devel/lib

Hi guys,

I've got a project comprising approximately 30 packages. Some of these packages define libraries in the CMakeLists, using the add_library and target_link_libraries functions. I am wondering why only some of these packages create shared objects in devel/lib while others aren't.

Example: I've got a package (for simplicity say package "a") which defines a library. This package is referenced as <runtime_dep> by another package (b). Sadly, when running catkin build, no shared object is copied to devel/lib, resulting in runtime failure in node b.

EDIT: Thank you for your answers, but that doesn't seem to be what I am looking for.

I am using catkin_tools to build my project. I configure my build with catkin config --no-install, hence no install targets are executed.

Still, catkin puts some libraries in devel/lib. If I look at the $LD_LIBRARY_PATH after the build, I can see that the devel/lib directory is included there. My problem is that I don't know which statement causes a defined library to be copied there at build time.

All packages define the libraries using add_library, target_link_libraries and catkin_package(... LIBRARIES <xyz>), still some of them are not copied to devel/lib

Package definition of a package which doesn't create a shared object in devel/lib:

... 
add_library(m_controllers    
     src/general.cpp    
     src/passthrough.cpp )

add_dependencies(m_controllers ${catkin_EXPORTED_TARGETS}) 
target_link_libraries(m_controllers ${catkin_LIBRARIES})

catkin_package(    
CATKIN_DEPENDS
....    
INCLUDE_DIRS include    
LIBRARIES m_controllers 
) 
...
2016-01-04 09:42:13 -0500 asked a question PYTHONPATH is not set correctly by source devel/setup.bash

I am having some issues with the PYTHONPATH that is set by my ROS environment.

my .bashrc contains the following lines:

source /opt/ros/jade/setup.bash
source /home/x/workspace/devel/setup.bash

If I print my PYTHONPATH in a new bash it looks like this:

PYTHONPATH=/home/x/workspace/devel/lib/python2.7/dist-packages

The PYTHONPATH contains only workspace-specific packages.

This results in failure, when trying to import the catkin package from a python interpreter (as it is for example required when importing a rosnode project in qtcreator)

I investigated this problem a little bit, and it seems as if the first sourcing command sets the

PYTHONPATH=/opt/ros/jade/lib/python2.7/dist-packages

(which is where the catkin package is found) The second sourcing command however resets the path, and only appends the workspace specific part again.

Is this the intended behavior?

2015-12-10 23:30:54 -0500 received badge  Notable Question (source)
2015-12-10 16:01:41 -0500 received badge  Popular Question (source)
2015-12-10 11:46:30 -0500 received badge  Supporter (source)
2015-12-10 11:42:06 -0500 received badge  Student (source)
2015-12-10 11:30:30 -0500 asked a question Show which nodes run on which host

Hi guys,

I am currently experimenting with distributing my ROS application to multiple machines. I would like to get an overview on what nodes are running on which hosts within the network.

Is there anything like rqt_graph which provides additional host information? Thank you!