-
Notifications
You must be signed in to change notification settings - Fork 1
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
Using GoToGps instead of GoTo as motion behavior #4
Comments
Hi @Cristian-wp, The service is called You can follow these steps:
Just to check if all works without behavior tree |
Hi Rafael, this is the output of your suggested steps:
Service manually called:
and it stay stuck there... 2) This is my rqt_tf_tree and looks ok for what I can see: 3) I have already done the mission_gps using the same coordinates(since the default ones are to far away) and it works without any problem. Looking in the code I have found that the service geopath_to_path is called inside GpsToCartesian Action . |
Hi @Cristian-wp, You can call the service This will return the GPS origin. It seems to be working, as the TF tree looks good, with The issue you are encountering is that the behavior tree is trying to perform the conversion by calling the service You can open an issue directly on Aerostack2 regarding this. I believe @pariaspe could assist you with using the behavior tree with GPS coordinates. |
@RPS98 I had try with your command and set origin works:
|
Hi, I am trying to modify your square.xml example using GoToGps Action instead of GoTo Action.
This is how I modify the tree:
From PX4 simulation I have no errors or warning, but after the drone perform TakeOff Action, the tree stops to work because it can not find GotToGps service (as I understand). I had try to figure out how to start that service, but I can not find the way.
This is my modified aerostack2.yaml:
This files are the logs:
takeoff_behavior_node_85006_1728468248411.log
as2_behavior_tree_node_84985_1728468248099.log
go_to_behavior_node_85001_1728468248399.log
This is the behavior TMUX TOP window when I launch the mission:
This is the behavior TMUX BOTTOM window when I launch the mission:
This is my service list, and
/drone0/geopath_to_path
call in go_to_gps_action.cpp is present:I have modify the output of ROSINFO to check were the service problem comes out, and is in this [line]:(https://github.com/aerostack2/aerostack2/blob/15333f4b343844f7847365da5caa30972236b0ed/as2_behavior_tree/plugins/action/go_to_gps_action.cpp#L71), it can not find the service and can not even print the name...
Plus I have not understand if this implementation of "set origin" is correct:
SetOrigin Action is mandatory only when you need to specify some custom coordinates or is needed when you want to use GoToGps Action?
I ask this because in basic_robotic_function TMUX window I see this output before
and after the action are performed:
The text was updated successfully, but these errors were encountered: