ars408_ros驱动问题

2023-05-16

0.ars408_ros驱动:

mkdir folder
mkdir folder/src
cd folder/src
git clone https://github.com/sergiocasaspastor/myrepository.git
cd …
catkin_make
source devel/setup.bash
roslaunch socketcan_bridge radar.launch
编译问题:
在这里插入图片描述
很多报错关于pcl函数最后有个lambda:https://blog.csdn.net/m0_62294345/article/details/122605297
在这里修改c++11为c++14
在这里插入图片描述

1.Radar setup的问题

There is a command called cansend, that belongs to can-utils, used for sending configuration messages to the radar. Here are some messages proposed, but other messages can be sent (watch the manual ARS40X_Technical_Documentation_V 1.8_18.10.2017 inside documentation folder).

Installation of can-utils

sudo apt-get install can-utils
candump can0 // Watch the raw data received once the peak CAN bus is installed and connected to Radar
注:candump can0 not working 的问题:https://forums.raspberrypi.com/viewtopic.php?t=323572
加粗样式sudo /sbin/ip link set can0 up type can bitrate 500000
candump can0

Configuration messages to choose between cluster detection or object detection

cansend can0 200#F8000000089C0000 // Objects detection with all extended properties
cansend can0 200#F8000000109C0000 // Clusters detection with all extended properties

Configuration messages for applying different filters.

cansend can0 202#8C0000012C // Maximum distance of objects detected 30 meters
cansend can0 202#AE06800FFF // Minimum value of object RCS -10 dBm2
cansend can0 202#C600030007 // Minimum value of objects probability of existence 75%

Other option to configure the radar is to modify the values of configuration_vars.h inside the header folder of socketcan brige. Please remember that is necessary to build the package again in order to save the values chosen in the configuration header file.

2.安装can_open

**可以不安装
参考:https://blog.csdn.net/m0_58322903/article/details/121630592
参考:https://blog.csdn.net/szzfq61/article/details/116950448
参考:https://zhuanlan.zhihu.com/p/508913551

3.运行报错报错如下:RLException: Invalid tag: Cannot load command parameter [robot_description]: no such command [[‘/opt/ros/noetic/share/xacro/xacro.py’, ‘/home/jxdr-ai/ars408_1/src/myrepository/radar_urdf/urdf/conti_radar.urdf’]].

Param xml is
The traceback for the exception was written to the log file

解决参考:https://blog.csdn.net/u011573853/article/details/124203235 launch文件中的xacro.py 修改为xacro
在这里插入图片描述

4.socketcan_bridge问题

[FATAL] [1673934596.084064341]: Failed to initialize can_device at can0
[socketcan_bridge_node-4] process has died [pid 28657, exit code 1, cmd /home/jxdr-ai/ars408_1/devel/lib/socketcan_bridge/socketcan_bridge_node __name:=socketcan_bridge_node __log:=/home/jxdr-ai/.ros/log/c4f36618-962a-11ed-be63-cb048613a059/socketcan_bridge_node-4.log].
log file: /home/jxdr-ai/.ros/log/c4f36618-962a-11ed-be63-cb048613a059/socketcan_bridge_node-4*.log

5.出can0网卡的方法

sudo /sbin/ip link set can0 up type can bitrate 500000
sudo ip link set dev can0 up
candump can0
具体更多can相关命令参考:https://blog.csdn.net/kunkliu/article/details/79108561

6.添加#include <boost/noncopyable.hpp>

运行报错:home/jxdr-ai/ARS408/src/ros_canopen/canopen_master/src/objdict.cpp:269:35,expected class-name before ‘{’ token
269 | class Data: boost::noncopyable{
解决办法:在对应文件中添加#include <boost/noncopyable.hpp>

7.cannot launch node of type [kalman_filter/extendedkf]: Cannot locate node of type [extendedkf] in package [kalman_filter]. Make sure file exists in package path and permission is set to executable (chmod +x)

解决:在kalman_filter文件夹下的makelists文件中最下面把大写的ExtendedKF改成小写的extendedkf],并且开头的c++11修改为c++14]

8.[ WARN] [1674870319.578692545]: Invalid argument “/radar” passed to canTransform argument source_frame in tf2 frame_ids cannot start with a ‘/’ like:

解决:找到radar_rviz目录下的文件搜索“/radar”修改为“radar”

9.[joint_state_publisher-9] process has died [pid 27891, exit code 127, cmd /home/jxdr-ai/ARS408/src/joint_state_publisher/joint_state_publisher/joint_state_publisher __name:=joint_state_publisher __log:=/home/jxdr-ai/.ros/log/780007cc-9ead-11ed-90d8-edb0942cfba7/joint_state_publisher-9.log]. log file: /home/jxdr-ai/.ros/log/780007cc-9ead-11ed-90d8-edb0942cfba7/joint_state_publisher-9*.log

00.另一款https://github.com/Project-MANAS/ars_40X

驱动安装:
安装驱动:
问题:
udevadm: Command not found
//安装依赖库
$ sudo apt-get install udev
//安装依赖库
$ sudo apt-get install libpopt-dev

$ wget https://www.peak-system.com/fileadmin/media/linux/files/peak-linux-driver-8.12.0.tar.gz

$tar -zxvf peak-linux-driver-8.1.tar.gz
$cd peak-linux-driver-8.1
$make clean
$make all NET=NETDEV_SUPPORT PCI=NO ISA=NO DNG=NO PCC=NO
$sudo make install

驱动识别:
重启电脑后,执行
$cat /proc/pcan

*------------- PEAK-System CAN interfaces (www.peak-system.com) -------------
*------------- Release_20210505_n (8.12.0) Oct 27 2021 18:22:59 --------------
*---------------------- [mod] [isa] [pci] [pec] [usb] -----------------------
*--------------------- 1 interfaces @ major 245 found -----------------------
*n -type- -ndev- --base-- irq --btr- --read-- --write- --irqs-- -errors- status
32 usb -NA- 0 000 0x001c 00000001 00000000 00000005 00000000 0x0000

pcanview 安装
//32bit 根据系统定
$ wget https://www.peak-system.com/debian/dists/trusty/non-free/binary-i386/pcanview-ncurses_0.8.9-0_i386.deb
//64bit
$ https://www.peak-system.com/debian/dists/trusty/non-free/binary-amd64/pcanview-ncurses_0.8.10-0_amd64.deb

$ sudo dpkg -i pcanview- ncurses_0.8.9-0_i386.deb

linux执行文件提示No such file or directory,是软件位数和系统不匹配,更换版本。

deb安装包卸载命令
sudo apt-get autoremove pcanview- ncurses

主要学习文章:

安装socket_can

(58条消息) ROS中进行大陆ARS408雷达点云的可视化及二次开发(一)_naca yu的博客-CSDN博客_毫米波雷达数据可视化

遇到问题:

Could not find a package configuration file provided by “costmap_converter“ with any of the follow_kay880的博客-CSDN博客

(58条消息) Could not find the required component ‘tf2_geometry_msgs‘. The following CMake error indicates that_振华OPPO的博客-CSDN博客

出现了socket_can.hpp找不到的问题,通过将源码中库的引用<>改成“”可以解决包找不到的问题,如下图 #include “socket_can/socket_can.hpp”。
解决不了采用一下方法
qjn@ubuntu:~/catkin_ws/src/ars_40X/include$ cp -rf ~/socket_can/include/socket_can ./

===========================================================================
sudo /sbin/ip link set can0 up type can bitrate 500000
sudo ip link set dev can0 up
candump can0
roslaunch ars_40X ars_40X.launch visualize:=true obstacle_array:=true

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

ars408_ros驱动问题 的相关文章

随机推荐

  • ROS使用笔记

    文章目录 1 提取bag中固定topic或者固定时间段数据2 提取pcd数据3 记录数据4 service amp action5 roslaunch文件6 自定义消息7 from raw velodyne packets to velod
  • linux安装Android Studio

    linux安装Android Studio 1 先在https developer android google cn studio hl 61 zh cn下载源码安装包 2 安装64位所需要的库 2 1如果使用的是Ubuntu的话执行以下
  • OpenCV中Mat的初始化与赋值

    1 type数据类型 常量类型的命名规则为 xff1a CV 位数 43 数据类型 43 通道数 关系如下 xff1a C1 C2 C3 C4 CV 8U 0 8 16 24 CV 8S 1 9 17 25 CV 16U 2 10 18 2
  • 近十年的VI-SLAM算法综述与发展

    本文主要总结一下这几年工作中遇到过以及改进过相关VIO算法 1 背景介绍 一个完整的 SLAM simultaneous localization and mapping 框架包括传感器数据 前端 后端 回环检测与建图 xff0c 如图1所
  • 当前开源的SLAM方案汇总2021.02

    感谢SLAMer前辈们不断的拼搏与进取 xff0c 才有了现在的丰富的学习资料 xff01 以下是至今SLAM开源代码的资料汇总 xff0c 后续将会更新主流slam开源代码的注释版本 xff0c 希望对研究SLAM的同学们有帮助 PTAM
  • VSLAM算法中的数学基础知识详细了解

    学习SLAM经验告诉我 xff0c 入门SLAM一般只需要两种两个方面的条件 xff0c 一是要有扎实的数学基础 xff0c 二是要有强大的动手编程能力 xff0c 但是这两个条件对于刚入门的同学来说 xff0c 极具挑战性 学习SLAM的
  • 2021互联网大厂职级对应薪资一览表

    原文连接 xff1a https mp weixin qq com s nYNZjJJzrO0Sc5h2AEPnaQ 互联网大厂新入职员工各职级薪资对应表 xff08 技术线 xff09 图片数据来源 xff1a 知乎加 上面的表格不排除有
  • “undefined reference to“ 问题及解决方法 实例分析

    在实际编译代码的过程中 xff0c 我们经常会遇到 34 undefined reference to 34 的问题 xff0c 简单的可以轻易地解决 xff0c 但有些却隐藏得很深 xff0c 需要花费大量的时间去排查 工作中遇到了各色各
  • int 占几个字节

    4个字节或2个字节 xff0c 主要看操作系统 xff0c 和编译器有关 xff0c 一个int的大小是操作系统的一个字长 TC是16位系统程序 xff0c 所以int是16bit xff0c 也就是两个字节 在32位linux和32位或6
  • ORBSLAM3 VIO初始化

    按照规矩 xff0c 先讲一下ORBSLAM3中的初始化大致流程 根据ORB SLAM3的论文介绍 xff0c IMU的初始化方法是基于下面3点 xff1a 1 xff09 纯视觉SLAM可以提供很好的位姿估计 xff0c 所以可以用纯视觉
  • 不一样的静态初始化——OpenVins

    今天讲一下黄国权老师实验室开源的OpenVins工程中的IMU初始化 xff0c 一般VIO初始化分为两种 xff0c 一种是静态初始化 xff0c 一种是动态初始化 xff0c 而OpenVins则利用加速度的方差差异将运动分为两种状态
  • CMakeList.txt的指令以及实例介绍

    一 Cmake 简介 cmake xff08 Cross platform make xff09 是一个开源的跨平台自动化构建系统 xff0c 用来管理程序构建 xff0c 不依于特定的编译器 所谓的跨平台就是可以在Windows xff0
  • 语法错误( error: array bound is not an integer constant before ‘]’ token)

    include lt iostream gt include lt cstdio gt using namespace std int N 61 100 int a N N int main 编译出现了 Error array bound
  • 使用ADB出现了system/bin/sh: adb: not found&system/bin/sh: pull: not found错误

    在使用ADB传送文件的时候出现了system bin sh adb not found amp system bin sh pull not found错误 解决办法 xff1a 可能你在使用adb pull 之前你使用了adb shell
  • 回环检测之决策模型

    前面我们已经讲了如何描述场景 xff0c 让机器人尽可能的了解周围环境 xff0c 那么了解了之后 xff0c 如何判断出是回环的呢 xff1f 本节讨论如何建立决策模型来根据当前场景描述和地图信息识别出可能的闭环 合理的决策模型可有效提高
  • 回环检测之DBoW2

    前面我们已经讲了回环检测中用的一些方法 xff0c 今天主要介绍一下现在用的最多的词袋模型 DBoW2 这里就不在细讲回环检测的定义 xff0c 具体可以看看我的前面的博客 xff0c 而回环检测在SLAM中的作用可以从下面的图片中大致有一
  • 快速解决rosdep update一直不通过问题

    以前安装ROS的时候遇到rosdep update不通过 xff0c 需要很多次测试才能通过 xff0c 能通过完全靠运气 xff0c 也找了网上很多种方法 xff0c 比较麻烦 xff0c 今天这里说一下一位大神帅鱼提供的一个方法 xff
  • Matlab读取文本数据

    用Nastran的时候 xff0c 想把bdf文件里的节点坐标导出来 xff0c 但是坐标的格式很奇怪 xff0c 见下图 xff1a 会发现这种科学计数法中间没有字母E或e xff0c 直接用Matlab中的load函数读取的话 xff0
  • 为学弟学妹熬夜的一份零基础 C++ 开发学习路线

    大家好 xff0c 我是帅地 之前写过几篇学习路线的文章 前端开发学习路线 Java 后端开发学习路线 一般开发岗主流的就是 Java 后台开发 xff0c 前端开发以及 C 43 43 后台开发 xff0c 现在 Go 开发也是越来越多了
  • ars408_ros驱动问题

    0 ars408 ros驱动 mkdir folder mkdir folder src cd folder src git clone https github com sergiocasaspastor myrepository git