Comments (4)
As you say, S-PTAM can not crate an initial map. This could be caused by a wrong camera calibration, or the scene does not have enough features. Try to recalibrate the camera with http://wiki.ros.org/camera_calibration/Tutorials/StereoCalibration or with http://www.vision.caltech.edu/bouguetj/calib_doc/.
On the other hand, take care that you are copping the image in the launch file as level7.launch file. Try to crop the image propperly or not cropping it at all.
Let me know, if this helps?
Taihú
from sptam.
Thank you for your reply.
We have calibrated the cameras and are currently not cropping. S-PTAM is working and we can see the point clouds in RVIZ. We have another couple problems as a follow up.
- When we set _use_odometry to "true" by running in launchfile as well as by using the command:
rosrun sptam sptam_node _approximate_sync:=true _use_odometry:=true
the topics
/S_PTAM/point_cloud
/S_PTAM/robot/pose
NODES
/stereo/
stereo_image_proc (stereo_image_proc/stereo_image_proc)
/
camera_broadcaster (tf/static_transform_publisher)
sptam (sptam/sptam_node)
sptam_path (ros_utils/pose_to_path)
ROS_MASTER_URI=http://localhost:11311
core service [/rosout] found
process[camera_broadcaster-1]: started with pid [20084]
ERROR: cannot launch node of type [ros_utils/pose_to_path]: ros_utils
ROS path [0]=/opt/ros/indigo/share/ros
ROS path [1]=/home/sidd/catkin_ws/src
ROS path [2]=/opt/ros/indigo/share
ROS path [3]=/opt/ros/indigo/stacks
process[stereo/stereo_image_proc-3]: started with pid [20085]
process[sptam-4]: started with pid [20086]
[ INFO] [1459782485.377107995]: S-PTAM node running...
detector: GFTT
minDistance: 15
nfeatures: 1000
qualityLevel: 0.01
useHarrisDetector: 0
extractor: BRIEF
matcher: BruteForce-Hamming
crossCheck: 0
[ INFO] [1459782485.791753899]: sptam node initialized
[ INFO] [1459782487.473742022]: dt: 0
[ WARN] [1459782487.574682077]: Failed to retrieve camera pose in odom frame
[ INFO] [1459782487.575199268]: dt: 0
[ WARN] [1459782487.676182246]: Failed to retrieve camera pose in odom frame
[ INFO] [1459782487.676580956]: dt: 0
[ WARN] [1459782487.777517507]: Failed to retrieve camera pose in odom frame
[ INFO] [1459782487.777988269]: dt: 0
do not publish anything.
It works when set to false.
- Is there any way to access odometry data to visualize on rviz? Through some topic that can be published or some other method? Or have you created a rviz config file which you can share with us?
- In the cam.yaml file is there any parameters we can vary such as the
data: [ 718.856, 0, 607.1928, 0, 718.856, 185.2157, 0, 0, 1 ]
parameter or camera matrix for better running?
Thanks again.
from sptam.
Hi siddyyagno3, are you running the S-PTAM in a robot (or dataset) which provides odometry ROS messages? If not, you can not set true the use_odometry flag.
- I think you can subscribe to odometry messages with RVIZ without problem.
- What cam.yaml are you talking about? Looks you are talking about camara calibration parameters (intrinsic matrix K). However, this parameters are provided by cameraInfo ROS messages to S-PTAM.
Best!
from sptam.
Sorry for losing track of this issue.
Got it working thanks to taihup .
After reinstalling and bit of luck I realized that installation of g2o ROS package was wrong and had to install the recommended one: svn co https://svn.openslam.org/data/svn/g2o .
And the distance between camera for good output in indoor environment was above 10cm.
Implemented it on our bot it was working and used it follow a predefined path.
We are working towards using this odometry package combined with path following to drive any general bot and publish it on git.
from sptam.
Related Issues (20)
- Gtest error while compilation HOT 12
- Not enough points for tracking with MIT dataset HOT 1
- ERROR: There is not any covisibility keyframes observing the tracked points HOT 7
- Building standalone HOT 2
- Running KITTI sequences on standalone HOT 3
- Error Running kitti.launch with kitti_01.bag HOT 20
- symbol lookup error: /home/ros/vslam/devel/lib/libsptam.so: undefined symbol HOT 2
- Improvement for pure localization after running a SLAM session HOT 3
- error: ‘DBoW2::FBrief::TDescriptor {aka class std::bitset<256ul>}’ has no member named ‘resize’ HOT 6
- [ERROR] [1563717737.344465687]: [registerPublisher] Failed to contact master at [localhost:11311]. Retrying... HOT 17
- File:'file:///home/lzb/catkin_ws2/src/sptam/src/sptam/loopclosing/detectors/DLDLoopDetector.cpp' Severity:'Error' Message:''DBoW2:: FBrief:: TDescriptor {aka class std:: BitSet < 256ul >}'has no member named'resize'' HOT 4
- Gtest error while doing catkin_make --pkg sptam -DCMAKE_BUILD_TYPE=RelWithDebInfo -DSINGLE_THREAD=OFF -DSHOW_TRACKED_FRAMES=ON -DSHOW_PROFILING=ON -DPARALLELIZE=ON HOT 3
- Error while running the roslaunch sptam kitti.launch HOT 23
- KITTI Bag Files HOT 4
- Disable GTest? HOT 1
- CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkin_workspace.cmake:95 (message): This workspace contains non-catkin packages in it, and catkin cannot build a non-homogeneous workspace without isolation. Try the 'catkin_make_isolated' command instead. Call Stack (most recent call first): CMakeLists.txt:67 (catkin_workspace) HOT 4
- rosplay kitti_04 error,need help HOT 3
- Please HELP me::::::when-->“catkin_make --pkg sptam -DCMAKE_BUILD_TYPE=RelWithDebInfo -DSINGLE_THREAD=OFF -DSHOW_TRACKED_FRAMES=ON -DSHOW_PROFILING=ON -DPARALLELIZE=ON” HOT 7
- Please help me, it's too difficult to solve HOT 18
- Can we use this slam with only lidar? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sptam.