Author Topic: YDLIDAR TG15  (Read 2805 times)

0 Members and 1 Guest are viewing this topic.

Offline Luka_b7Topic starter

  • Newbie
  • Posts: 1
  • Country: hr
YDLIDAR TG15
« on: March 20, 2021, 11:05:45 am »
Hi,

i work on one project where i'm using YDLIDAR TG15. I want to make self driving robot car using LIDAR, but without ROS and SLAM. Almost everything i found on internet was with ROS, but i have no time to learn ROS from 0 and i want to do something just with LIDAR, raspberry pi 3 B+ and Arduino Due. I have some issues because i dont know how to process LIDAR's data. So, i have scan and all data's from LIDAR but i dont know how to use them with obstacle avoidance algorithm. Do i need map or i can do it without map? I am using Python 3 for programmming and i have RT RRT* algorithm, but i generate obstacles with pygame. I am not sure if i can use this algorithm also with LIDAR. If do, how can i then use data from LIDAR to implement them with this code? I am sharing with you one part of code in Python where i generate obstacles with pygame.

def makeobs(self):
    obs = []

    for i in range (0, self.obsNum):
         rectang=None                   
         startgoalcol = True           
         while startgoalcol:
            upper = self.makeRandomRect()
            rectang = pygame.Rect(upper, (self.obsDim, self.obsDim))
            if rectang.collidepoint(self.start) or rectang.collidepoint(self.goal):
                startgoalcol = True       
            else:
                startgoalcol = False
            obs.append(rectang)
         self.obstacles = obs.copy()
     return obs


 

Offline DiTBho

  • Super Contributor
  • ***
  • Posts: 4247
  • Country: gb
Re: YDLIDAR TG15
« Reply #1 on: March 20, 2021, 01:26:46 pm »
what is "RT RRT* algorithm" ?
The opposite of courage is not cowardice, it is conformity. Even a dead fish can go with the flow
 

Offline DiTBho

  • Super Contributor
  • ***
  • Posts: 4247
  • Country: gb
Re: YDLIDAR TG15
« Reply #2 on: March 20, 2021, 01:28:47 pm »
Umm, this must be you. I will look and follow that topic.
The opposite of courage is not cowardice, it is conformity. Even a dead fish can go with the flow
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf