Skip to content
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

How to programmatically set goal point for drone #12

Closed
jcyriac2 opened this issue Nov 22, 2020 · 2 comments
Closed

How to programmatically set goal point for drone #12

jcyriac2 opened this issue Nov 22, 2020 · 2 comments

Comments

@jcyriac2
Copy link

Hi, great work on this novel planner! I was wondering whether if there is a way to easily set the goal point for the planner without having to click a point in Rviz? I wanted to perform some repeatable experiments with a constant goal point. Will publishing on the /SQ01s/goal topic do the trick or is there a way to do this in the existing code base that I am unaware of?

Thanks!

@jtorde
Copy link
Collaborator

jtorde commented Nov 23, 2020

Hi @jcyriac2!

To set the (terminal) goal for the planner, you need to publish to the topic /move_base_simple/goal. Here is one example that you can use from the terminal:

rostopic pub /move_base_simple/goal geometry_msgs/PoseStamped '{header: {stamp: now, frame_id: "map"}, pose: {position: {x: 10.0, y: 0.0, z: 0.0}, orientation: {w: 1.0}}}'

You can also publish this easily from C++ or Python

Hope this helps!

@jcyriac2
Copy link
Author

Yes, this is perfect! Thank you @jtorde

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants