-
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
online mapping #14
Comments
It's hard to diagnose issues without being able to test the running system. There are a couple of issues with your steps though:
OpenRatSLAM adds the topic root to "/camera/image", so in your case your topic root should just be "usb_cam" (see lines below)
You might need to remap your topic to what RatSLAM expects:
The build process for OpenRatSLAM takes all the files (*.txt.in) in the src/ratslam_ros/config directory, fills in templates, and then produces an output config (*.txt) in devel/share/ratslam_ros/config. As long as you put your config file in the same folder, you can just change
This looks OK. After doing this step trying running |
@scott-- |
That assertion is indicating that there is a sequencing error in messages sent. Do you get the same error when you run OpenRatSLAM from a bag file? Try running the OpenRatSLAM launch files before publishing from the robot - it could be caused by a race condition where OpenRatSLAM connects to your robot before its own nodes connect to each other. |
When I run OpenRatSLAM from a bag file, it works well. |
You can either provide odometry directly from your robot, if you have encoders, or use the RatSLAMVisualOdometry node to provide odometry from the images (see the stlucia.launch file). |
I followed your advice and opened the launch file first . The errors are as follows: ratslam_pc: /home/sunt/catkin_ratslam/src/ratslam_ros/src/ratslam/posecell_network.cpp:1034: void ratslam::PosecellNetwork::on_view_template(unsigned int, double): Assertion `vt == visual_templates.size() - 1' failed. |
I made it !!! Thank you very much!!! |
hello,I met the same problem, I will appreciate it that you give some advice to solve this error |
打开你的my_robot.launch,看一下是否启动了里程计节点 |
|
started roslaunch server http://gaohao-pc:45987/ SUMMARYPARAMETERS
NODES ROS_MASTER_URI=http://localhost:11311 process[RatSLAMLocalViewCells-1]: started with pid [10686]
|
我在工作空间编译成功后,直接运行 |
Here is my steps to run ratslam for online mapping:
1.I modified the config file:
Change the first line "topic_root=stlucia" to "topic_root=/usb_cam/image_raw/compressed"
2.I modified the launch file :
Replace all references to "$(find ratslam_ros)/config/config_stlucia.txt" with "$(find ratslam_ros)/config/config_my_robot.txt.in"
Replace with
3.Then I typed in the terminal as follows:
roslaunch usb_cam usb_cam-test.launch
roslaunch ratslam_ros my_robot.launch
After that,four blank windows popped up,but they are not wok.
What mistakes did I make?
The text was updated successfully, but these errors were encountered: