笔记
方小生–
为学日益,为道日损。
损之又损,以至于无为。
无为而无不为。
取天下常以无事,及其有事,不足以取天下。
展开
-
ROS 2 Humble-实践
ros2原创 2022-09-30 13:32:49 · 842 阅读 · 2 评论 -
中值滤波器
中值滤波器属于非线性滤波器,中值滤波是对整幅图像求解中位数的过程。原创 2022-07-19 01:05:45 · 1324 阅读 · 0 评论 -
winscp传输文件和VNC连接问题
winscp传输文件和VNC连接问题原创 2022-07-15 10:24:36 · 355 阅读 · 0 评论 -
SD卡镜像拷贝裁剪
SD卡镜像拷贝裁剪使用软件Win32[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-Tqcls3LR-1651029633512)(C:\Users\26503\AppData\Roaming\Typora\typora-user-images\image-20220427110836623.png)]首先创建一个text.img的空文件,将需要备份的系统的SD卡插入电脑[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-8EDohqUC-16原创 2022-04-27 11:21:15 · 329 阅读 · 0 评论 -
TD3代码详解
TD3代码详解#参考TD3原理食用:https://zhuanlan.zhihu.com/p/55307499import randomimport gymimport numpy as npimport torchimport torch.nn as nnimport torch.optim as optimimport torch.nn.functional as Ffrom torch.distributions import Normalimport matplotlib.p原创 2022-01-12 16:01:42 · 2610 阅读 · 0 评论 -
里程计信息
导航消息之nav_msgs/Odometryrosmsg show nav_msgs/Odometrystd_msgs/Header header uint32 seq time stamp string frame_idstring child_frame_idgeometry_msgs/PoseWithCovariance pose geometry_msgs/Pose pose geometry_msgs/Point position float64 x原创 2021-12-15 10:01:03 · 318 阅读 · 0 评论 -
pytorch-GPU检测代码
pytorch模型搭建DQN使用GPU测试GPUimport torchflag = torch.cuda.is_available()print(flag)ngpu= 1# Decide which device we want to run ondevice = torch.device("cuda:0" if (torch.cuda.is_available() and ngpu > 0) else "cpu")print(device)print(torch.cuda.get原创 2021-12-15 10:00:28 · 4258 阅读 · 0 评论 -
DDPG代码
#!/usr/bin/env python# Authors: Junior Costa de Jesus #import rospyimport osimport jsonimport numpy as npimport randomimport timeimport syssys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))from collections import deque原创 2021-11-04 15:23:14 · 995 阅读 · 0 评论 -
DDPG训练数据处理
DDPG训练数据import matplotlib.pylab as pltdef loadData(filePath): fr= open(filePath,'r+') lines = fr.readlines() length =len(lines) reword_curred_ep=[] qvalue=[] loss_c=[] loss_a=[] for line in lines: items = line.str原创 2021-11-24 14:38:39 · 700 阅读 · 1 评论