Skip to content

Commit 0f53811

Browse files
Tairan Chenchentairan
authored andcommitted
Update FSD Algorithm 2.0
1 parent 9e220cc commit 0f53811

74 files changed

Lines changed: 4322 additions & 1 deletion

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

LICENSE

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77

88
This repository is devoted to share the autonomous code of Beijing Institute of Technology Driverless Racing Team. Some simple version code of an autonomous FS race car and some helpful tools are included.
99

10-
The use of **Ubuntu 16.04 and ROS Kinetic** is assumed everywhere on this repository.
10+
The use of **Ubuntu 18.04 and ROS Melodic** is assumed everywhere on this repository.
11+
12+
1113

1214
# Repository organisation
1315

@@ -19,6 +21,10 @@ The repository consists of `ros` and `tools`,` ros` is organised in several top
1921

2022
**planning/** - folder for planning packages
2123

24+
**control/** - folder for control packagess
25+
26+
**interface_fssim/** - folder for communicating with simulator
27+
2228
# Open source roadmap
2329

2430
Our goal is to provide a simple implementation of the competition. For ease of use, most ros node use the ros standard message type to send/recieve.
@@ -28,3 +34,8 @@ We will continue to open source our autonomous code, when this part is stable an
2834
# Dataset and training
2935

3036
Please visit this page for more details: [bitfsd/FSACOCO](https://github.com/bitfsd/FSACOCO)
37+
38+
# DarkNet ROS
39+
40+
Please visit this page for more details: [bitfsd/darknet_ros](https://github.com/bitfsd/darknet_ros)
41+
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ find_package(catkin REQUIRED COMPONENTS
1515
add_message_files( # Tell catkin which custom message files to include
1616
FILES
1717
Cone.msg
18+
ControlCommand.msg
19+
CarState.msg
20+
CarStateDt.msg
1821
Map.msg
1922
)
2023

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
std_msgs/Header header
2+
3+
geometry_msgs/Pose2D car_state # Position in x, y, theta
4+
fsd_common_msgs/CarStateDt car_state_dt # Velocities
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
std_msgs/Header header
2+
3+
geometry_msgs/Pose2D car_state_dt # Velocity in x, y, theta
4+
geometry_msgs/Pose2D car_state_a # Acceleration in x, y, theta
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
std_msgs/Header header
2+
3+
std_msgs/Float32 throttle # Throttle value between [-1, 1]
4+
std_msgs/Float32 steering_angle # Steering angle value between [-1, 1], where left < 0, right > 0
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
cmake_minimum_required(VERSION 2.8.3)
2+
project(fsd_tools)
3+
4+
add_compile_options(-std=c++11)
5+
6+
find_package(catkin REQUIRED COMPONENTS)
7+
find_package(OpenCV REQUIRED)
8+
9+
catkin_package(
10+
INCLUDE_DIRS include
11+
LIBRARIES ${PROJECT_NAME}
12+
CATKIN_DEPENDS
13+
DEPENDS
14+
)
15+
16+
include_directories(
17+
include
18+
${catkin_INCLUDE_DIRS}
19+
${Eigne_INCLUDE_DIRS}
20+
)
21+
22+
include_directories( /usr/include/eigen3 )
23+
24+
add_library(${PROJECT_NAME}
25+
src/cubic_spline.cpp)
26+
target_link_libraries(${PROJECT_NAME}
27+
${catkin_LIBRARIES} ${OpenCV_LIBS}
28+
)

0 commit comments

Comments
 (0)