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

blueberry's profile - activity

2019-12-21 02:26:14 -0500 received badge  Famous Question (source)
2018-09-07 11:10:49 -0500 received badge  Notable Question (source)
2017-07-29 15:24:17 -0500 received badge  Famous Question (source)
2017-07-29 15:24:17 -0500 received badge  Popular Question (source)
2017-07-29 15:24:17 -0500 received badge  Notable Question (source)
2017-06-20 08:56:52 -0500 received badge  Popular Question (source)
2016-09-29 11:12:58 -0500 received badge  Famous Question (source)
2016-09-13 13:40:49 -0500 received badge  Enthusiast
2016-09-12 14:31:18 -0500 asked a question get ConstPtr for msg field

I have a callback function defined as on_string_msg(const std_msgs::String::ConstPtr& msg). I have both std_msgs::String and a self-defined msg which wraps a std_msgs::String field. myMsg.msg { std_msgs/String subField; }

How can I get std_msgs::String::ConstPtr for subField in the myMsg callback function on_myMsg(const myMsg::ConstPtr& msg) so that I can reuse the function on_string_msg(const std_msgs::String::ConstPtr& msg) with the subField?

Basically, I would like to do

on_myMsg(const myMsg::ConstPtr& msg) {

on_string_msg(msg->subFieldConstPtr); // How to achieve this?

}

2016-07-19 17:18:32 -0500 asked a question catkin lib variable for catkin_make and catkin_make_isolated

Hi, I have two catkin packages, one generating a library and the other makes use of it. In the cmake file of the dependent project, I have "link_directories( ${CATKIN_DEVEL_PREFIX}/lib/ )". This works fine with catkin_make, as the libxxx.so gets generated in devel/lib/. However when using catkin_make_isolated, the libxxx.so gets generated in devel_isolated/project_xxx/lib/ instead. And ${CATKIN_DEVEL_PREFIX} does not seem to dynamically substitute with the correct path according to the catkin command used. What cmake or catkin variable should I use for the link_directories to work in both cases?

2016-04-26 22:49:19 -0500 received badge  Notable Question (source)
2016-04-26 14:16:40 -0500 commented answer launch multiple Rviz instances on the same machine

here is my config <node name="rviz2" pkg="rviz" type="rviz" args="-d $(find scene_plugin)/launch/test2.rviz" required="true"/> <node name="rviz3" pkg="rviz" type="rviz" args="-d $(find scene_plugin)/launch/test3.rviz" required="true"/> Do you have any idea why this would happen?

2016-04-26 14:16:39 -0500 commented answer launch multiple Rviz instances on the same machine

Thanks @jarvisschultz, I was able to launch independent Rviz instances by setting different ROS_MASTER_URI and GAZEBO_MASTER_URI in separate terminals. However, when I tried to launch them from one single launch file, one Rviz starts properly, while the other exits on exception.

2016-04-26 14:03:32 -0500 received badge  Popular Question (source)
2016-04-26 12:38:45 -0500 received badge  Supporter (source)
2016-04-26 12:38:37 -0500 received badge  Scholar (source)
2016-04-25 21:24:53 -0500 asked a question launch multiple Rviz instances on the same machine

Hi,

Is it possible to launch multiple independent Rviz instances on the same machine?