-
Notifications
You must be signed in to change notification settings - Fork 2
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
mrpt_graphslam_mr is not working when robots spawn in a single machine & ros_master with gazebo #1
Comments
Current logfile doesn't show any actual error. I suppose there is a wxWidgets window spawned by the application. If you exit that window it will also print out an exception message. That would be a lot more informative.
Well, you don't have to use different machines, same machine and roscores with different ROS_MASTER_URI would be enough.
This page lists how to start nodes from the same machine but using a different port: http://wiki.ros.org/multimaster_fkie/Tutorials/Setup%20a%20ROS%20master%20synchronization
What's the run_graphslam_ros.launch executuable?
I don't really understand what that means :-)
That's not possible in real-time. There is a utility script for grabbing all the robot maps and fusing them into a single one (mrpt_slam/mrpt_graphslam_2d/src/map_merger_node.cpp), but that's not designed to be run in real-time |
I used from this page and successfully run with different ports for each robot with bellow commands: setup_robot_for_mr_demo.txt
This launch file is prepared by myself and I can successfully run a mrpt_graphslam node for each robot locally. Here you can find this file: |
Dear Nikos,
I tried to run the bellow command to see be behaivior of the multi-robot mrpt_graphslam system in gazebo simulation:
rosrun csl_robots_gazebo run_graphslam_demo.sh /home/ros-team/vr2019/src/csl_mr_slam/csl_robots_gazebo/rosbags/simul_input.bag
But after running the demo, I encountered to a problem follows as in attached log file.
Afterward, I tried to test multi robot graph_slam with my simulation environment. Our simulation spawns P3AT robots in a single machine and also single ros_master, for example http://localhost:11311
Next, I executed bellow commands to create mrpt_graphslams node for each my robots to create local slam nodes:
roslaunch mrpt_graphslam_2d run_graphslam_ros.launch robot_ns:=robot0
roslaunch mrpt_graphslam_2d run_graphslam_ros.launch robot_ns:=robot1
roslaunch mrpt_graphslam_2d run_graphslam_ros.launch robot_ns:=robot2
Also you can find nodes graph in attachment.
After running mrpt_graphslam, all of grid_map topics appeared in "rostopic list" successfully.
Then, I decided to test the system with mrpt_graphslam_mr module. But I encountered to a big problem. It seems that ROS_Master node could not successfully register in multi_master system . As you mentioned, We need to run each robot in different machine and ROS master nodes.
I tried to spawn the robots in a single system with different ports, But it was not able to do this trick.
In my goal, I need to have a real-time global map (with merged map system and multi robot system) in our main dashboard.
Based on this problem, What is your opinion for this problem?
Many thanks,
Mohammad Hossein
log-for-csl-robots-gazebo-sh-demo.log
The text was updated successfully, but these errors were encountered: