-
Notifications
You must be signed in to change notification settings - Fork 59
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
Hi, could you please tell me how to add one more ros node for ratslam? #18
Comments
What is the purpose of adding another node? You can add a new ROS node in the same way as any other ROS system (https://wiki.ros.org/ROSNodeTutorialC++). |
Make ratslam subscribe one more node, such as semantic information node, to improve its map accuracy.But I don't know how to add ROS nodes for ratslam. |
You can subscribe to any of the RatSLAM topics. E.g.,
Note in this case RatSLAM only writes the map out at 30 second intervals. You might want to change this line "if (action->header.stamp - prev_pub_time > ros::Duration(30.0))" to set a different duration. There is a lot of info in our OpenRatSLAM paper about the software architecture (search Google scholar for OpenRatSLAM). Fig. 2 in our OpenRatSLAM paper shows the ROS connections between nodes by message type and descriptions of messages. You can also run |
I think I need to modify and add some node names which ratslam subscribes.Which files should I modify? |
Can you give me your email or other contact information for the convenience of communication. Recently I have some problem about ratslam and I'm sure you can give me a lot of help. @scott-- |
All the ROS interfaces are in the main*.cpp files. You can do a search for subscriptions and publishing like this.
./ratslam_ros/src/main_em.cpp:279: ros::Subscriber sub_odometry = node.subscribe<nav_msgs::Odometry>(topic_root + "/odom", 0, boost::bind(odo_callback, _1, em), ros::VoidConstPtr(),
./ratslam_ros/src/main_em.cpp:272: pub_em = node.advertise<ratslam_ros::TopologicalMap>(topic_root + "/ExperienceMap/Map", 1);
All of these comments get emailed to me already, but as I am not currently working in this space, I only answer them when I get time. |
OK.Thank you very much. |
I want ratslam's experience map node to subscribe to an extra topic . How to change it in main_em.cpp ? |
Subscribing to another topic is exactly the same as standard ROS. You would just add the following: Then inside main(): You'll need to lookup the ROS tutorials for message generation, boost::bind, etc |
OK. Thank you a lot! |
No description provided.
The text was updated successfully, but these errors were encountered: