ATL布幔之下的秘密(1)

ads传统功放设计笔记(3) 传统功放设计的流程一般包括以下这些步骤: 1、明确设计目标 2、选择功放管子 3、确定静态工作点 4、设计偏置电路 5、判断稳定性 6、负载与源牵引 7、输入输出阻抗匹配 8、原理图优化 9、大信号仿真 10、版图设计 11、版图联合仿真 12、pcb设计 第二节我们设计仿真了功放的原理图。之后我们需要对版图进行设计和仿真。 10、版图设计 首先将S参数控件都打叉,还要去掉电源、源负载阻抗、地、芯片、电容。在原先电容和芯片的位置加上gap,设置好长度和间隔。之后在电源引脚、输入输出引脚和隔离的两端加上端口。 阅读详情

原作者:Zeeshan Amjad
原文链接:http://www.codeproject.com/atl/atl_underthehood_.asp

介绍
  在本系列的教程中,我要讨论一些ATL的内部工作方式以及它所使用的技术。

  在讨论的开始,让我们先看看一个程序的内存分布。首先,编写一个简单的程序,它没有任何的数据成员,你可以看看它的内存结构。
程序1.
#include <iostream>
using namespace std;

class Class {
};

int main() {
  Class objClass;
  cout << "Size of object is = " << sizeof(objClass) << endl;
  cout << "Address of object is = " << &objClass << endl;
  return 0;
}
  这个程序的输出为:
Size of object is = 1
Address of object is = 0012FF7C

  现在,如果我们向类中添加一些数据成员,那么这个类的大小就会是各个成员的大小之和。对于模板,也依然是这样:
程序2.
#include <iostream>
using namespace std;

template <typename T>
class CPoint {
public:
  T m_x;
  T m_y;
};

int main() {
  CPoint<int> objPoint;
  cout << "Size of object is = " << sizeof(objPoint) << endl;
  cout << "Address of object is = " << &objPoint << endl;
  return 0;
}
  现在程序的输出为:
Size of object is = 8
Address of object is = 0012FF78

  那么,再向程序中添加继承。现在我们使Point3D类继承自Point类,然后来看看程序的内存结构:
程序3.
#include <iostream>
using namespace std;

template <typename T>
class CPoint {
public:
  T m_x;
  T m_y;
};

template <typename T>
class CPoint3D : public CPoint<T> {
public:
  T m_z;
};

int main() {
  CPoint<int> objPoint;
  cout << "Size of object Point is = " << sizeof(objPoint) << endl;
  cout << "Address of object Point is = " << &objPoint << endl;

  CPoint3D<int> objPoint3D;
  cout << "Size of object Point3D is = " << sizeof(objPoint3D) << endl;
  cout << "Address of object Point3D is = " << &objPoint3D << endl;

  return 0;
}
  程序的输出为:
Size of object Point is = 8
Address of object Point is = 0012FF78
Size of object Point3D is = 12
Address of object Point3D is = 0012FF6C

  这一程序演示了派生类的内存结构,它表明派生类的对象所占据的内存为它本身的数据成员和它基类的成员之和。
  当虚函数加入到这个派对中的时候,一切就变得都有意思了。请看下面的程序:
程序4.
#include <iostream>
using namespace std;

class Class {
public:
  virtual void fun() { cout << "Class::fun" << endl; }
};

int main() {
  Class objClass;
  cout << "Size of Class = " << sizeof(objClass) << endl;
  cout << "Address of Class = " << &objClass << endl;
  return 0;
}
  程序的输出为:
Size of Class = 4
Address of Class = 0012FF7C
  并且,在我们添加了多于一个的虚函数之后,会变得更加有趣:
程序5.
#include <iostream>
using namespace std;

class Class {
public:
  virtual void fun1() { cout << "Class::fun1" << endl; }
  virtual void fun2() { cout << "Class::fun2" << endl; }
  virtual void fun3() { cout << "Class::fun3" << endl; }
};

int main() {
  Class objClass;
  cout << "Size of Class = " << sizeof(objClass) << endl;
  cout << "Address of Class = " << &objClass << endl;
  return 0;
}

  这个程序的输出和前一个程序一模一样,让我们再做一个实验来更好地弄懂这件事吧。
程序6.
#include <iostream>
using namespace std;

class CPoint {
public:
  int m_ix;
  int m_iy;
  virtual ~CPoint() { } // 译注:原文此处有分号,我将其去掉,下皆同
};

int main() {
CPoint objPoint;
cout << "Size of Class = " << sizeof(objPoint) << endl;
cout << "Address of Class = " << &objPoint << endl;
return 0;
}
  程序的输出为:
Size of Class = 12
Address of Class = 0012FF68

  这些程序的输出表明,当你向类中添加了虚函数之后,那么它的尺寸就会增加一个int的大小。在Visual C++中也就是增加4个字节。这就意味着这个类中有三个整数大小的位置,一个是x,一个是y,另一个是处理虚函数之用的虚函数表指针。首先,让我们来看看这个新的位置,也就是这个位于对象首部(或末尾)的虚函数表指针。要这么做的话,我们需要直接存取对象所占用的内存。我们可以使用神奇的指针技术,即用一个指向int的指针来存储一个对象的地址。
程序7.
#include <iostream>
using namespace std;

class CPoint {
public:
  int m_ix;
  int m_iy;
  CPoint(const int p_ix = 0, const int p_iy = 0) :
    m_ix(p_ix), m_iy(p_iy) {
  }
  int getX() const {
    return m_ix;
  }
  int getY() const {
    return m_iy;
  }
  virtual ~CPoint() { }
};

int main() {
  CPoint objPoint(5, 10);

  int* pInt = (int*)&objPoint;
  *(pInt+0) = 100; // 企图改变x的值
  *(pInt+1) = 200; // 企图改变y的值

  cout << "X = " << objPoint.getX() << endl;
  cout << "Y = " << objPoint.getY() << endl;

  return 0;
}
这个程序中最重要的东西是:
  int* pInt = (int*)&objPoint;
  *(pInt+0) = 100; // 企图改变x的值
  *(pInt+1) = 200; // 企图改变y的值
  其中,我们在把对象的地址存入一个整型指针之后,就可以把这个对象看作一个整型的指针了。程序的输出为:
X = 200
Y = 10
  当然,这并不是我们想要的结果,它表明200存储在了m_ix数据成员的位置。这就意味着m_ix,也就是第一个成员变量,是起始于内存中第二个位置的,而不是第一个。换句话说,第一个成员是虚函数表指针,其它的才是对象的数据成员。那么,只需要修改以下的两行:
  int* pInt = (int*)&objPoint;
  *(pInt+1) = 100; // 企图改变x的值
  *(pInt+2) = 200; // 企图改变y的值
  这样我们就会获得想要的结果了,以下为完整程序:
程序8.
#include <iostream>
using namespace std;

class CPoint {
public:
  int m_ix;
  int m_iy;
  CPoint(const int p_ix = 0, const int p_iy = 0) :
    m_ix(p_ix), m_iy(p_iy) {
  }
  int getX() const {
    return m_ix;
  }
  int getY() const {
    return m_iy;
  }
  virtual ~CPoint() { }
};

int main() {
  CPoint objPoint(5, 10);

  int* pInt = (int*)&objPoint;
  *(pInt+1) = 100; // 企图改变x的值
  *(pInt+2) = 200; // 企图改变y的值

  cout << "X = " << objPoint.getX() << endl;
  cout << "Y = " << objPoint.getY() << endl;

  return 0;
}
  并且,程序的输出为:
X = 100
Y = 200
  下图清楚地示范了当我们向类中添加了虚函数之后,虚函数表指针就会被添加在内存结构中的第一个位置。

  现在问题出现了:虚函数表指针中到底存储了什么?那么看看下面的程序:
程序9.
#include <iostream>
using namespace std;

class Class {
  virtual void fun() { cout << "Class::fun" << endl; }
};

int main() {
  Class objClass;

  cout << "Address of virtual pointer " << (int*)(&objClass+0) << endl;
  cout << "Value at virtual pointer " << (int*)*(int*)(&objClass+0) << endl;
  return 0;
}
  程序的输出为:
Address of virtual pointer 0012FF7C
Value at virtual pointer 0046C060

  虚函表数指针存储了一个虚函数表的地址。并且,虚函数表存储了类中所有虚函数的地址。换句话说,虚函数表是一个数组,这个数组的元素为虚函数指针的地址。让我们看看下面这个程序来考虑吧。
程序10.
#include <iostream>
using namespace std;

class Class {
  virtual void fun() { cout << "Class::fun" << endl; }
};

typedef void (*Fun)(void);

int main() {
  Class objClass;

  cout << "Address of virtual pointer " << (int*)(&objClass+0) << endl;
  cout << "Value at virtual pointer i.e. Address of virtual table "
     << (int*)*(int*)(&objClass+0) << endl;
  cout << "Value at first entry of virtual table "
     << (int*)*(int*)*(int*)(&objClass+0) << endl;
  cout << endl << "Executing virtual function" << endl << endl;
  Fun pFun = (Fun)*(int*)*(int*)(&objClass+0);
  pFun();
  return 0;
}

  这个程序中有一些使用了类型转换的间接调用,其中最重要的一行是:
  Fun pFun = (Fun)*(int*)*(int*)(&objClass+0);
  在这里,Fun为一个由typedef定义的函数指针类型:
  typedef void (*Fun)(void);
  让我们来剖析一下这个冗长的间接调用。(int*)(&objClass+0)给出了虚函数表指针的地址,这个虚函数表指针是类的第一个入口,我们将它转换为了int*。要获得这个地址的值,我们需要使用间接调用运算符(也就是*),然后将它再次转换为int*,也就是(int*)*(int*)(&objClass+0)。这就会给出虚函数表的第一个入口。要获得这个位置的值,也就是获得类中第一个虚函数的地址,我们需要再次使用间接调用运算符,并将其转换为合适的函数指针类型,所以
  Fun pFun = (Fun)*(int*)*(int*)(&objClass+0);
就表示从虚函数表的第一个入口获得值,作Fun的类型转换,并将其存入pFun之中。

  那么,当类中含有多于一个的虚函数,又会怎么样呢?现在我们希望存取虚函数表中的第二个虚函数,请看下面的程序:
程序11.
#include <iostream>
using namespace std;

class Class {
  virtual void f() { cout << "Class::f" << endl; }
  virtual void g() { cout << "Class::g" << endl; }
};

int main() {
  Class objClass;

  cout << "Address of virtual pointer " << (int*)(&objClass+0) << endl;
  cout << "Value at virtual pointer i.e. Address of virtual table "
    << (int*)*(int*)(&objClass+0) << endl;

  cout << endl << "Information about VTable" << endl << endl;
  cout << "Value at 1st entry of VTable "
    << (int*)*((int*)*(int*)(&objClass+0)+0) << endl;
  cout << "Value at 2nd entry of VTable "
    << (int*)*((int*)*(int*)(&objClass+0)+1) << endl;

  return 0;
}
  程序的输出为:
Address of virtual pointer 0012FF7C
Value at virtual pointer i.e. Address of virtual table 0046C0EC

Information about VTable

Value at 1st entry of VTable 0040100A
Value at 2nd entry of VTable 0040129E


  那么,有一个问题很自然地出现了——编译器是如何知道虚函数表的长度的呢?答案是:虚函数表的最后一个入口为NULL。你可以把程序改一改来考虑这个问题。
程序12.
#include <iostream>
using namespace std;

class Class {
  virtual void f() { cout << "Class::f" << endl; }
  virtual void g() { cout << "Class::g" << endl; }
};

int main() {
  Class objClass;

  cout << "Address of virtual pointer " << (int*)(&objClass+0) << endl;
  cout << "Value at virtual pointer i.e. Address of virtual table "
     << (int*)*(int*)(&objClass+0) << endl;

  cout << endl << "Information about VTable" << endl << endl;
  cout << "Value at 1st entry of VTable "
     << (int*)*((int*)*(int*)(&objClass+0)+0) << endl;
  cout << "Value at 2nd entry of VTable "
     << (int*)*((int*)*(int*)(&objClass+0)+1) << endl;
  cout << "Value at 3rd entry of VTable "
     << (int*)*((int*)*(int*)(&objClass+0)+2) << endl;
  cout << "Value at 4th entry of VTable "
     << (int*)*((int*)*(int*)(&objClass+0)+3) << endl;

  return 0;
}
  程序的输出为:
Address of virtual pointer 0012FF7C
Value at virtual pointer i.e. Address of virtual table 0046C134

Information about VTable

Value at 1st entry of VTable 0040100A
Value at 2nd entry of VTable 0040129E
Value at 3rd entry of VTable 00000000
Value at 4th entry of VTable 73616C43

  这个程序的输出示范了虚函数表的最后一个入口为NULL。就让我们来用已有的知识来调用虚函数吧:

程序13.
#include <iostream>
using namespace std;

class Class {
  virtual void f() { cout << "Class::f" << endl; }
  virtual void g() { cout << "Class::g" << endl; }
};

typedef void(*Fun)(void);

int main() {
  Class objClass;

  Fun pFun = NULL;

  // 调用第一个虚函数
  pFun = (Fun)*((int*)*(int*)(&objClass+0)+0);
  pFun();

  // 调用第二个虚函数
  pFun = (Fun)*((int*)*(int*)(&objClass+0)+1);
  pFun();

  return 0;
}
  程序的输出为:
Class::f
Class::g

  现在我们来看看多重继承的情况。先看一个多重继承最简单的情况:
程序14.
#include <iostream>
using namespace std;

class Base1 {
public:
  virtual void f() { }
};

class Base2 {
public:
  virtual void f() { }
};

class Base3 {
public:
  virtual void f() { }
};

class Drive : public Base1, public Base2, public Base3 {
};

int main() {
  Drive objDrive;
  cout << "Size is = " << sizeof(objDrive) << endl;
  return 0;
}
  程序的输出为:
Size is = 12

  这个程序示范了当你从多个基类继承一个类的时候,这个派生类就会拥有所有基类的虚函数表指针。

  那么,当派生类也有虚函数表指针的时候会发生什么事情呢?让我们看看下面的程序来弄懂关于带有虚函数的多重继承的概念吧。
程序15.
#include <iostream>
using namespace std;

class Base1 {
  virtual void f() { cout << "Base1::f" << endl; }
  virtual void g() { cout << "Base1::g" << endl; }
};

class Base2 {
  virtual void f() { cout << "Base2::f" << endl; }
  virtual void g() { cout << "Base2::g" << endl; }
};

class Base3 {
  virtual void f() { cout << "Base3::f" << endl; }
  virtual void g() { cout << "Base3::g" << endl; }
};

class Drive : public Base1, public Base2, public Base3 {
public:
  virtual void fd() { cout << "Drive::fd" << endl; }
  virtual void gd() { cout << "Drive::gd" << endl; }
};

typedef void(*Fun)(void);

int main() {
  Drive objDrive;

  Fun pFun = NULL;

  // 调用Base1的第一个虚函数
  pFun = (Fun)*((int*)*(int*)((int*)&objDrive+0)+0);
  pFun();

  // 调用Base1的第二个虚函数
  pFun = (Fun)*((int*)*(int*)((int*)&objDrive+0)+1);
  pFun();

  // 调用Base2的第一个虚函数
  pFun = (Fun)*((int*)*(int*)((int*)&objDrive+1)+0);
  pFun();

  // 调用Base2的第二个虚函数
  pFun = (Fun)*((int*)*(int*)((int*)&objDrive+1)+1);
  pFun();

  // 调用Base3的第一个虚函数
  pFun = (Fun)*((int*)*(int*)((int*)&objDrive+2)+0);
  pFun();

  // 调用Base3的第二个虚函数
  pFun = (Fun)*((int*)*(int*)((int*)&objDrive+2)+1);
  pFun();

  // 调用派生类的第一个虚函数
  pFun = (Fun)*((int*)*(int*)((int*)&objDrive+0)+2);
  pFun();

  // 调用派生类的第二个虚函数
  pFun = (Fun)*((int*)*(int*)((int*)&objDrive+0)+3);
  pFun();

  return 0;
}
  程序的输出为:
Base1::f
Base1::g
Base2::f
Base2::f
Base3::f
Base3::f
Drive::fd
Drive::gd

  这个程序示范了派生类的虚函数是存储在第一个虚函数表中的。

  我们可以通过使用static_cast获得派生类虚函数表指针的偏移量,请看以下程序:
程序16.
#include <iostream>
using namespace std;

class Base1 {
public:
  virtual void f() { }
};

class Base2 {
public:
  virtual void f() { }
};

class Base3 {
public:
  virtual void f() { }
};

class Drive : public Base1, public Base2, public Base3 {
};

// 任意的非0值,因为0乘任何数都得0
#define SOME_VALUE 1

int main() {
  cout << (DWORD)static_cast<Base1*>((Drive*)SOME_VALUE)-SOME_VALUE << endl;
  cout << (DWORD)static_cast<Base2*>((Drive*)SOME_VALUE)-SOME_VALUE << endl;
  cout << (DWORD)static_cast<Base3*>((Drive*)SOME_VALUE)-SOME_VALUE << endl;
  return 0;
}

  ATL使用了一个定义在ATLDEF.H中的宏offsetofclass来做这件事,这个宏被定义为:
#define offsetofclass(base, derived) /
       ((DWORD)(static_cast<base*>((derived*)_ATL_PACKING))-_ATL_PACKING)
  这个宏返回了在派生类对象模型中基类虚函数表指针的偏移量,让我们来看看下面这个例子:
程序17.
#include <windows.h>
#include <iostream>
using namespace std;

class Base1 {
public:
  virtual void f() { }
};

class Base2 {
public:
  virtual void f() { }
};

class Base3 {
public:
  virtual void f() { }
};

class Drive : public Base1, public Base2, public Base3 {
};

#define _ATL_PACKING 8

#define offsetofclass(base, derived) /
  ((DWORD)(static_cast<base*>((derived*)_ATL_PACKING))-_ATL_PACKING)

int main() {
  cout << offsetofclass(Base1, Drive) << endl;
  cout << offsetofclass(Base2, Drive) << endl;
  cout << offsetofclass(Base3, Drive) << endl;
  return 0;
}
  派生类的内存布局为:


  程序的输出为:
0
4
8

  这个程序的输出示范了这个宏返回指定基类的虚函数表指针偏移量。在Don Box的《COM本质论》中,它使用了一个简单的的宏,你可以修改这个程序,用Box的宏替换ATL的宏。
程序18.
#include <windows.h>
#include <iostream>
using namespace std;

class Base1 {
public:
  virtual void f() { }
};

class Base2 {
public:
  virtual void f() { }
};

class Base3 {
public:
  virtual void f() { }
};

class Drive : public Base1, public Base2, public Base3 {
};

#define BASE_OFFSET(ClassName, BaseName) /
  (DWORD(static_cast<BaseName*>(reinterpret_cast<ClassName*>/
  (0x10000000))) - 0x10000000)

int main() {
  cout << BASE_OFFSET(Drive, Base1) << endl;
  cout << BASE_OFFSET(Drive, Base2) << endl;
  cout << BASE_OFFSET(Drive, Base3) << endl;
  return 0;
}

  这一程序的目的和输出与前一个程序完全相同。
  现在让我们用这个宏来做些特别的东西,事实上我们可以通过获得派生类内存结构中基类虚函数表指针的偏移量的方法来调用指定基类中的虚函数。
程序19.
#include <windows.h>
#include <iostream>
using namespace std;

class Base1 {
public:
  virtual void f() { cout << "Base1::f()" << endl; }
};

class Base2 {
public:
  virtual void f() { cout << "Base2::f()" << endl; }
};

class Base3 {
public:
  virtual void f() { cout << "Base3::f()" << endl; }
};

class Drive : public Base1, public Base2, public Base3 {
};

#define _ATL_PACKING 8

#define offsetofclass(base, derived) /
  ((DWORD)(static_cast<base*>((derived*)_ATL_PACKING))-_ATL_PACKING)

int main() {
  Drive d;

  void* pVoid = NULL;

  // 调用Base1的函数
  pVoid = (char*)&d + offsetofclass(Base1, Drive);
  ((Base1*)(pVoid))->f();

  // 调用Base2的函数
  pVoid = (char*)&d + offsetofclass(Base2, Drive);
  ((Base2*)(pVoid))->f();

  // 调用Base3的函数(译注:原文为Base1)
  pVoid = (char*)&d + offsetofclass(Base3, Drive);
  ((Base3*)(pVoid))->f();

  return 0;
}
  程序的输出为:
Base1::f()
Base2::f()
Base3::f()

  在本章教程中,我尝试着解释了ATL中offsetofclass宏的工作方式。我希望在下一篇文章中,继续探究ATL中其它的秘密。

BoT-SORT实战:手把手教你实现BoT-SORT训练和测试 文章目录摘要1、数据准备2、配置BoT-SORT环境2.1、获取代码2.2、创建虚拟环境2.3、安装必要的包2.3.1、安装pytorch2.3.2、安装cython2.3.3、安装Cython-bbox2.3.4、安装faiss2.3.5、安装其他的包3、训练3.1、生成REID数据集3.2、预训练模型3.2.1、ByteTrack预训练模型3.2.2、REID预训练模型3.3、开始训练4、如何更改FASTREID的BackBone?5、测试5.1、测试视频5.2、测试摄像头5.3、多类别测试 摘要 Bo 阅读详情

相关推荐

《通信工程施工与管理》

制作馈线接头必须使用专用的工具,专用工具包括:馈线切割刀、馈线安全刀、小金属丝毛刷、固定尺寸或大号活动扳手、小号扁锉刀、细齿小手锯、接头扩孔器、3M防水胶或防水接头盒;如图所示,详情如表所示。

2302_78710464的博客 1660

ATL布幔之下的秘密(5)

原作者:Zeeshan Amjad原文链接:http://www.codeproject.com/atl/atl_underthehood_5.asp点这里下载本文配套源代码介绍  很多人认为ATL只是用来编写COM组件的,其实你也可以使用ATL中的窗口类来创建基于窗口的应用程序。虽然你可以将基于MFC的程序转换为ATL,但是ATL中对于UI(译注:用户界面)组件的支持太少了。所以,这就要求你需要

马说@CSDN 2806

openEuler Embedded新增软件包及在线安装软件方法

openEuler Embedded是基于Yocto构建的嵌入式操作系统,默认不包含dnf/apt软件包管理器,主要使用rpm格式。新增软件需通过manifest文件检查是否集成,未集成则需适配新配方。对于在线安装需求,可采用轻量级容器方案:通过isulad运行openEuler服务器版容器镜像,在容器内使用dnf命令安装软件(如Nginx),实现服务器生态兼容。部署前提包括设备支持、存储空间(≥10GB)和网络连接,需先安装并启动isulad服务。这种方法结合了嵌入式系统的轻量化特性和服务器系统的软件管理

专注嵌入式开发与 Linux 系统应用实战,分享芯片驱动、设备调试、系统工具开发干货。 1231

ATL布幔之下的秘密(3)

原作者:Zeeshan Amjad原文链接:http://www.codeproject.com/atl/atl_underthehood_3.asp介绍  如果你是个模板的高手,你就可以将ATL的学习作为一种享受。在这一节中,我将要尝试解释一些ATL使用的模板技术。我不能保证你读完本节后能成为一个模板高手,只能是尽我所能让你在读完本文后能够更轻松地理解ATL的源码。程序35.#include u

马说@CSDN 2072

AXI VIP配置全指南:从报错到成功仿真的完整流程(Vivado 2023版)

本文详细解析了在Vivado 2023环境中配置AXI Verification IP(VIP)进行协议仿真的完整流程。针对常见的include和import报错问题,提供了具体的解决方案和代码示例,指导用户从IP核创建、参数化配置,到构建可工作的仿真测试平台,最终实现成功仿真。

gpt4scribbler的博客 242

银河麒麟V10系统下,手把手解决Ollama安装报错‘GLIBCXX_3.4.25 not found’

本文详细介绍了在银河麒麟V10系统下解决Ollama安装报错‘GLIBCXX_3.4.25 not found’的实战指南。通过隔离编译新版libstdc++、环境变量引导和服务化封装等安全方案,确保在不破坏系统稳定性的前提下顺利运行Ollama,适用于国产操作系统与AI工具的兼容性需求。

weixin_42556197的博客 489

ATL布幔之下的秘密(2)

作者:Zeeshan Amjad译者:李马 (home.nuc.edu.cn/~titilima ) 原文出处: http://www.codeproject.com/atl/atl_underthehood_2.asp 介绍    在本系列的教程中,我要讨论一些ATL的内部工作方式以及它所使用的技术,这是本系列的第二篇文章。    现在让我们来探究一些虚函数背后更加有趣的资料。为了和上文保持

蜗牛档案室 1448

MUJOCO+AUBO机械臂+强化学习+路径规划

最近在学习机械臂强化学习路径规划,参考了知乎教程。由于原教程较老(使用stable baselines3+panda-gym),新版本变化了,我略做调整,记录写在。上面这个教程用的是官方,环境封装较死(类似),最终基于重新开发。代码已开源至github:https://github.com/YellowThree-HS/mujoco-Aubo-RL-PathPlanning。

qq_63308550的博客 2051

ATL布幔下的秘密之窗口类的秘密

介绍   很多人认为ATL只是用来编写COM组件的,其实你也可以使用ATL中的窗口类来创建基于窗口的应用程序。虽然你可以将基于MFC的程序转换为ATL,但是ATL中对于UI(译注:用户界面)组件的支持太少了。所以,这就要求你需要自己编写很多代码。例如,在ATL中没有文档/视图,所以在你想使用它的时候就需要自己实现了。在本篇中,我们将要探究一些关于窗口类的秘密,以及ATL技术实现的秘密。WTL(Wi

★果冻★的专栏 1515

34 python 时间和日期

介绍python里时间和日期的常用方法,以及案例,还有注意事项。

水滴爬呀爬 349

基于LSTM的股票价格预测系统,Django框架,Web的股票预测系统,训练+数据集+源码(无需安装环境版)

股票价格预测是投资领域的一个重点关注课题。由于股票价格受到诸多非线性因素的影响,得到精确的预测结果较为困难。使用 PyCharm 作为代码开发工具,通过下载好的股票金融数据,进行数据预处理,构建 LSTM 网络模型,训练模型并训练出最优模型,输出股票未来收盘价波动的走势,最后在训练好的模型上,设计股票模型应用系统,运行效率较高,对股票预测具有一定的积极意义。

在职AI算法工程师,擅长计算机视觉,YOLO目标检测、分割等,擅长web、pyqt界面可视化,好内容持续更新中,来这里跟大家一起学习,共同进步 963

ATL布幔下的秘密之模板技术

 介绍   如果你是个模板的高手,你就可以将ATL的学习作为一种享受。在这一节中,我将要尝试解释一些ATL使用的模板技术。我不能保证你读完本节后能成为一个模板高手,只能是尽我所能让你在读完本文后能够更轻松地理解ATL的源码。   程序35. #include <iostream>using namespace std;template

★果冻★的专栏 1377

2023年12月机器人技术等级考试试卷(三级理论) 试题解析

2023年12月机器人技术等级考试试卷(三级理论) 试题解析

http://www.cierobot.com 4105
上一篇: 2004.07.02,Fri - 功德圆满
下一篇: 2004.07.04,Sun - 自由的味道
李马
博客等级 码龄23年 494粉丝 291原创
评论 2
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值