C++ vector 二维数组初始化方式
int numRows=10,zone=5;//层数,每层需要的空间
vector<vector<int>> vec(numRows, vector<int>());//初始层数,赋值
for (int i = 0; i < numRows; i++) {
vec[i].resize(zone);
}
ubuntu+ros
- 安装ss,设置v.p.n。。。。【腾讯文档】:Ubuntu如何国际学术交流?
- ubuntu源换为阿里源
- ros源换为中科大源
- 安装ros,参考官方教程:http://wiki.ros.org/melodic/Installation/Ubuntu
- 执行sudo rosdep init时,下载不了。解决:https://blog.csdn.net/weixin_44692299/article/details/105869229
- 执行rosdep update时,报错是网络问题,多次执行就好
- 将ROS工作空间永久添加到环境变量中
echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc
source ~/.bashrc
-
安装全部功能包sudo apt-get install ros-melodic-*
-
apt-cache命令搜索ros-melodic开头的所有功能包:apt-cache search ros-melodic
-
安装ros包:sudo apt-get install ros-melodic-PACKAGENAME
React Native开发--Downloading https://services.gradle.org/distributions/gradle-4.4-all.zip 失败
https://blog.csdn.net/qq_36157085/article/details/86595680
问题
在配置.bash_profile时候项目不生效。
解决思路
我们使用的shell是zsh,不会自动加载.bash_profile
,而是自动加载~/.zprofile
文件。这里可以在.zprofile文件加上这么一段
if [ -f ~/.bash_profile ]; then
source ~/.bash_profile
fi
opencv下载
https://www.bzblog.online/wordpress/index.php/2020/03/09/opencvdownload/
ubuntu缺少环境变量:
首先下载对应的软件,安装,将路径写入 ~/.bashrc中
接着 source ~/.bashrc (记得在已经开了的终端也要source一下)
补充vrep安装过程
设置VREP_ROOT环境变量
同时建立ros与vrep的桥梁vrep_ros_bridge
安装教学包ROS-Academy-for-Beginners,出现错误,ERROR: the following packages/stacks could not have their rosdep
https://blog.csdn.net/weixin_42159320/article/details/87803532
POSIX
POSIX表示可移植操作系统接口(Portable Operating System Interface of UNIX,缩写为 POSIX ),POSIX标准定义了操作系统应该为应用程序提供的接口标准。
POSIX标准意在期望获得源代码级别的软件可移植性。换句话说,为一个POSIX兼容的操作系统编写的程序,应该可以在任何其它的POSIX操作系统(即使是来自另一个厂商)上编译执行。
简单总结:
完成同一功能,不同内核提供的系统调用(也就是一个函数)是不同的,例如创建进程,linux下是fork函数,windows下是creatprocess函数。好,我现在在linux下写一个程序,用到fork函数,那么这个程序该怎么往windows上移植?我需要把源代码里的fork通通改成creatprocess,然后重新编译...
posix标准的出现就是为了解决这个问题。linux和windows都要实现基本的posix标准,linux把fork函数封装成posix_fork(随便说的),windows把creatprocess函数也封装成posix_fork,都声明在unistd.h里。这样,程序员编写普通应用时候,只用包含unistd.h,调用posix_fork函数,程序就在源代码级别可移植了。
https://blog.csdn.net/weixin_40039738/article/details/81867577
wireshark怎么抓包、wireshark抓包详细图文教程(形象理解三次握手)
https://www.cnblogs.com/heishuichenzhou/p/10831562.html
抓包内容分析
https://blog.csdn.net/sxwyf1234/article/details/52247869