-
Notifications
You must be signed in to change notification settings - Fork 17
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
Octomap not visible and ardrone not following path #3
Comments
Octomap is now visible for me. |
Hi @axelfar |
Hi, should we be using any other point cloud publishing ros package like, Point Cloud IO? Please help me publish point cloud and the computed octomap in Rviz |
Hello @boonflies @axelfar |
Thanks, I tried pressing "l" and "p" in the conversion node and yes I got the following printed on the terminal, But when I try to echo the pointcloud2_scaled topic, as Is there any problem with my dx and dq convergence, that the point cloud is not being published? |
@boonflies could you pose your rqt node graph in here ? Maybe it can help us to figure out what's happening. |
|
It seems that LSD slam viewer node didn't publish point cloud. Because we modified the code of original LSD slam. Please check that you are using lsd_slam in our repo. |
Yes, you are right. I have used lsd_slam package provided inside third parties folder and I have these two lines in lsd_slam_viewer/src/KeyFrameDisplay.cpp what else should i be checking to get the pointcloud data published ? Thanks. |
Maybe you could redownload our lsd_slam package. |
Can, using /image_raw instead of /image_rect (in the absence of messages in /ardrone/front/camera_info) be the reason for /pointcloud not publishing? How to start getting messages in /ardrone/front/camera_info so that /image_proc could publish messages, /ardrone/front/image_rect and /ardrone/front/image_mono topics? |
Yes you can use image_raw for a test but the resulting cloudpoints are bad. |
I redownloaded the lsd_slam package. But when I use image_raw, But in both the cases, /viewer was not publishing /pointclouds. @axelfar - No, I have not calibrated my camera with 'camera_calibration'. Could that be the reason why debug window appears so while using image_rect and point cloud not being published? |
@boonflies Yes you need to calibrate your camera to create your calibration file in ~/.ros/camera_info/ I resume:
In my case i have this result -> Left : image_raw Right : image_rect |
@axelfar thanks, Now, the debug window looks fine, and the ros node too, but only concern now is, the /viewer is not publishing messages in /pointcloud topic (though i have the updated lsd_slam_viewer made available in this repository) rosrun lsd_slam_core live_slam image:=/ardrone/front/image_rect camera_info:=/ardrone/front/camera_info |
@axelfar, thanks. My keyframedisplay.cpp looks the same. I wondered, if there was some discrepancy in build, so I cleared the workspace, and with keeping only the hypharos related files, I tried to build, then I receive this error during build, I gave 'catkin_make' once again, now the error was changed to, [ 32%] Building CXX object hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_viewer/CMakeFiles/viewer.dir/src/PointCloudViewer.o I gave catkin_make once more, this time, it just threw a warning, but at the end of catkin_make, i received "[100%] Built target ardrone_driver" Have the modules been built correctly? |
Yes I have the same errors when I clean and re-build catkin workspace. |
Thanks, after the cleanup and reinstall, now I am able to see the pointcloud being published and the octomap when i select motion planning in RViz. Should we make any specific changes in octomap.launch file or RVIz? for, I see the quadrotor move through the octomap while creating the map? |
I discover that you don't need to launch octomap.launch to see the map in rviz. For me the Quadrotor move in RVIZ, you have the shadow and some axis. |
Quadrotor plans and execute in rviz but the real drone does not move accordingly.
How do we make the real quadrotor to follow the computed path? |
Hello~~~ you should do path planning in RVIZ before you press 's' in ardrone_controller. |
Sometime your octomap generation is tiny because you have a bad conversion with conversion.cpp. I have the same problem. |
@kungfrank if I don't press s in contoller before pressing plan in Rviz, the following is printed in controller terminal, Though in both cases the drone does not move. I was earlier using the joystick mode in tum ardrone to map, and could that be a reason that the drone does not move? Because even switching to autopilot manually does not work after the mapping process using joystick. Should planning be done only when the drone is in hovering mode or can it be done even in landed mode? |
@boonflies You should press 'p' in controller terminal after path planning in Moveit and press 's' when drone is already takeoff. After you press 's', controller will generate waypoint for tum_ardrone (check tum_ardrone in autopilot mode). |
@kungfrank hi , wan to ask why am i getting a inverted map from lsd slam? is it the calib file parameters problem? Besides , i have change the value of ardrone_front.yaml and video.h to value 640 x 352 , but still not change the value , tats why i hv to use the calib file |
Hey @zackerwong5505 ! Glad there is someone keeping this thread alive, Im struggeling with this now myself.
I think lsd slam viewer is a bit weird like that. The medium artcile made by hypha-ros explains that lsd-slam has an inverted z-axis, but what is important is that it should be fixed in the move-it world. Check if it is okey there, nothing else should matter. Just flip the lsd-slam viewer if you need to use it. |
hi @haakonelf |
Hello @zackerwong5505 , thank you for using this repo. The reason why your map in MoveIt is so small is due to Recursive Least Square algorithm in "Conversion" node haven't converge yet.
you should fly Ardrone around (up, down, left, right, forward, backward, and slight rotation) until dq and dx values converge completely (with steady values) before you press "l" and "p" to publish point cloud to MoveIt. |
@kungfrank after dq and dx converge completely , i still can unlock it with "r" to explore more map right? and dunno why i still having a inverted map even in rviz Reali sry for my stupidity, but i reali nid your help |
Did you figure it out? And do you know why you cant move the drone upwards? |
i thk is my camera calib problem , after i use reimsize there is no problem for my map , wan to ask when following the path , drone able to move to the goal? because my drone keep moving to somewhere which is not my goal.. |
Thanks, after the fix in issue #1, i was able to move ahead till I got to this place.
After launching the lsd_slam,I moved the ardrone till I received, "least-square successful".
Then, on pressing 'i' in Point cloud viewer, it returned a output in command window as,
resetted animation list!
made animation with 0 keyframes, spanning 0.000000 s!
Then on pressing, 'p' in point cloud viewer, returned an output in command window as,
Flushing Pointcloud to /home/dyana/ros/catkin_ws/src/lsd_slam/lsd_slam_viewer/pc_tmp.ply!
Done Flushing Pointcloud with 0 points!
I moved the ardrone a little bit more and then made the same attempt to publish point cloud
On pressing 'i' in Point cloud viewer, returned a output in command window as,
"made animation with 0 keyframes, spanning 0.000000 s!"
Then on pressing, 'p' in point cloud viewer, returned an output in command window as,
Flushing Pointcloud to /home/dyana/ros/catkin_ws/src/lsd_slam/lsd_slam_viewer/pc_tmp.ply!
Done flushing frame 980 (12321 points)!
Done flushing frame 1105 (10092 points)!
Done Flushing Pointcloud with 22413 points!
Then on launching,
$ roslaunch ar_drone_moveit demo.launch
I could not see any octomap. I tried to echo the point cloud as,
$ rostopic echo pointcloud2_scaled
but there was no output. Is there any other step to publish the point cloud in 'pc_tmp.ply'
I selected the motion planning plugin, and selected a start & goal and planned a path.
Then launched the ardrone controller,
$ rosrun hypharos_ardrone ardrone_controller
but I saw no motion of ardrone, even after pressing p and then s to let ardrone follow the path
How do I get the point cloud, the octomap and get the ardrone follow the computed path?
The text was updated successfully, but these errors were encountered: