• Stars
    star
    157
  • Rank 237,087 (Top 5 %)
  • Language
    Python
  • Created over 5 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Ros node to use LaneNet to detect the lane in camera

LaneNet Ros Node

This project is modified from the lanenet-lane-detection project(see: https://github.com/MaybeShewill-CV/lanenet-lane-detection)

Here I use lanenet-lane-detection project to implement a Ros node to do lane detection. Input and output parameters can be config at launch file.

Dependencies

Install the dependencies as lanenet-lane-detection metioned:

pip install -r requirements.txt

Then you need to install the ROS kinetic.

That's all.

launch the node

In you catkin workspace src dir, clone the project:

git clone https://github.com/AbangLZU/LaneNetRos.git

download the pretrained weight(trained by @MaybeShewill-CV) in: https://www.dropbox.com/sh/tnsf0lw6psszvy4/AAA81r53jpUI3wLsRW6TiPCya?dl=0

copy these checkpoints files to the foler:

cd model
mkdir tusimple_lanenet
cd tusimple_lanenet
cp -r YOU_DOWNLOAD_FILES .

build and source (in the workspace)

catkin_make
sorce devel/setup.bash

you may need to change the mode of the python script, as follow:

cd lane_detector/scripts/
sudo chmod +x lanenet_node.py

Then you can launch the lane detector node with:

roslaunch lane_detector lanenet.launch

play one of you rosbag which contains the images, I use the KITTI dataset, which can be download at: http://www.cvlibs.net/datasets/kitti/raw_data.php?type=road

Download any drive data as you want (the synced+rectified data amd calibration), use tomas789's project kitti2bag (see: https://github.com/tomas789/kitti2bag) to convert it to a rosbag.

Use the following command to play the bag:

rosbag play kitti_2011_??????????.bag

Open your RQT to visualize the output, assign the image topic as you set in the launch file, and you should get this:

See more in this video:

IMAGE ALT TEXT HERE

It's almost realtime in my GTX1070. If you think this work is useful to you, please both star this repository and the lanenet-lane-detection repository. THX!

Future works

  • Implement the Curve Fitting of the lane with a C++ node.
  • Retrain the LaneNet, improve its performance
  • TensorRT optimization

More Repositories

1

ndt_localizer

A simple, clean NDT licalization ROS package.
C++
309
star
2

VoxelNetRos

implement the VoxelNet with ROS, using Kitti data to test
Python
112
star
3

plane_fit_ground_filter

A point cloud ground filter based on ground plane fitting
C++
102
star
4

cnn_seg_lidar

Real time 3D semantic segmentation for Lidar, Ros based project
C++
85
star
5

SqueezeSeg_Ros

This is a ros package that implement the SqueezeSeg
Python
83
star
6

cam_lidar_calibration

camera-lidar calibration ros package
C++
57
star
7

EasyPointPillars

easy and simple way to train, export and deploy pointpillars for 3D detection
Python
54
star
8

ad_with_lanelet2

sample of ad system to use lanelet2 framework
C++
43
star
9

lidar_ground_filter

This is a lidar ground filter ros node
C++
28
star
10

tl_detector

train your traffic light detector with Lisa dataset and tensorflow object detection API in both GPU and Google TPU
Jupyter Notebook
11
star
11

apollo-ros

clone from apollo_ros_bridge, enable to convert the image to ros
C++
5
star
12

mapping_collection

collection of HD mapping open source tools
C++
5
star
13

dslab_ros_tutorial

a very simple ros node for dslab lesson
Makefile
4
star
14

lanenet-lane-detection-py2

Modification of the lanenet-lane-detection project for python2 execution
Python
4
star
15

can_control

A ros node for autonomous car can control
C++
3
star
16

HuskyPractice

This is a ros simple code for learning
CMake
3
star
17

utm_projector

A ros node for longlat to utm xyz projection (based on proj4)
C++
2
star
18

PointPillars-TF

PointPillars implementation using TensorFlow.
Python
2
star
19

LaneDetect

a c++ lane detector
C++
2
star
20

mindvision_usb_node

the ros node for MindVision Camera
C++
2
star
21

Highway-Path-Planner

A highway path planner based on finite state machine and spline
C++
2
star
22

UKF_Test

This is my learning code of unscented kalman filter
C++
2
star
23

NumberTranslate

this is
Python
1
star
24

cananys

C++
1
star
25

control_tool

control tools for exteriments of Kinematic model and MPC
Python
1
star
26

DSLab_Machine_learning

This is the reading materials of DSLab ML group
1
star
27

adams_cuda_learn

my learning notes about cuda programming
Cuda
1
star
28

velodyne-Apollo

velodyne ros package (Apollo supported)
C++
1
star