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

Problem with global planning #16

Open
oycool opened this issue Mar 7, 2024 · 9 comments
Open

Problem with global planning #16

oycool opened this issue Mar 7, 2024 · 9 comments

Comments

@oycool
Copy link

oycool commented Mar 7, 2024

Hi Reinis Cimurs, first of all, thank you very much for sharing.
I have a question about this program. Does this program include local planning and global planning?

@reiniscimurs
Copy link
Owner

Global planning is executed via POI and their generation is part of this program. While heuristics exist here, they should be taken from the heuristics repo.

Local planning is executed via DRL policy that outputs an action which is used as input in the step function.

@oycool
Copy link
Author

oycool commented Mar 8, 2024

Thanks for your clear answer.
Can you guide me on how to generate the topic /move_base/TrajectoryPlannerROS/global_plan that generates the trajectory?

@reiniscimurs
Copy link
Owner

The trajectory generation is already in the code here. I think what would help better is following some move_base tutorials to understand it better. http://wiki.ros.org/move_base
I don't have much more information that i could provide that is not already in the code.

@oycool
Copy link
Author

oycool commented Mar 8, 2024

Where is this subscribed topic published?self.path = rospy.Subscriber('/move_base/TrajectoryPlannerROS/global_plan', Path, self.path_callback, queue_size=1)

@reiniscimurs
Copy link
Owner

You have to create your navigation stack and publish it:
http://wiki.ros.org/navigation/Tutorials/RobotSetup

@oycool
Copy link
Author

oycool commented Mar 15, 2024

Hi Reinis Cimurs,I have a question to ask you.
https://github.com/reiniscimurs/GDAE/blob/main/Code/GDAM_env.py#L226-L235 In these lines of code, is original_goal in the map coordinate system converted to the odom coordinate system?

@reiniscimurs
Copy link
Owner

odom and map frames drift over time so you need to update the goal position in regards to this drift in odom frame. I do not recall the details but I think you are correct that goal is updated to fit the odom frame.

@oycool
Copy link
Author

oycool commented Mar 20, 2024

https://github.com/reiniscimurs/GDAE/blob/main/Code/GDAM_env.py#L626
Hi, what points are stored in the map_nodes? Does it have anything to do with POI?

@reiniscimurs
Copy link
Owner

map_nodes store immediate positions for laser at certain distance to see how it "maps" the environment. They are not used for POI and are used for debugging.

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