Posts
All the articles I've posted.
将 RoadRunner 地图导入 CARLA
前提条件 已经在本地通过源码编译好了 CARLA,参考: Building CARLA in Windows with UE4 已经在本地安装 RoadRunner 并创建好了地图 导出地图 使用 CARLA 选项导出场景: 在主工具栏中,选择 File -> Export -> CARLA Filmbox (.fbx, .xodr, .rrdata.xml) 选择要导出文件的目录,然后单击 Export 。这将生成 <mapName>.fbx 包括 <mapName>.xodr 文件在内的各种文件。 生成 CARLA 地图 进入 D:\CarlaUE4\Import 目录,创建文件夹,例如: Map01 进入 D:\CarlaUE4\Import\Map01 目录,创建存放地图资源的文件夹,例如:
Updated:Angular Custom Slots
Option One (Directive) item.directive.ts import { Input , Directive , TemplateRef , EmbeddedViewRef , ViewContainerRef , } from '@angular/core' ; @ Directive ({ selector : '[ListItem]' , }) export class ListItem { private _context : any ; private _viewRef : EmbeddedViewRef < any >; constructor ( private viewContainer : ViewContainerRef , public templateRef : TemplateRef < any > ) { this . _viewRef = this . viewContainer . createEmbeddedView ( templateRef ); } @ Input ()
Updated:Potree - Get all points in pointcloud
Background When using potree( potree-core ) to load a large point cloud dataset, it involves the scenario of obtaining all point cloud data for processing, so this method is in place. Core Code function getPoints () { const position = new Float32Array ( MAX_POINTS * 3 ); const intensity = new Float32Array ( MAX_POINTS ); const matrixCache = new Map < PointCloudOctree , THREE . Matrix4 >(); this . pointClouds . forEach (( pointCloud ) => { matrixCache . set ( pointCloud , pointCloud .
记录一次微前端实践
技术选型 微前端框架:qiankun、single-spa-angular 主应用:angular 16 子应用:angular 16 项目搭建 主应用配置 安装 qiankun 增加子应用加载入口组件 micro-app.component.ts import { Component , ElementRef , OnInit } from '@angular/core' ; import { ActivatedRoute } from '@angular/router' ; import { MicroApp , loadMicroApp } from 'qiankun' ; @ Component ({ selector : 'micro-app' , template : ` <div id="haydnSccMicroApp"></div> ` , })
git submodule
添加 git submodule add <url> <path> url:子模块仓库地址 path:本地存放路径 初始化 git submodule update --init --recursive 或者 git submodule init git submodule update 更新 cd <path> git pull origin <branch> 删除 删除submodule缓存 git rm --cached <path> 删除submodule目录 rm -rf <path> 删除文件 .gitmodules 中对应子模块内容 删除 .git/modules 对应子模块目录 rm -rf .git/modules/<path> 删除 .
Updated: