Coder Social home page Coder Social logo

traffic_control's Introduction

traffic_control

根据毫米波雷达和视频融合数据,基于决策树算法,计算交叉口的相序和配时参数

traffic_control's People

Contributors

its-play avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

traffic_control's Issues

增加git clone下载速度

在链接的 github.com 后插入‘.cnpmjs.org’,其它不变。例如:

git clone https://github.com/ITS-PLAY/traffic_control.git
# 改为
git clone https://github.com.cnpmjs.org/ITS-PLAY/traffic_control.git

强制类型转换

1、C++的四种强制类型转换,所以C++不是类型安全的。
分别为:static_cast , dynamic_cast , const_cast , reinterpret_cast
2、四种转换的区别:
static_cast:可以实现C++中内置基本数据类型之间的相互转换。
const_cast: const_cast操作不能在不同的种类间转换。相反,它仅仅把一个它作用的表达式转换成常量。它可以使一个本来不是const类型的数据转换成const类型的,或者把const属性去掉。
reinterpret_cast: 有着和C风格的强制转换同样的能力。它可以转化任何内置的数据类型为其他任何的数据类型,也可以转化任何指针类型为其他的类型。它甚至可以转化内置的数据类型为指针,无须考虑类型安全或者常量的情形。不到万不得已绝对不用。
dynamic_cast: 其他三种都是编译时完成的,dynamic_cast是运行时处理的,运行时要进行类型检查。不能用于内置的基本数据类型的强制转换。dynamic_cast转换如果成功的话返回的是指向类的指针或引用,转换失败的话则会返回NULL。使用dynamic_cast进行转换的,基类中一定要有虚函数,否则编译不通过

抽象控制类

class Traffic_Control_Strategy{
public:
virtual void get_Node_Index_Info() =0;
virtual void implement_Control_function() =0;
virtual void put_Control_Delivery() = 0;
virtual void update_Node_Index_Info() = 0;
}
class node_Variable_Lane_Control : public Traffic_Control_Strategy{
virtual void get_Node_Index_Info() ;
virtual void node_Control_Strategy() ;
virtual void put_Control_Delivery() ;
virtual void update_Node_Index_Info();
}
class node_Adaptive_Control: public Traffic_Control_Strategy{
virtual void get_Node_Index_Info() ;
virtual void node_Control_Strategy() ;
virtual void put_Control_Delivery ;
virtual void update_Node_Index_Info();
}

void traffic_Control_Integration(Traffic_Control_Strategy *traffic_control){

}

chrono获取当前时间对应的秒数

通过time_point类获取时间:
1)首先指定计算的时间单位(duration)
以秒为单位时,using second_Clock_Type = time_point<system_clock, seconds>;
2)获取以duration为时间单位的当前时间
second_Clock_Type current_Time = time_point_cast(system_clock::now());
3)通过成员函数time_from_epoch获得从1970-1-1到当前时间的时间长度
current_Time.time_since_epoch().count();

git clone并在本地开发

1)通过git clone 远程地址
git clone默认会把远程仓库整个给clone下来;
但只会在本地默认创建一个master分支
如果远程还有其他的分支,此时用git branch -a查看所有分支。
2)通过git checkout -t 远程/分支名,默认会在本地建立一个和远程分支名字一样的分支

const和constexpr

C++ 11标准中,为了解决 const 关键字的双重语义问题,保留了 const 表示“只读”的语义,而将“常量”的语义划分给了新添加的 constexpr 关键字。因此 C++11 标准中,建议将 const 和 constexpr 的功能区分开,即凡是表达“只读”语义的场景都使用 const,表达“常量”语义的场景都使用 constexpr。
http://c.biancheng.net/view/7807.html

雷视融合

你好,请问能看看雷视融合的数据吗,我最近也在做这一块但是一直拿不到数据,不知道数据长啥样。。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.