-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merger not subscribing to gazebo generated laser topics #5
Comments
I guess the problem here is that the node checks if the topic is already there and then subscribes it. change the topic parser function like this, and it should work, as far as it does ...
|
#0 0xb29183ee in ?? () from /lib/libc.so.6 iralabdisco#1 0x080c85a2 in Eigen::internal::handmade_aligned_free(void*) () iralabdisco#2 0x080c85ef in Eigen::internal::aligned_free(void*) () iralabdisco#3 0x080cf4d8 in void Eigen::internal::conditional_aligned_free<true>(void*) () iralabdisco#4 0x080d5a6f in void Eigen::internal::conditional_aligned_delete_auto<float, true>(float*, unsigned int) () iralabdisco#5 0x080d350e in Eigen::DenseStorage<float, -1, -1, -1, 0>::~DenseStorage() () iralabdisco#6 0x080ce018 in Eigen::PlainObjectBase<Eigen::Matrix<float, -1, -1, 0, -1, -1> >::~PlainObjectBase() () iralabdisco#7 0x080ce030 in Eigen::Matrix<float, -1, -1, 0, -1, -1>::~Matrix() () iralabdisco#8 0x080c4a65 in LaserscanMerger::scanCallback(boost::shared_ptr<sensor_msgs::LaserScan_<std::allocator<void> > const> const&, std::string) ()
I've bump into the same problem, and thanks to @cyborg-x1, the fix worked. Guess this behavior is more desirable considering the ROS philosophy.... |
try this fix: https://answers.ros.org/question/225183/ira_laser_tools-merger-doesnt-subscribe-to-topics-from-laser-in-gazebo/ Basically he adds a success return value and loops over |
I saw that thread and tried to make that fix. I feel like I'm doing it wrong. Could you post the modified source code or help me find where exactly im supposed to add this |
This fix works for me. Waits until all input topics are available, and outputs a throttled ROS_INFO to let a user know how many of its selected input topics are available and how many are still to come. |
Hello,
while trying to set up my system in Gazebo, I was noticing that the merger doesn't subscribe to the laser topics generated by 3 hokuyo lidars in Gazebo.
My config is the following:
3 lasers mounted at robot -> publishing topics:
/scan_hokuyo1 /scan_hokuyo2 and /scan_ibeo1
See my output of
rostopic list
:rosnode info /laserscan_multi_merger
Node [/laserscan_multi_merger]
Publications:
Subscriptions:
Services:
contacting node http://aschultz-ThinkPad-T450s:42260/ ...
Pid: 21244
Connections:
You can see the node isn't subscribing to the topics mentioned above. I started the node with the following part of my launch file:
If I try to echo the topic of the laser merger the following output appears and also ROS_DEBUG messages are published:
[DEBUG] [1453887963.432518126, 100.157000000]: Incoming queue full for topic "/clock". Discarding oldest message (current queue size [0])
So I don't think that the subscription to topics is done correctly.
Thanks in advance
The text was updated successfully, but these errors were encountered: