sanchithaseshadri / pathplanningastar Goto Github PK
View Code? Open in Web Editor NEWAn implementation of a mobile robot path planner in Python and ROS
An implementation of a mobile robot path planner in Python and ROS
/usr/bin/python2.7 /home/redhwan/1/PathPlanningAstar-master/astar.py
building map....
Traceback (most recent call last):
File "/home/redhwan/1/PathPlanningAstar-master/astar.py", line 133, in
planner.plan()
File "/home/redhwan/1/PathPlanningAstar-master/astar.py", line 32, in plan
final = a_star(self.start, self.goal, self.map)
File "/home/redhwan/1/PathPlanningAstar-master/astar.py", line 86, in a_star
if not end.is_valid(grid_map):
File "/home/redhwan/1/PathPlanningAstar-master/node.py", line 65, in is_valid
goal_pixel = world_to_pixel((self.x, self.y), (608, 1280))
File "/home/redhwan/1/PathPlanningAstar-master/transformations.py", line 12, in world_to_pixel
pixel_points[0] = int(max((world_x / MAP_WIDTH) * img_w, 0))
IndexError: list assignment index out of range
map built. planner initialized
Process finished with exit code 1
It doesn't continue ,when run this program to this progress. Why??? Can you give me some help? Thanks .
Constructing path..
path:
('x:', -12.2, ' y:', 12.0)
('x:', -12.399999999999999, ' y:', 12.0)
('x:', -12.599999999999998, ' y:', 12.0)
('x:', -12.799999999999997, ' y:', 12.0)
('x:', -12.999999999999996, ' y:', 12.0)
('x:', -13.199999999999996, ' y:', 12.0)
('x:', -13.399999999999995, ' y:', 12.0)
('x:', -13.599999999999994, ' y:', 12.0)
('x:', -13.799999999999994, ' y:', 12.0)
('x:', -13.999999999999993, ' y:', 12.0)
('x:', -14.199999999999992, ' y:', 12.0)
('x:', -14.399999999999991, ' y:', 12.0)
('x:', -14.59999999999999, ' y:', 12.0)
('x:', -14.79999999999999, ' y:', 12.0)
('x:', -14.99999999999999, ' y:', 12.0)
('x:', -15.0, ' y:', 12.0)
[INFO] [1563850192.129107]: Position [-0.0, -0.0] has been achieved.
[INFO] [1563850192.129591]: Position [0.1999999999999993, -0.0] has been achieved.
Thanks a lot for the code you uploaded! Recently, I am learning the implement of A* algorithm on ROS. But the code occured an error. where is the "transformations" file or library? I need the help from you! Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.