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

shashankbhat's profile - activity

2020-02-20 12:05:56 -0500 received badge  Famous Question (source)
2018-08-08 01:37:40 -0500 marked best answer rtabmap_ros doesnt display any output

Hi,

I am new to rtabmap_ros. I have installed rtabmap_ros for indigo & was following steps mentioned in

to run the demo_mapping.bag file. The problem is rtabmap_ros will open but nothing is getting displayed.

Can anyone help me out to solve this.

2018-08-08 01:35:54 -0500 received badge  Notable Question (source)
2018-03-08 21:00:25 -0500 received badge  Famous Question (source)
2017-05-11 05:11:24 -0500 received badge  Popular Question (source)
2017-05-09 23:36:22 -0500 commented answer rtabmap_ros doesnt display any output

Even when I run roslaunch rtabmap_ros demo_robot_mapping.launch rviz:=true rtabmapviz:=false, I wont get any display

2017-05-09 23:04:34 -0500 commented answer rtabmap_ros doesnt display any output

If I launch with RVIZ I can see laserscan output. But it doesn't display on rtabmapviz.

2017-05-09 23:00:17 -0500 commented answer rtabmap_ros doesnt display any output

If I launch with RVIZ I can see laserscan output

2017-05-08 23:41:01 -0500 commented question rtabmap_ros doesnt display any output

roslaunch rtabmap_ros demo_robot_mapping.launch rosbag play --clock demo_mapping.bag

2017-05-08 09:22:24 -0500 received badge  Notable Question (source)
2017-05-08 09:19:36 -0500 asked a question rtabmap_ros doesnt display any output

rtabmap_ros doesnt display any output Hi, I am new to rtabmap_ros. I have installed rtabmap_ros for indigo & was

2017-04-25 04:02:30 -0500 received badge  Enthusiast
2017-04-24 03:22:49 -0500 commented question Point Cloud not getting displayed on Rviz in JetsonTX1

I am notable to upload screen shot. Topics published are pointcloud & image

2017-04-24 02:12:47 -0500 asked a question Point Cloud not getting displayed on Rviz in JetsonTX1

Point Cloud not getting displayed on Rviz in JetsonTX1 Hi, I have installed roskinect on NvidiaJetsonTX1. When I load R

2017-04-14 10:20:53 -0500 received badge  Famous Question (source)
2017-03-20 06:31:15 -0500 received badge  Popular Question (source)
2017-03-16 23:14:02 -0500 commented answer How to Synchronize two topics ?

@TTDM Thanks a lot for suggestion. Obviously I need to go through the tutorials. This was something I wanted in a short span of time so couldn't go through it completely.

2017-03-16 09:35:45 -0500 received badge  Notable Question (source)
2017-03-16 02:01:13 -0500 commented question How to Synchronize two topics ?

Is it necessary to subscribe first & then publish?? May actual intension is to call a callback & publish from the callback function. Is this possible using Approximate Time policy??

2017-03-16 01:58:44 -0500 commented question How to Synchronize two topics ?

Initially I was trying to run only this code, so it was not calling callback. But when I wrote a Publisher file separately & tried to subscribe it, It worked. So now I have merged both the files & this is what I found when I first wrote publisher & then subscribe it dint work, but vice-versa worked

2017-03-15 00:54:27 -0500 commented question How to Synchronize two topics ?

@TTDM I tried giving larger values it doesn't work

2017-03-15 00:52:32 -0500 received badge  Popular Question (source)
2017-03-14 07:18:47 -0500 received badge  Scholar (source)
2017-03-14 05:49:20 -0500 commented answer Is it possible to add topic to Rviz from command line??

Thanks alot @gvdhoorn

2017-03-14 05:09:25 -0500 commented question How to Synchronize two topics ?

Sorry for inconvenience, I guess it is in correct format now

2017-03-14 04:39:09 -0500 received badge  Editor (source)
2017-03-14 03:35:13 -0500 asked a question Is it possible to add topic to Rviz from command line??

I want my topics to be added automatically to Rviz. Is it possible??

Wanted to know whether there are commands to add topics

2017-03-14 03:27:59 -0500 asked a question How to Synchronize two topics ?

Hi I am new to ROS, I am trying to synchronize two subscribed topics from last few days. I have tried almost all solutions mentioned in this forum but still struggling to get it synchronized. The callback function is never called. Below is my code as well CMakeLists.txt. Can anyone plz suggest where I am going wrong or what changes I should make.

Here is my code:

#include <message_filters/subscriber.h>
#include <message_filters/time_synchronizer.h>
#include <message_filters/synchronizer.h>
#include <message_filters/sync_policies/approximate_time.h>
#include <sensor_msgs/Image.h>
#include <boost/bind.hpp>
using namespace sensor_msgs;
using namespace message_filters;

void callback(const ImageConstPtr& image1, const ImageConstPtr& image2)
{
  ROS_INFO_STREAM("Hi I am in callback");
}

int main(int argc, char** argv)
{
  ros::init(argc, argv, "test_messge_filter");
  ros::NodeHandle nh;
  message_filters::Subscriber<Image> image1_sub(nh, "image1", 1);
  message_filters::Subscriber<Image> image2_sub(nh, "image2", 1);
  typedef sync_policies::ApproximateTime<Image, Image> MySyncPolicy;
// ApproximateTime takes a queue size as its constructor argument, hence MySyncPolicy(10)
  Synchronizer<MySyncPolicy> sync(MySyncPolicy(10), image1_sub, image2_sub);
  sync.registerCallback(boost::bind(&callback, _1, _2));
  ros::spin();
  return 0;
}


CMakeLists.txt:
find_package(catkin REQUIRED COMPONENTS
pcl_ros  
roscpp
sensor_msgs 
image_transport  
message_filters  
std_msgs
message_generation 
cv_bridge
)
find_package(OpenCV REQUIRED)
find_package(Boost REQUIRED COMPONENTS 
signals
) 

catkin_package()
include_directories(
${catkin_INCLUDE_DIRS} 
${OpenCV_INCLUDE_DIRS} 
${Boost_INCLUDE_DIRS}
)

add_executable(pub_sub_image_pointcloud src/pub_sub_image_pointcloud.cpp)
target_link_libraries(pub_sub_image_pointcloud

${catkin_LIBRARIES}  
${OpenCV_LIBRARIES}
${Boost_LIBRARIES}
 )