- 博客(109)
- 资源 (1)
- 收藏
- 关注
原创 CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage CMake Error: CMAKE_CXX_COMPILER not set,
使用了Windows nmake相关编译命令。
2024-03-19 16:21:56 187
原创 Maven终端命令生成Spring-boot项目并输出“helloworld“
浏览器输入http://localhost:8080/hello进行查看。填写groupId和artifactId,其余默认即可。将如下内容放入pom.xml文件内。
2024-03-04 11:20:23 452
原创 C/C++编译整理
是一个分号分隔的路径列表,用来指明软件库安装路径前缀,以供find_package(),find_program(),find_library(),find_file()和find_path()命令搜索使用,这样就方便搜索可执行文件、头文件、库文件及相关配置文件等。
2023-08-22 19:35:51 254
原创 QOpenGLVertexArrayObject、QOpenGLBuffer和QOpenGLShaderProgram绘图
【代码】QOpenGLVertexArrayObject、QOpenGLBuffer和QOpenGLShaderProgram绘图。
2023-08-10 20:57:43 250
原创 着色器语言 GLSL (opengl-shader-language)入门大全
GLSL 中文手册基本类型:类型说明void空类型,即不返回任何值bool布尔类型 true,falseint带符号的整数 signed integerfloat带符号的浮点数 floating scalarvec2, vec3, vec4n维浮点数向量 n-component floating point vectorbvec2, bvec3, bvec4n维布尔向量 Boolean vectorivec2, ivec3, ivec4
2023-04-23 17:59:47 2549 1
原创 TypeError: serialize() missing 1 required positional argument: ‘buff‘
0.报错Traceback (most recent call last): File "./new.py", line 25, in <module> pub_Pxyz.publish(msg_Pxyz) File "/opt/ros/melodic/lib/python2.7/dist-packages/rospy/topics.py", line 882, in publish self.impl.publish(data) File "/opt/ros/me
2022-05-17 10:06:21 1063
原创 乐视体感三合一奥比中光Astra Pro相机彩色和深度(红外)相机标定
具体标定过程参考乐视体感三合一奥比中光Astra Pro相机彩色和深度(红外)相机标定由于在标定过程中IR图像过暗无法进行标定,故对其数据进行放大处理,相关代码如下:#!/usr/bin/env python3# -*- coding: UTF-8 -*-# ----------------------------------- ## pub topic: /camera/rgb/image_raw# sub topic: # -------------------------..
2022-05-16 17:10:02 1748
原创 Qt源码编译所需的第三方库
1. 安装flex词法分析器和bison语法分析器sudo apt-get install flexsudo apt-get install bison2. 安装gperf哈希函数生成器sudo apt-get install gperf3. 安装libxcb*sudo apt-get install libxcb*4. 安装OpenGLsudo apt-get install build-essentialsudo apt-get install libgl1-mesa-devs
2022-05-07 21:41:51 547
原创 Qt订阅ROS摄像头话题并实时显示
1. ROS摄像头#include <ros/ros.h> #include <image_transport/image_transport.h> #include <opencv2/highgui/highgui.hpp> #include <cv_bridge/cv_bridge.h> #include <sstream> // for converting the command line parameter to int
2022-05-02 15:09:14 1309
原创 Qt订阅ROS图片
main.cpp#include "mainwindow.h"#include <QApplication>#include <ros/ros.h>#include <geometry_msgs/Twist.h>#include <ros/ros.h>#include <image_transport/image_transport.h>#include <opencv2/highgui/highgui.hpp>#inc
2022-05-01 19:12:43 498
原创 使用C语言分别在Windows和Ubuntu下创建窗口
#include "windows.h"//6、处理消息(窗口过程) //CALLBACK代表__stdcall参数传递顺序 从右往左依次入栈,并且在函数返回前自动清空堆栈内容LRESULT CALLBACK WindowProc( HWND hwnd, //消息所属窗口句柄 UINT uMsg, //具体消息名称,WM_XXX WPARAM wparam, //键盘附加消息 LPARAM
2022-04-30 17:30:51 912
原创 INT 13h BIOS读取磁盘
容量:一张软盘有80个柱面、2个磁头、18个扇区柱面:0~79磁头:0~1扇区:1~18读盘的顺序:先读满扇区,扇区满后切换磁头,磁头满后切换柱面磁盘操作方式:AH=00h 复位磁盘驱动器。AH=01h 检查磁盘驱动器状态。AH=02h 读扇区。AH=03h 写扇区。AH=04h 校验扇区。AH=05h 格式化磁道。AH=08h 获取驱动器参数。AH=09h 初始化硬盘驱动器参数。AH=0Ch 寻道。AH=0Dh 复位硬盘控制器。AH=15h 获取驱动器类型。AH=1.
2022-04-07 21:50:42 789
原创 8086常见问题汇总
8086内存布局起始结束大小用途FFFF0FFFFF16 BBIOS 入口地址,此地址也属于BIOS代码,这16字节的内容是为了执行跳转指令F0000FFFEF64KB-16B系统BIOS的地址范围实际上是F000-FFFFF,上面是入口地址,所以单独列出C8000EFFFF160KB映射硬件适配器的ROM或内存映射式I/OC0000C7FFF32KB显示适配器BIOSB8000BFFFF32KB文本模式显示适配器B000
2022-03-30 08:07:24 595
原创 VirtualBox ubuntu安装及问题
1. 安装安装步骤2. 网络问题VirtualBox找不到桥接网卡问题解决3. 与主机进行文件交互VirtualBox实现文件与主机复制粘贴
2022-03-29 16:00:41 344
原创 nasm汇编和C语言函数之间参数传递
1. 前言堆栈生长方向: 高地址在栈底,底地址在栈顶参数入栈顺序: 从右到左依次入栈2. 测试案例汇编代码hello.asmextern comparesection .data enter_ch db 0x0a num1 dd 3 num2 dd 3section .textglobal _startglobal printstr_start: mov edx, [num2] push edx; second num mov e
2022-03-28 21:38:20 1455
原创 PCL代码
1. 显示CloudViewer *#include <iostream>#include <pcl/io/io.h>#include <pcl/io/pcd_io.h>#include <pcl/visualization/cloud_viewer.h>#include <sstream>using namespace std;int user_data = 0;void viewOnOff(pcl::visualizati
2022-03-17 17:30:35 364
原创 SLAM ROS显示轨迹
#include <iostream>#include <fstream>#include <Eigen/Dense>#include <ros/ros.h>#include <tf/transform_broadcaster.h>using namespace std;using namespace Eigen;int main(int argc, char *argv[]){ ros::init(argc, argv
2022-03-16 19:57:24 466
原创 C++子类强制转化为父类底层原理
示例代码#include <iostream>#include <algorithm>using namespace std;class A{public: //A(int age) :m_age(age) {} int m_age;};class B :public A{public: //B(int age) :m_age(age) {}; int m_age;};int main(){ A a; a.m_age = 0x45; co
2022-03-02 10:11:14 1057
原创 ROS tf使用报错:ImportError: dynamic module does not define module export function (PyInit__tf2)
1. 报错内容Traceback (most recent call last): File "/opt/ros/melodic/lib/turtle_tf/turtle_tf_broadcaster.py", line 37, in <module> import tf File "/opt/ros/melodic/lib/python2.7/dist-packages/tf/__init__.py", line 30, in <module> from
2022-02-10 10:32:01 3022 3
原创 ROS 新建工作空间及编译
1. 创建工作空间创建源文件路径mkdir -p ~/catkin_ws/src进入源文件夹路径cd ~/catkin_ws/src初始化源文件夹 catkin_init_workspace2. 编译工作空间进入工作空间目录cd ~/catkin_ws/进行编译catkin_make添加环境变量 echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc使环境变量生效source ~/.bashrc
2022-02-10 09:19:35 1434
原创 OpenCV单应矩阵实现图像拉伸
图像拉伸import cv2import numpy as npimg=cv2.imread(r'C:\Users\lzfsm\Desktop\detection\dataset\dataset\CMSupport2K\SegmentationClass\0391.png')img = cv2.resize(img, None, fx=0.5, fy=0.5)pts1 = []def on_EVENT_LBUTTONDOWN(event, x, y, flags, param): gl
2022-01-24 16:31:00 475
原创 git 操作问题
.gitignore提交到缓存区后做了修改,提交时屏蔽文件不更新git rm -r --cached . # 删除缓存区再提交git add .git commit -m 'update .gitignore'
2022-01-08 22:42:06 239
原创 Open3D RGBD图显示彩色点云
import osimport numpy as npimport open3d as o3dfrom openni import openni2import cv2#打开文件路径openni2.initialize()dev = openni2.Device.open_any()print(dev.get_device_info())depth_stream = dev.create_depth_stream()depth_stream.start()cap = cv2.Vi
2021-12-07 09:20:02 1381
原创 ubuntu 使用奥比中光播放点云
#引入python库numpy和open3d,可以通过pip install命令安装import osimport numpy as npimport open3d as o3dfrom openni import openni2import cv2#打开文件路径openni2.initialize()dev = openni2.Device.open_any()print(dev.get_device_info())depth_stream = dev.create_depth.
2021-12-06 19:59:22 1371
原创 ubuntu python 通过奥比中光摄像头获取深度图片和彩色图片
1. 依赖安装Openni Openni下载Openni添加至环境(要通过全局变量找到Openni头文件和库)安装primesense和opennipip install primesensepip install openni2. Python代码from openni import openni2import numpy as npimport cv2def mousecallback(event,x,y,flags,param): if event==c
2021-12-06 09:18:59 1548 2
原创 解决VSCode python cv2、numpy等代码提示问题
安装以下插件插件清单Python (Microsoft) (这个肯定已经装了)Python Extension Pack (Don Jayamanne)Pylance (Microsoft) (这个是主角,依赖上面那个扩展)解决VSCode python cv2、numpy等代码提示问题
2021-12-05 21:50:02 1499
原创 常见图像分辨率
分辨率类型分辨率长宽比144P192x1444:3240P320x2404:3480P640x4804:3720P1280x72016:91080P1920x108016:94K3840x216016:95K5120x288016:98K7680X432016:9
2021-12-03 16:02:27 3064
一种采用速度控制模式的动量轮控制系统.pdf
2020-03-31
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人