- 博客(71)
- 资源 (3)
- 收藏
- 关注
原创 Could not find a package configuration file provided by “realsense2“
sudo apt install ros-humble-librealsense2
2025-04-06 16:21:03
120
原创 gazebo中通过编写插件发布随动关节的角度值到话题
然后启动gazebo之后,关节pole_joint的角度值会发布在/pole_joint_angle_publisher/pole_joint_angle话题中。pole_joint是传入的随动关节名称。
2024-05-26 17:36:53
405
原创 gazebo抓取/轮式底盘仿真问题汇总
上方代码中-z是让机器人在一定高度出现,我记得之前机器人出现之后,就会在重力的作用下,落到地面,但是今天机器人出现之后,直接悬浮在空中,死活不降落。是因为我在xacro文件中加入了没有mass和inertia的world link, 导致机器人整个悬浮,去掉world就好了。
2024-04-01 23:47:47
762
原创 UR10+gazebo+moveit吸盘抓取搬运demo
使用ur10+gazebo开发了一个简易吸盘抓取箱子码垛的仿真过程,机械臂控制使用的是moveit配置。本博客对部分关键的代码进行解释。代码运行环境:支持ubuntu16、 18、 20, ros版本是ros1(经过测试)。
2024-02-12 00:16:48
2114
17
原创 YOLO数据集制作
1、视频提取图片#! /usr/bin/python# -*- coding:utf-8 -*-import cv2import osimport numpy as npimport random import shutildef video_2_images(video_path, save_iamge_path): count = 0 for v_path in video_path: print('is dealing {}'.format(v_pa
2023-12-22 16:05:31
458
原创 使用qemu在arm上模拟x86并运行docker
建议更换一个ubuntu18的镜像,换成desktop 版本的,当前目录下的是 service 版本的,没有可视化界面,并且没有运行成功。已经创建好,在当前目录下: run_qemu.sh。
2023-12-14 15:21:19
3836
3
原创 gazebo各种插件
libgazebo_ros_joint_pose_trajectory.so:模拟关节位置轨迹的插件。libgazebo_ros_hand_of_god.so:模拟上帝之手的插件,可以通过键盘控制物体。libgazebo_ros_joint_state_publisher.so:发布关节状态的插件。libgazebo_ros_triggered_camera.so:模拟触发式相机传感器的插件。libgazebo_ros_skid_steer_drive.so:模拟滑移驱动机器人的插件。
2023-10-17 21:54:52
2318
原创 linux终端切换python版本
python显示: Python 2.7.17 (default, Mar 8 2023, 18:40:28) ,说明python2版本是2.7.17。
2023-09-16 18:36:02
1701
原创 gazebo和moveit联合机械臂运动规划仿真(包含realsense视觉点云)
1、gazebo仿真环境搭建最终的场景:使用的机械臂:AR3工业六轴机械臂系统环境:ubuntu18+ros-melodic注:机械臂description包在github上下载的,自己又对gazebo环境做了相应的修改。下面是用到的主要的urdf描述文件:<?xmlversion="1.0"encoding="utf-8"?><!--==============================================================
2022-05-16 00:05:48
14639
34
原创 rosdep update报错解决方法
亲测有效方法(十分简单)https://www.ncnynl.com/archives/202109/4549.html步骤:rm rosdep_update.sh ;wget https://gitee.com/ncnynl/rosdep/raw/master/rosdep_update.sh ;sudo chmod +x ./rosdep_update.shsudo ./rosdep_update.sh
2022-05-08 19:25:43
330
原创 启动AutoCAD时显示“无效的配置路径/文件名”
出现原因我原来的电脑账户是中文,因为别的地方使用时不能出现中文,所以就把账户改成了英文,结果导致以前安装的Autocad打不开了,出现的问题如题。解决教程(有效)链接https://knowledge.autodesk.com/zh-hans/support/autocad/troubleshooting/caas/sfdcarticles/sfdcarticles/CHS/Fatal-Error-Invalid-Configuration-PathFile.html关键过程1、找到密钥 HKE
2022-04-11 00:17:12
13378
20
原创 launch启动serial_node与ros通信并设置波特率
arduino例子这里使用arduino mega2560,使用mega的16个模拟口读取外部电压值,然后和ros通信,把16个数据存在一个数组发送到节点,代码如下:#include <ros.h>#include <std_msgs/Int16MultiArray.h>#include <std_msgs/Empty.h>ros::NodeHandle nh;int value[16];std_msgs::Int16MultiArray voltage;
2022-01-14 16:13:40
1358
原创 文章色彩搭配
链接https://www.douban.com/doulist/26457366/?start=25&sort=time&playable=0&sub_type=11
2022-01-07 16:54:33
246
原创 机械臂抓取参考资料
https://www.bilibili.com/video/BV19f4y1h73E/?spm_id_from=trigger_reloadgithub链接https://github.com/Suyixiu/robot_sim
2021-12-09 17:33:58
693
原创 launch调用tf包的static_transform_publisher时传入参数含义
查看命令roscorerosrun tf static_transform_publisher -h输入参数含义A command line utility for manually sending a transform.It will periodicaly republish the given transform. Usage: static_transform_publisher x y z yaw pitch roll frame_id child_frame_id period
2021-12-09 16:16:59
2515
原创 launch中给node传参args中内容含义
查看命令终端启动roscorerosrun gazebo_ros spawn_model -h显示内容Commands: -[urdf|sdf|trimesh|gazebo] - specify incoming xml is urdf, sdf or trimesh format. gazebo arg is deprecated in ROS Hydro -[file|param|database] [<file_name>|<param_name>|
2021-12-09 14:41:20
684
原创 已知多个城市之间的道路搜索任意两地的路径问题
题目给出多地互通,比如城市a,b,c,d四个城市,有a-b,a-c,c-b,a-d,c-d几条连通的路,求任意2城市的可能路径,比如从b到d的可能走法,b-c-d,b-a-d等等;代码# -*- coding:utf-8 -*-def main(): n = input("please input n:") roads = [] for i in range(int(n)): print("please input the ", i+1, " road:")
2021-12-08 14:02:50
375
原创 win下安装boost库
实测有效教程https://jingyan.baidu.com/article/642c9d34c198bd644a46f70f.html
2021-12-06 15:49:05
362
原创 turtlebot3在gazebo中自己添加相机利用opencv巡线
效果代码https://download.youkuaiyun.com/download/blue_skyLZW/41251222
2021-11-13 15:07:27
3871
原创 python 串口读取byte类型数据并访问
以读取SBT力传感器数据为例#! usr/bin/env pyhton# coding:utf-8import serialimport timeimport csvimport osoriginaltime = 0.0starttime = 0.0endtime = 0.0endtimebefore = 0.0def savedis(force , csvfile): f = open(csvfile, 'a', encoding='utf-8', newline=''
2021-11-13 11:41:26
1481
原创 c++ Boost智能指针shard_ptr使用
boost::shared_ptr是可以共享所有权的指针。如果有多个shared_ptr共同管理同一个对象时,只有这些shared_ptr全部与该对象脱离关系之后,被管理的对象才会被释放。使用一般配合boost:make_shared使用:boost::shared_ptr<std::vectorEigen::Isometry3d> outputValue = boost::make_shared<std::vectorEigen::Isometry3d>(poses);或者
2021-11-03 10:22:41
761
原创 gazebo实现小车巡线
链接https://zenanlin1999.github.io/2021/05/10/ROS%E5%BC%80%E5%8F%916%E2%80%94%E2%80%94opencv+ROS%E5%9B%BE%E5%83%8F%E5%BC%80%E5%8F%91%E6%A1%88%E4%BE%8B/
2021-11-01 23:40:51
2919
原创 matlab计算六轴机械臂DH正运动学
DH根据DH法建立DH参数表格,根据表格输入参数到matlab程序,程序运行算出变换矩阵。代码function [outputArg1] = four_paramters2matrix(theta,d,a,alpha)% 角度是弧度制%UNTITLED 此处显示有关此函数的摘要% 此处显示详细说明outputArg1 = [cos(theta) -sin(theta)*cos(alpha) sin(theta)*sin(alpha) a*cos(theta); sin(theta)
2021-10-19 23:07:34
2121
1
原创 matlab2017b安装之后点桌面图标黑框闪退
试了网上各种方法,都解决不了,包括preferences损坏( https://blog.youkuaiyun.com/weixin_38858749/article/details/113698603)等等可能,都不行,我的cpu也是intel的,经过我自己尝试之后,发现了解决方法:找到安装目录下的D:\matlab\install\bin\matlab.exe,其实就是桌面图标的目标,然后右键–管理员权限运行,完美启动!而且之后再打开就直接双击桌面图标即可。...
2021-10-15 10:51:19
1269
1
原创 labelme标注医学图像之后批量把json文件转化PNG
1、把json都放在同一目录下这里写个py即可#!/usr/bin/env python# coding : utf-8import osimport shutilabsolute_path = os.path.dirname(__file__) #获取本文件的绝对路径absolute_path = absolute_path[:-len('/scripts')]all_file_name = os.listdir(os.path.join(absolute_path,'image_da
2021-09-09 21:52:55
668
原创 三轴机械臂/三自由度四足单腿DH正逆运动学及matlab验证
实物模型DH建立坐标系以及正逆运动学推导Matlab验证clear;clc;a1=-9.57*0.001;alpha1=pi/2;a2=-59.2*0.001;a3=-77*0.001;d3=44.6*0.001;% 建立连杆系% theta 关节角度% d 连杆偏移量% a 连杆长度% alpha 连杆扭角% sigma 旋转关节为0,移动关节为1% mdh 标准的D&H为0,否则为1% off
2021-08-01 21:58:50
5532
4
原创 github上传代码
准备现在github创建仓库,都是默认main分支了,好多教程都还是master分支,这里可以使用git branch branch_name ----创建分支git checkout branch_name -----切换分支步骤1、设置username和email,因为github每次commit都会记录他们输入以下两个命令:$ git config --global user.name “your name”(注册时填写的名字)$ git config --global user.e
2021-07-26 17:42:07
161
turtlebot3在gazebo中使用opencv巡线
2021-11-13
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人