-
Notifications
You must be signed in to change notification settings - Fork 113
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
Connect the planner to Gazebo environment #53
Comments
The planner has also been tested with Gazebo. Just remove the in the namespace |
Thanks a lot! |
The current_reference frame is sticking at its initial position via the visualization of tf in rviz |
The tf errors you are getting hints at issues with your simulation setup. The planner does not publish any tf's. The map looks like the sensing is running correctly. To properly start the planner make sure the drone is ready to receive commands (i.e. already taken off and in hover) and that the command outputs of the planner are subscribed to by your controller. Depending on the specific controller, you may have to add a converter for the current outputs. Hope this helps! |
Great thanks, Lukas. It runs correctly now. |
On running rosservice call /planner/planner_node/toggle_running "data: true", Has anyone faced this? |
Hi @Badrivishal Is the drone staying still or rotating in place? In the first case the simulator is probably not subscribing to the command output of the planner. In the second case the starting pose is likely intraversable, i.e. there's a surface close to the drone or the clearing radius is set too low to start. Hope this helps! |
Hi, Thank you for your response @Schmluk , I am attaching some of the screenshots |
Few things to consider:
Hope this helps! |
Thanks a lot! |
@QuantumY-CHN 你好,我也尝试在gazebo复现这个代码,但遇到一些问题没法解决,你可以分享一下代码吗 |
@Chai8226 Could you please describe what the problem is? |
when I run |
@Chai8226 You might get msgs definition conflict. I cannot remember how I solved this exact. But there are a lot of issues and blogs discussed in this. e.g., |
Thank u! I keep trying |
@Badrivishal I am stuck at the same issue as you were, that is the drone is still. I tried working with your fork which includes the Controller.cpp file but the drone is still stuck. Could you help me out with this please? The terminal keeps printing
in a loop. |
Thanks a ton for such a useful project. @QuantumY-CHN I happen to be facing the same errors as you. Could you please expand on how you solved it? |
Hi @sherrypixel , Happy to hear you like the project! There can be several reasons for the drone not moving. Can you check with manually sent commands that the controller/simulation works? Depending on the environment it can also happen that the drone starts in intraversable areas from where all paths will be in collision. In that case the drone should just spin I think. Hope this helps! |
Thank you for your excellent work!
Could you please suggest how I can connect the complete planner to a gazebo simulation? Sorry, I'm new to this.
I really appreciate any help you can provide.
The text was updated successfully, but these errors were encountered: