Giter Club home page Giter Club logo

ros_qt5_gui_app's Introduction

简体中文 | English

轻量级ROS1/ROS2移动机器人人机交互软件

GitHub last commit GitHub stars GitHub forks GitHub issues Static Badge

humble foxy noetic galactic melodic

本项目基于Qt5开发,基于CMake进行构建,可以实现一套代码同时在ROS1/ROS2系统中使用(本项目已接入CI,保证多ROS版本/系统版本可用性)

软件在编译时会自动识别环境变量中的ROS1/ROS2环境并进行构建,实现ROS通信与界面隔离

软件所有功能均为自行绘制实现,因此可以轻松运行在一些性能比较低的边缘设备

功能/TODO:

功能 状态 备注
ROS1/ROS2通信
全局/局部地图显示
机器人实时位置显示
机器人速度仪表盘
机器人手动控制
机器人重定位
机器人单点/多点导航
机器人全局/局部规划轨迹显示
机器人拓扑地图功能
电池电量显示
地图编辑功能
机器人导航任务链 尚存bug
地图加载
地图保存
相机图像显示 移植自rqt_image_view
机器人车身轮廓显示 支持配置异形车身
基于rosbridge的通信
3D图层显示 🏷️
拓扑点位的路径规划 🏷️
机器人历史轨迹录制 🏷️

大家如果有什么有意思的界面/功能性需求,可以提在此处,如有Bug请提在issues,必将尽快修复!也非常欢迎大家发起Merge Request一起参与项目建设~

此仓库国内加速镜像链接:gitee

Star History Chart

项目截图

image.png

image.png

目录

一,Release 版本下载使用

如果您只想使用本软件,并不想了解具体的代码实现,用户可以选择下载编译好的Release版本,不用自行手动编译,下载即用

使用Release版本的前提:==系统ROS环境已安装,并且source到环境变量中==

本仓库使用CI自动生成各平台的Release版本(目前只有X86_64版本,Arm环境需要自行编译),在项目的Release页面下载最新对应ROS版本的Release版本,理论上解压后即可使用。 使用方法: 在终端进入解压后的文件夹路径,执行如下命令:

sudo chmod a+x ./ros_qt5_gui_app
./ros_qt5_gui_app

如果Release版本下载后使用不了,可以参考二,编译进行自行编译使用

二,编译

💡 注意,为了保证此项目同时兼容ROS1与ROS2,此项目不使用ROS1/ROS2的catkin_make/colcon构建系统进行够建,而是使用标准CMake进行构建,这也就意味着,本项目不会被ROS自动识别为功能包 可以参考以下教程从0开始构建/运行此项目:

1,环境安装

理论上只需要安装如下基础包就可以编译此项目:

sudo apt-get update
sudo apt-get install qtbase5-private-dev libqt5svg5-dev -y

如果以上安装后还不行,可以执行如下指令安装全部依赖:

sudo apt-get install qtbase5-dev qt5-qmake qtbase5-dev-tools libqt5svg5-dev qtbase5-private-dev libeigen3-dev libgtest-dev -y

2,克隆/下载本项目:

mkdir -p ~/qt_ws
cd ~/qt_ws
git clone https://github.com/chengyangkj/Ros_Qt5_Gui_App

note:如果github下载过慢,可以使用以下指令从gitee拉取

git clone https://gitee.com/chengyangkj/Ros_Qt5_Gui_App

3,编译项目

可以手动执行如下命令进行编译(会根据环境变量自动识别ROS1还是ROS2环境):

cd ~/qt_ws/ROS2_Qt5_Gui_App
mkdir -p build
cd build
cmake ..
make

或者执行如下脚本手动指定ROS版本并进行一键编译:

cd ~/qt_ws/ROS2_Qt5_Gui_App

ROS1:

sh ./build_ros1.sh

ROS2

sh ./build_ros2.sh

4,运行项目

cd ~/qt_ws/ROS2_Qt5_Gui_App/build
./ros_qt5_gui_app

软件配置文件路径(运行一次软件后会自动生成在可执行程序相对路径下)

三,IDE配置说明(QtCreator/Vscode)

💡 此部分为针对新手做的温馨提示,如果你已经是一个ROS/C++/Qt老手,可以跳过此部分

很多ROS初学者学习Qt都存在一个误区:没有搞清楚IDE与编译器的区别,像QtCreator,Vscode,CLion之类的均为IDE(什么是IDE) 哪怕不用IDE,我们只用文本编辑器也能实现代码的编写(效率很低,没有代码提示),编写之后使用make指令编译即可

实际上Ubuntu系统默认都自带的有Qt库,就比如前面的3,编译项目,并没有要求安装QtCreator,只需要使用apt-get安装一些系统缺失的,没有默认安装的qt库,就能正常编译通过

当然安装QtCreator时也会同时下载一些Qt库,但是他仅仅是下载,如果你没有将下载的库添加到环境变量中(通常也不建议自己将下载的qt库添加到环境变量中,这样需要处理系统默认的qt库与你添加的qt库的冲突问题),所以,在没有额外配置的情况下,虽然下载了QtCreator,但是在编译代码时用的还是系统默认的库.

那么,我们为什么还要去额外下载QtCreator呢?

因为我们需要使用QtCreator去编辑我们的(.ui),(.resource)文件,同时QtCreator还提供了代码提示,代码跳转等功能。但是这些功能,只要是IDE均有这个功能,我们通过Vscode/Clion安装一些插件,也是能够实现这些功能,只是QtCreator对自家的语言支持的比较好,比较方便

本项目所有的界面,都是在代码中去手动创建,如果打开代码中的mainwindow.ui可以发现什么都没有,因为所有界面都是代码动态创建添加上去的.

本人在开发本项目的流程为:

  • 使用系统的Qt库,如果需要使用的qt库不存在,则使用apt-get安装即可
  • 所有ui界面均使用代码动态创建,并添加到主窗口中,没有使用qtcreator拖拽生成
  • 项目的开发IDE使用vscode,仅安装了基础的c/c++插件做代码提示
  • 如果需要编辑资源文件(.qrc),手动打开qtcreator,再打开qrc文件进行编辑保存
  • 编译时在终端使用make指令进行编译
  • 运行时在终端使用./ros_qt5_gui_app指令进行运行

可以发现,开发此项目只有需要编辑资源文件时才会用到QtCreator(一般图片添加上去后也不会做频繁的编辑)

虽然本人开发使用的Vscode,但是为了方便部分习惯使用QtCreator做开发的用户,这里介绍下如果使用QtCreator作为IDE开发此项目:

3.1 QtCreator打开项目教程

首先需要按照3,编译项目将项目成功编译,如果编译失败,则QtCreator打开后项目不会正常展开

本项目为标准CMake项目,因此按照在QtCreator中打开CMake项目的方式,打开本项目的根目录Cmakelist.txt即可(不区分ROS1/ROS2)

  • 1.安装QtCreator
sudo apt-get install qtcreator

  • 2.打开qtcreator

终端输入(必须终端打开):

qtcretor

打开后选择文件->打开文件或项目:

image.png

接着选择项目==根目录==下的Cmakelist.txt文件,点击打开即可:

image.png

接着会自动识别我们前面编译的build目录,选择config:

image.png

项目成功展开,点击绿色三角形编译并运行:

image.png

四,使用说明

4.1,多机通信配置

💡 针对于ROS新手的温馨提示:此项配置,如果是单机使用即本软件运行在机器人身上,没有跨机器使用就不用配置,直接跳过即可.如果需要将本软件运行在自己的笔记本上,去连接远程的机器人的情况下需要进行配置

ROS1/ROS2的多机通信完全依赖ROS原生(环境变量添加ROS_MASTER_URI与ROS_IP/ROS_DOMAINID),不再由用户手动指定,减轻新手使用负担

ROS1:

配置参考:多机通讯教程csdn 博客

ROS2:

环境变量多机配置相同的ROS_DOMAINID

4.2,配置文件

第一次运行后,会在可执行程序同级目录生成config.json,修改此配置文件即可(需要注意Json格式),修改后重启生效,具体配置说明详见各功能的配置说明

4.3,重定位位姿态发布

程序可以拖动式的设置机器人初始位置(重定位),相对于Rviz,拖动时可以实时查看激光匹配情况,重定位更加精准(左键按住拖动,右键旋转方向)

image.png

image.png

注意:如果设置无效,需要检查config.json中设置:

{
      "display_name": "Reloc",
      "topic": "/initialpose",
      "enable": true
}

为自己机器人监听的重定位Topic名称

4.4,地图编辑

程序支持地图编辑功能:

image.png image.png

4.4.1 拓扑地图(机器人导航点设置)

并且程序支持拓扑地图功能,可以拖动式的设置机器人导航目标点(导航)使用gif说明如下:

image.png

注意:如果导航点位发布无响应设置无效,需要检查config.json中设置:

{
      "display_name": "NavGoal",
      "topic": "/move_base_simple/goal",
      "enable": true
}

为自己机器人监听的导航目标点Topic名称

4.4.2 橡皮擦

点击橡皮擦后,可以擦除地图中的障碍物,使用gif说明如下: image.png

4.4.3 画笔

画笔功能 image.png

4.4.4 线段绘制

线段绘制 image.png

4.4.5 地图保存

地图编辑完成后并不会自动保存,需要点击保存按钮,保存地图到指定文件夹,如果需要在ROS中使用,需要将该地图替换到自己对应导航包的map中

目前保存地图有如下:

  • *.pgm 图片数据
  • *.yaml 地图描述文件
  • *.topology 程序自定义的拓扑地图 保存了点位等信息

image.png

4.4.6 地图加载

地图加载同理 用户选择对应的PGM地图文件即可加载,并进行编辑

4.5,手动控制机器人

软件支持发布实时速度到底盘:

image.png

对应按钮上的文字,可以由键盘对应按钮同步调用

注意:如果设置无效,需要检查config.json中设置:

{
      "display_name": "Speed",
      "topic": "/cmd_vel",
      "enable": true
}

为实际机器人监听的速度控制话题

4.6,速度仪表盘

软件支持实时显示机器人速度:

image.png

注意:如果设置无效,需要检查config.json中设置:

{
      "display_name": "Odometry",
      "topic": "/odom",
      "enable": true
}

为机器人时机发布的里程计话题

4.7,电池电量显示

软件支持实时显示机器人电量,在配置中配置话题名,电池电量的Topic类型为:sensor_msgs::BatteryState

{
      "display_name": "Battery",
      "topic": "/battery",
      "enable": true
}

image.png

4.8 多点连续导航

软件支持多点连续导航,使用方法如下:

image.png

点击Start Task Chain即可开始任务:

image.png

4.9,相机图片显示

软件支持实时显示机器人相机图片,在配置中配置话题名及location:

  "images": [ ], //图片列表 支持多路 配置后自动创建界面

软件移植了rqt image view的图片显示功能,支持实时显示多路机器人相机图片,在配置中配置话题名

配置demo:


  "images": [
    {
      "location": "front",
      "topic": "/camera/rgb/image_raw",
      "enable": true
    },
    {
      "location": "front/depth",
      "topic": "/camera/depth/image_raw",
      "enable": true
    }
  ],

image.png

image.png

4.10,机器人车身轮廓显示

车身尺寸位于配置:"robot_shape_config":


  "robot_shape_config": {
    "shaped_points": [],  //轮廓点
    "is_ellipse": false,  //轮廓是否为椭圆
    "color": "0x0000FF",   //轮廓填充颜色
    "opacity": 0.5     //轮廓透明度
  }

配置前,首先需要以车中心为原点,使用如下坐标系计算车身轮廓的每个点(单位m),支持异形车身:


                    ^x
                    |
                    |
                    |
          (0.5,0.5) |     (0.5,-0.5)
            +---------------+
            |       |       |
            |       |       |
            |       |       |
<----------------------------------------+
y           |       |       |
            |       |       |
            |       |       |
            |       |       |
            +---------------+
        (-0.5,0.5)  |       (-0.5,-0.5)
                    |
                    |


随意找一个点作为起始点,按照顺时针,依次填下每个点

配置demo:

  • 1m*1m车身:
  "robot_shape_config": {
    "shaped_points": [
      {
        "x": 0.5,
        "y": 0.5
      },
      {
        "x": 0.5,
        "y": -0.5
      },
      {
        "x": -0.5,
        "y": -0.5
      },
      {
        "x": -0.5,
        "y": 0.5
      }
    ],
    "is_ellipse": false,
    "color": "0x00000FF",
    "opacity": 0.5
  }

image.png

  • 1m*1m 圆形车身:

is_ellipse=true

  "robot_shape_config": {
    "shaped_points": [
      {
        "x": 0.5,
        "y": 0.5
      },
      {
        "x": 0.5,
        "y": -0.5
      },
      {
        "x": -0.5,
        "y": -0.5
      },
      {
        "x": -0.5,
        "y": 0.5
      }
    ],
    "is_ellipse": true,
    "color": "0x00000FF",
    "opacity": 0.5
  }

image.png

  • 异形车身:
  "robot_shape_config": {
    "shaped_points": [
      {
        "x": 0.5,
        "y": 0.5
      },
      {
        "x": 1,
        "y": 0
      },
      {
        "x": 0.5,
        "y": -0.5
      },
      {
        "x": -0.5,
        "y": -0.5
      },
      {
        "x": -0.5,
        "y": 0.5
      }
    ],
    "is_ellipse": false,
    "color": "0x00000FF",
    "opacity": 0.5
  }

image.png

五,相关链接

链接名 支持平台 功能
master Win10 Ubuntu ROS + QWidget + QGraphicsview自绘制可视化界面显示
qml_hmi Win10 Ubuntu ROS + QML + C++混合编程,qml自绘制地图,激光雷达可视化显示等demo
simple Win10 Ubuntu ROS + QWidget + Librviz进行可视化显示,为《ROS人机交互软件开发》系列课程中实现的版本,CSDN博客例程版本
rviz_tree Win10 Ubuntu ROS + QWidget + Librviz原生图层Api实现图层管理,不需手动创建图层
ros_qt_demo Win10 Ubuntu cakin_create_qt_pkg 创建的原始包,cmakelist.txt已配置好改为qt5,可以直接编译运行
ros2_qt_demo ROS2 在ROS2平台上运行的qt demo包,cmakelist.txt已配置好改为qt5,可以直接colcon build 编译使用
ROS2_Qt5_Gui_App ROS2 与本仓库代码完全相同/停止维护
Flutter App 基于flutter实现多平台运行 逐步推进.....

六,相关教程及交流群

本系列教程文章专栏:

ROS机器人GUI程序开发 ROS2 Qt21天训练营(关注古月学院,不定期开营) 本系列课程已上线古月学院,欢迎感兴趣的小伙伴订阅:

  1. ROS Qt开发环境搭建以及基础知识介绍
  2. ROS人机交互软件的界面开发
  3. ROS Rviz组件开发方法
  4. 如何实现ROS windows人机交互软件

在这里插入图片描述

开发交流QQ群: 797497206

ros_qt5_gui_app's People

Contributors

chengyangkj avatar guang-chen1208 avatar lispon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ros_qt5_gui_app's Issues

undefined reference to `cv::Mat::Mat(int, int, int)

bug描述
when I run "catkin_make",it reported:undefined reference to `cv::Mat::Mat(int, int, int);
操作步骤
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

分支名及平台:

  • 平台: [ubuntu ]
  • 分支名 [e.g. chrome, safari]

如何正确编译?

我使用的系统是Ubuntu16.04,ROS版本是Kinetic。

当我把代码克隆到src文件夹之后,在工作空间执行编译命令catkin_make,显示如下编译信息和错误,我应该如何正确编译呢?

Base path: /home/willzoe1604/myrobot_qt
Source space: /home/willzoe1604/myrobot_qt/src
Build space: /home/willzoe1604/myrobot_qt/build
Devel space: /home/willzoe1604/myrobot_qt/devel
Install space: /home/willzoe1604/myrobot_qt/install
####
#### Running command: "cmake /home/willzoe1604/myrobot_qt/src -DCATKIN_DEVEL_PREFIX=/home/willzoe1604/myrobot_qt/devel -DCMAKE_INSTALL_PREFIX=/home/willzoe1604/myrobot_qt/install -G Unix Makefiles" in "/home/willzoe1604/myrobot_qt/build"
####
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using CATKIN_DEVEL_PREFIX: /home/willzoe1604/myrobot_qt/devel
-- Using CMAKE_PREFIX_PATH: /home/willzoe1604/myrobot_qt/devel;/home/willzoe1604/turtlebot/devel;/home/willzoe1604/kobuki/devel;/home/willzoe1604/rocon/devel;/opt/ros/kinetic
-- This workspace overlays: /home/willzoe1604/myrobot_qt/devel;/home/willzoe1604/turtlebot/devel;/home/willzoe1604/kobuki/devel;/home/willzoe1604/rocon/devel;/opt/ros/kinetic
-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.12", minimum required is "2") 
-- Using PYTHON_EXECUTABLE: /usr/bin/python2
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/willzoe1604/myrobot_qt/build/test_results
-- Found gtest sources under '/usr/src/gmock': gtests will be built
-- Found gmock sources under '/usr/src/gmock': gmock will be built
-- Found PythonInterp: /usr/bin/python2 (found version "2.7.12") 
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.20
-- BUILD_SHARED_LIBS is on
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- Configuring done
-- Generating done
-- Build files have been written to: /home/willzoe1604/myrobot_qt/build
####
#### Running command: "make -j8 -l8" in "/home/willzoe1604/myrobot_qt/build"
####
[  3%] Generating include/cyrobot_monitor/moc_settings.cpp
[  7%] Generating qrc_images.cpp
[ 11%] Generating ui_addtopics.h
[ 14%] Generating qrc_media.cpp
[ 18%] Generating ui_main_window.h
[ 22%] Generating ui_settings.h
[ 25%] Generating include/cyrobot_monitor/moc_CCtrlDashBoard.cpp
[ 29%] Generating include/cyrobot_monitor/moc_addtopics.cpp
[ 33%] Generating include/cyrobot_monitor/moc_main_window.cpp
[ 37%] Generating include/cyrobot_monitor/moc_qnode.cpp
[ 40%] Generating include/cyrobot_monitor/moc_qrviz.cpp
Scanning dependencies of target cyrobot_monitor
[ 44%] Building CXX object CMakeFiles/cyrobot_monitor.dir/src/CCtrlDashBoard.cpp.o
[ 48%] Building CXX object CMakeFiles/cyrobot_monitor.dir/src/addtopics.cpp.o
[ 51%] Building CXX object CMakeFiles/cyrobot_monitor.dir/src/main.cpp.o
[ 55%] Building CXX object CMakeFiles/cyrobot_monitor.dir/src/main_window.cpp.o
[ 59%] Building CXX object CMakeFiles/cyrobot_monitor.dir/src/qrviz.cpp.o
[ 62%] Building CXX object CMakeFiles/cyrobot_monitor.dir/src/qnode.cpp.o
[ 66%] Building CXX object CMakeFiles/cyrobot_monitor.dir/src/settings.cpp.o
[ 70%] Building CXX object CMakeFiles/cyrobot_monitor.dir/qrc_images.cpp.o
In file included from /home/willzoe1604/myrobot_qt/src/src/CCtrlDashBoard.cpp:1:0:
/home/willzoe1604/myrobot_qt/src/src/../include/cyrobot_monitor/CCtrlDashBoard.h:14:47: error: ‘nullptr’ was not declared in this scope
     explicit CCtrlDashBoard(QWidget *parent = nullptr, StyleType type=ST
                                               ^
CMakeFiles/cyrobot_monitor.dir/build.make:226: recipe for target 'CMakeFiles/cyrobot_monitor.dir/src/CCtrlDashBoard.cpp.o' failed
make[2]: *** [CMakeFiles/cyrobot_monitor.dir/src/CCtrlDashBoard.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/willzoe1604/myrobot_qt/src/src/qnode.cpp: In member function ‘void cyrobot_monitor::QNode::move_base(char, float, float)’:
/home/willzoe1604/myrobot_qt/src/src/qnode.cpp:154:38: error: ‘>>’ should be ‘> >’ within a nested template argument list
      std::map<char, std::vector<float>> moveBindings
                                      ^
/home/willzoe1604/myrobot_qt/src/src/qnode.cpp:155:6: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
      {
      ^
/home/willzoe1604/myrobot_qt/src/src/qnode.cpp:176:6: error: in C++98 ‘moveBindings’ must be initialized by constructor, not by ‘{...}’
      };
      ^
/home/willzoe1604/myrobot_qt/src/src/qnode.cpp: In substitution of ‘template<class _InputIterator> std::map<_Key, _Tp, _Compare, _Alloc>::map(_InputIterator, _InputIterator, const _Compare&, const allocator_type&) [with _InputIterator = <missing>]’:
/home/willzoe1604/myrobot_qt/src/src/qnode.cpp:176:6:   required from here
/home/willzoe1604/myrobot_qt/src/src/qnode.cpp:176:6: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
/home/willzoe1604/myrobot_qt/src/src/qnode.cpp:176:6: error: no matching function for call to ‘std::map<char, std::vector<float> >::map(<brace-enclosed initializer list>)’
In file included from /usr/include/c++/5/map:61:0,
                 from /opt/ros/kinetic/include/ros/console.h:42,
                 from /opt/ros/kinetic/include/ros/ros.h:40,
                 from /home/willzoe1604/myrobot_qt/src/src/qnode.cpp:13:
/usr/include/c++/5/bits/stl_map.h:273:9: note: candidate: template<class _InputIterator> std::map<_Key, _Tp, _Compare, _Alloc>::map(_InputIterator, _InputIterator, const _Compare&, const allocator_type&)
         map(_InputIterator __first, _InputIterator __last,
         ^
/usr/include/c++/5/bits/stl_map.h:273:9: note:   template argument deduction/substitution failed:
/home/willzoe1604/myrobot_qt/src/src/qnode.cpp:176:6: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
      };
      ^
/home/willzoe1604/myrobot_qt/src/src/qnode.cpp:176:6: note:   cannot convert ‘{'j', {0, 0, 0, 1}}’ (type ‘<brace-enclosed initializer list>’) to type ‘const std::less<char>&’
In file included from /usr/include/c++/5/map:61:0,
                 from /opt/ros/kinetic/include/ros/console.h:42,
                 from /opt/ros/kinetic/include/ros/ros.h:40,
                 from /home/willzoe1604/myrobot_qt/src/src/qnode.cpp:13:
/usr/include/c++/5/bits/stl_map.h:256:9: note: candidate: template<class _InputIterator> std::map<_Key, _Tp, _Compare, _Alloc>::map(_InputIterator, _InputIterator)
         map(_InputIterator __first, _InputIterator __last)
         ^
/usr/include/c++/5/bits/stl_map.h:256:9: note:   template argument deduction/substitution failed:
/home/willzoe1604/myrobot_qt/src/src/qnode.cpp:176:6: note:   candidate expects 2 arguments, 20 provided
      };
      ^
In file included from /usr/include/c++/5/map:61:0,
                 from /opt/ros/kinetic/include/ros/console.h:42,
                 from /opt/ros/kinetic/include/ros/ros.h:40,
                 from /home/willzoe1604/myrobot_qt/src/src/qnode.cpp:13:
/usr/include/c++/5/bits/stl_map.h:185:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>::map(const std::map<_Key, _Tp, _Compare, _Alloc>&) [with _Key = char; _Tp = std::vector<float>; _Compare = std::less<char>; _Alloc = std::allocator<std::pair<const char, std::vector<float> > >]
       map(const map& __x)
       ^
/usr/include/c++/5/bits/stl_map.h:185:7: note:   candidate expects 1 argument, 20 provided
/usr/include/c++/5/bits/stl_map.h:174:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>::map(const _Compare&, const allocator_type&) [with _Key = char; _Tp = std::vector<float>; _Compare = std::less<char>; _Alloc = std::allocator<std::pair<const char, std::vector<float> > >; std::map<_Key, _Tp, _Compare, _Alloc>::allocator_type = std::allocator<std::pair<const char, std::vector<float> > >]
       map(const _Compare& __comp,
       ^
/usr/include/c++/5/bits/stl_map.h:174:7: note:   candidate expects 2 arguments, 20 provided
/usr/include/c++/5/bits/stl_map.h:162:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>::map() [with _Key = char; _Tp = std::vector<float>; _Compare = std::less<char>; _Alloc = std::allocator<std::pair<const char, std::vector<float> > >]
       map()
       ^
/usr/include/c++/5/bits/stl_map.h:162:7: note:   candidate expects 0 arguments, 20 provided
In file included from /home/willzoe1604/myrobot_qt/src/src/../include/cyrobot_monitor/main_window.hpp:16:0,
                 from /home/willzoe1604/myrobot_qt/src/src/main.cpp:14:
/home/willzoe1604/myrobot_qt/build/ui_main_window.h: In member function ‘void Ui_MainWindowDesign::setupUi(QMainWindow*)’:
/home/willzoe1604/myrobot_qt/build/ui_main_window.h:714:23: error: ‘class QPushButton’ has no member named ‘setTabletTracking’
         pushButton_i->setTabletTracking(false);
                       ^
In file included from /home/willzoe1604/myrobot_qt/src/src/../include/cyrobot_monitor/main_window.hpp:16:0,
                 from /home/willzoe1604/myrobot_qt/src/src/main_window.cpp:15:
/home/willzoe1604/myrobot_qt/build/ui_main_window.h: In member function ‘void Ui_MainWindowDesign::setupUi(QMainWindow*)’:
/home/willzoe1604/myrobot_qt/build/ui_main_window.h:714:23: error: ‘class QPushButton’ has no member named ‘setTabletTracking’
         pushButton_i->setTabletTracking(false);
                       ^
CMakeFiles/cyrobot_monitor.dir/build.make:278: recipe for target 'CMakeFiles/cyrobot_monitor.dir/src/qnode.cpp.o' failed
make[2]: *** [CMakeFiles/cyrobot_monitor.dir/src/qnode.cpp.o] Error 1
In file included from /home/willzoe1604/myrobot_qt/src/src/../include/cyrobot_monitor/main_window.hpp:22:0,
                 from /home/willzoe1604/myrobot_qt/src/src/main.cpp:14:
/home/willzoe1604/myrobot_qt/src/src/../include/cyrobot_monitor/CCtrlDashBoard.h: At global scope:
/home/willzoe1604/myrobot_qt/src/src/../include/cyrobot_monitor/CCtrlDashBoard.h:14:47: error: ‘nullptr’ was not declared in this scope
     explicit CCtrlDashBoard(QWidget *parent = nullptr, StyleType type=ST_DEFAULT);
                                               ^
In file included from /home/willzoe1604/myrobot_qt/src/src/main.cpp:14:0:
/home/willzoe1604/myrobot_qt/src/src/../include/cyrobot_monitor/main_window.hpp:133:48: error: ‘>>’ should be ‘> >’ within a nested template argument list
     QMap <QTreeWidgetItem*,QMap<QString,QString>> tree_rviz_values;
                                                ^
In file included from /home/willzoe1604/myrobot_qt/src/src/../include/cyrobot_monitor/main_window.hpp:22:0,
                 from /home/willzoe1604/myrobot_qt/src/src/main_window.cpp:15:
/home/willzoe1604/myrobot_qt/src/src/../include/cyrobot_monitor/CCtrlDashBoard.h: At global scope:
/home/willzoe1604/myrobot_qt/src/src/../include/cyrobot_monitor/CCtrlDashBoard.h:14:47: error: ‘nullptr’ was not declared in this scope
     explicit CCtrlDashBoard(QWidget *parent = nullptr, StyleType type=ST_DEFAULT);
                                               ^
In file included from /home/willzoe1604/myrobot_qt/src/src/main_window.cpp:15:0:
/home/willzoe1604/myrobot_qt/src/src/../include/cyrobot_monitor/main_window.hpp:133:48: error: ‘>>’ should be ‘> >’ within a nested template argument list
     QMap <QTreeWidgetItem*,QMap<QString,QString>> tree_rviz_values;
                                                ^
/home/willzoe1604/myrobot_qt/src/src/main_window.cpp: In member function ‘void cyrobot_monitor::MainWindow::quick_cmd_add()’:
/home/willzoe1604/myrobot_qt/src/src/main_window.cpp:837:5: warning: lambda expressions only available with -std=c++11 or -std=gnu++11
     });
     ^
/home/willzoe1604/myrobot_qt/src/src/main_window.cpp:837:6: error: no matching function for call to ‘cyrobot_monitor::MainWindow::connect(QPushButton*&, void (QAbstractButton::*)(bool), cyrobot_monitor::MainWindow::quick_cmd_add()::<lambda()>)’
     });
      ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qabstractanimation.h:37:0,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/QtCore:4,
                 from /usr/include/x86_64-linux-gnu/qt5/QtGui/QtGuiDepends:3,
                 from /usr/include/x86_64-linux-gnu/qt5/QtGui/QtGui:3,
                 from /home/willzoe1604/myrobot_qt/src/src/main_window.cpp:12:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:196:36: note: candidate: static QMetaObject::Connection QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)
     static QMetaObject::Connection connect(const QObject *sender, const char *signal,
                                    ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:196:36: note:   candidate expects 5 arguments, 3 provided
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:199:36: note: candidate: static QMetaObject::Connection QObject::connect(const QObject*, const QMetaMethod&, const QObject*, const QMetaMethod&, Qt::ConnectionType)
     static QMetaObject::Connection connect(const QObject *sender, const QMetaMethod &signal,
                                    ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:199:36: note:   candidate expects 5 arguments, 3 provided
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:475:32: note: candidate: QMetaObject::Connection QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const
 inline QMetaObject::Connection QObject::connect(const QObject *asender, const char *asignal,
                                ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:475:32: note:   no known conversion for argument 2 from ‘void (QAbstractButton::*)(bool)’ to ‘const char*’
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:213:43: note: candidate: template<class Func1, class Func2> static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2, Qt::ConnectionType)
     static inline QMetaObject::Connection connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal,
                                           ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:213:43: note:   template argument deduction/substitution failed:
/home/willzoe1604/myrobot_qt/src/src/main_window.cpp:837:6: note:   candidate expects 5 arguments, 3 provided
     });
      ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qabstractanimation.h:37:0,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/QtCore:4,
                 from /usr/include/x86_64-linux-gnu/qt5/QtGui/QtGuiDepends:3,
                 from /usr/include/x86_64-linux-gnu/qt5/QtGui/QtGui:3,
                 from /home/willzoe1604/myrobot_qt/src/src/main_window.cpp:12:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:245:13: note: candidate: template<class Func1, class Func2> static typename QtPrivate::QEnableIf<((int)(QtPrivate::FunctionPointer<Func2>::ArgumentCount) >= 0), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, Func2)
             connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, Func2 slot)
             ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:245:13: note:   template argument deduction/substitution failed:
/home/willzoe1604/myrobot_qt/src/src/main_window.cpp: In substitution of ‘template<class Func1, class Func2> static typename QtPrivate::QEnableIf<((int)(QtPrivate::FunctionPointer<Func2>::ArgumentCount) >= 0), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, Func2) [with Func1 = void (QAbstractButton::*)(bool); Func2 = cyrobot_monitor::MainWindow::quick_cmd_add()::<lambda()>]’:
/home/willzoe1604/myrobot_qt/src/src/main_window.cpp:837:6:   required from here
/home/willzoe1604/myrobot_qt/src/src/main_window.cpp:837:6: error: template argument for ‘template<class Func1, class Func2> static typename QtPrivate::QEnableIf<((int)(QtPrivate::FunctionPointer<Func2>::ArgumentCount) >= 0), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, Func2)’ uses local type ‘cyrobot_monitor::MainWindow::quick_cmd_add()::<lambda()>’
     });
      ^
/home/willzoe1604/myrobot_qt/src/src/main_window.cpp:837:6: error:   trying to instantiate ‘template<class Func1, class Func2> static typename QtPrivate::QEnableIf<((int)(QtPrivate::FunctionPointer<Func2>::ArgumentCount) >= 0), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, Func2)’
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qabstractanimation.h:37:0,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/QtCore:4,
                 from /usr/include/x86_64-linux-gnu/qt5/QtGui/QtGuiDepends:3,
                 from /usr/include/x86_64-linux-gnu/qt5/QtGui/QtGui:3,
                 from /home/willzoe1604/myrobot_qt/src/src/main_window.cpp:12:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:254:13: note: candidate: template<class Func1, class Func2> static typename QtPrivate::QEnableIf<(((int)(QtPrivate::FunctionPointer<Func2>::ArgumentCount) >= 0) && (! QtPrivate::FunctionPointer<Func2>::IsPointerToMemberFunction)), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType)
             connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, const QObject *context, Func2 slot,
             ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:254:13: note:   template argument deduction/substitution failed:
/home/willzoe1604/myrobot_qt/src/src/main_window.cpp:837:6: note:   cannot convert ‘<lambda closure object>cyrobot_monitor::MainWindow::quick_cmd_add()::<lambda()>{((cyrobot_monitor::MainWindow*)this), w, name_val, shell_val}’ (type ‘cyrobot_monitor::MainWindow::quick_cmd_add()::<lambda()>’) to type ‘const QObject*’
     });
      ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qabstractanimation.h:37:0,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/QtCore:4,
                 from /usr/include/x86_64-linux-gnu/qt5/QtGui/QtGuiDepends:3,
                 from /usr/include/x86_64-linux-gnu/qt5/QtGui/QtGui:3,
                 from /home/willzoe1604/myrobot_qt/src/src/main_window.cpp:12:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:285:13: note: candidate: template<class Func1, class Func2> static typename QtPrivate::QEnableIf<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == (-1)), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, Func2)
             connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, Func2 slot)
             ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:285:13: note:   template argument deduction/substitution failed:
/home/willzoe1604/myrobot_qt/src/src/main_window.cpp: In substitution of ‘template<class Func1, class Func2> static typename QtPrivate::QEnableIf<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == (-1)), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, Func2) [with Func1 = void (QAbstractButton::*)(bool); Func2 = cyrobot_monitor::MainWindow::quick_cmd_add()::<lambda()>]’:
/home/willzoe1604/myrobot_qt/src/src/main_window.cpp:837:6:   required from here
/home/willzoe1604/myrobot_qt/src/src/main_window.cpp:837:6: error: template argument for ‘template<class Func1, class Func2> static typename QtPrivate::QEnableIf<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == (-1)), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, Func2)’ uses local type ‘cyrobot_monitor::MainWindow::quick_cmd_add()::<lambda()>’
     });
      ^
/home/willzoe1604/myrobot_qt/src/src/main_window.cpp:837:6: error:   trying to instantiate ‘template<class Func1, class Func2> static typename QtPrivate::QEnableIf<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == (-1)), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, Func2)’
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qabstractanimation.h:37:0,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/QtCore:4,
                 from /usr/include/x86_64-linux-gnu/qt5/QtGui/QtGuiDepends:3,
                 from /usr/include/x86_64-linux-gnu/qt5/QtGui/QtGui:3,
                 from /home/willzoe1604/myrobot_qt/src/src/main_window.cpp:12:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:293:13: note: candidate: template<class Func1, class Func2> static typename QtPrivate::QEnableIf<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == (-1)), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType)
             connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, const QObject *context, Func2 slot,
             ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:293:13: note:   template argument deduction/substitution failed:
/home/willzoe1604/myrobot_qt/src/src/main_window.cpp:837:6: note:   cannot convert ‘<lambda closure object>cyrobot_monitor::MainWindow::quick_cmd_add()::<lambda()>{((cyrobot_monitor::MainWindow*)this), w, name_val, shell_val}’ (type ‘cyrobot_monitor::MainWindow::quick_cmd_add()::<lambda()>’) to type ‘const QObject*’
     });
      ^
/home/willzoe1604/myrobot_qt/src/src/main_window.cpp: In member function ‘void cyrobot_monitor::MainWindow::ReadSettings()’:
/home/willzoe1604/myrobot_qt/src/src/main_window.cpp:1081:14: error: ‘c’ does not name a type
     for(auto c:ch_key)
              ^
/home/willzoe1604/myrobot_qt/src/src/main_window.cpp:1086:1: error: expected ‘;’ before ‘}’ token
 }
 ^
/home/willzoe1604/myrobot_qt/src/src/main_window.cpp:1086:1: error: expected primary-expression before ‘}’ token
/home/willzoe1604/myrobot_qt/src/src/main_window.cpp:1086:1: error: expected ‘;’ before ‘}’ token
/home/willzoe1604/myrobot_qt/src/src/main_window.cpp:1086:1: error: expected primary-expression before ‘}’ token
/home/willzoe1604/myrobot_qt/src/src/main_window.cpp:1086:1: error: expected ‘)’ before ‘}’ token
/home/willzoe1604/myrobot_qt/src/src/main_window.cpp:1086:1: error: expected primary-expression before ‘}’ token
CMakeFiles/cyrobot_monitor.dir/build.make:252: recipe for target 'CMakeFiles/cyrobot_monitor.dir/src/main.cpp.o' failed
make[2]: *** [CMakeFiles/cyrobot_monitor.dir/src/main.cpp.o] Error 1
CMakeFiles/cyrobot_monitor.dir/build.make:265: recipe for target 'CMakeFiles/cyrobot_monitor.dir/src/main_window.cpp.o' failed
make[2]: *** [CMakeFiles/cyrobot_monitor.dir/src/main_window.cpp.o] Error 1
CMakeFiles/Makefile2:766: recipe for target 'CMakeFiles/cyrobot_monitor.dir/all' failed
make[1]: *** [CMakeFiles/cyrobot_monitor.dir/all] Error 2
Makefile:157: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j8 -l8" failed

点击连接按钮后界面闪退

当我运行程序,如下图所示填写好主节点地址本机IP之后,点击连接按钮,程序界面会发生闪退。
Screenshot from 2020-05-09 04-20-41

如何打包linux下的QT包

你好,古月居4期课程全部买了,第四期说到windows打包问题,linux 下qtcreate 怎么进行打包,release时候一直报错,请问linux下的打包如何做,专题论坛上也没人问,有QQ群或者微信群吗。方便的话留个QQ出个博客也可以。

编译错误

bug描述
catkkin_make报错

[ 95%] Linking CXX executable /home/mailonghua/ros_ws/devel/lib/cyrobot_monitor/cyrobot_monitor
CMakeFiles/cyrobot_monitor.dir/src/qnode.cpp.o: In function cv::Mat::Mat(int, int, int, void*, unsigned long)': qnode.cpp:(.text._ZN2cv3MatC2EiiiPvm[_ZN2cv3MatC5EiiiPvm]+0x150): undefined reference to cv::error(int, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, char const*, char const*, int)'
qnode.cpp:(.text._ZN2cv3MatC2EiiiPvm[_ZN2cv3MatC5EiiiPvm]+0x244): undefined reference to cv::error(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*, char const*, int)' qnode.cpp:(.text._ZN2cv3MatC2EiiiPvm[_ZN2cv3MatC5EiiiPvm]+0x2cc): undefined reference to cv::Mat::updateContinuityFlag()'
collect2: error: ld returned 1 exit status
third_packages/Ros_Qt5_Gui_App/CMakeFiles/cyrobot_monitor.dir/build.make:852: recipe for target '/home/mailonghua/ros_ws/devel/lib/cyrobot_monitor/cyrobot_monitor' failed
make[2]: *** [/home/mailonghua/ros_ws/devel/lib/cyrobot_monitor/cyrobot_monitor] Error 1
CMakeFiles/Makefile2:5892: recipe for target 'third_packages/Ros_Qt5_Gui_App/CMakeFiles/cyrobot_monitor.dir/all' failed
make[1]: *** [third_packages/Ros_Qt5_Gui_App/CMakeFiles/cyrobot_monitor.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed

操作步骤

catkin_make

分支名及平台:

  • 平台:运行平台jetson nano
    -jetpack 4.6

widget_speed y is not subscribing rotational speed

I'm trying to learn to make GUI with qt qreator (ros industrial) using your code.
I found some errors in the y speed widget which should have been corresponding to rotational speed.
It is not responding.
I tried to edit the callback function from qnode.cpp, but I could't make it work.
Do you have any ideas?
Thank you

上位机如何控制工控机?

我借助您的代码想学习如何利用上位机通过WIFI远程控制工控机,进而控制四轮小车,想问问这一部分是不是就是您代码里到connection部分?

Change Language

This isnt a bug but is there any way to change the language in the interface to english ?

rviz画bezier

你好,请问如何在rviz里画曲线呢,就像CAD那样画线

RVIZ problem

開發者您好

再使用您的GUI介面時發現RVIZ的選項都無法選取與檢視請問是甚麼原因呢(目前沒有連上車子是因為這樣嗎XD

显示的坐标和原始rviz的坐标不匹配

我监听鼠标的坐标信息,转换为全局坐标后发现,显示地图的原点在左下角,而原始的rviz的(map)地图左下角是yaml中x,y的值。是什么原因导致这个差别的呢

CCtrlDashBoard导入一直报错

CMakeFiles/robot_arm_ui.dir/src/CCtrlDashBoard.cpp.o: In function CCtrlDashBoard::CCtrlDashBoard(QWidget*, CCtrlDashBoard::StyleType)': CCtrlDashBoard.cpp:(.text+0x4e): undefined reference to vtable for CCtrlDashBoard'
CCtrlDashBoard.cpp:(.text+0x5c): undefined reference to `vtable for CCtrlDashBoard'
collect2: error: ld returned 1 exit status

cpp .h文件导入后会报这样错误,重新编译也解决不了。QT小白 不吝赐教

🌟 心愿/需求单

大家如果有什么有意思的界面/功能需求,可以提在此处。也欢迎大家一起发起Merge Request 一起参与项目建设

关于在远程端进行连接不上机器人的问题

我现在对于软件的使用存在以下几个疑问:
1、本软件是否只能安装在机器人自身的工控机内?

2、我使用ubuntu18的上位机远程连接机器人的工控机(jetsonnano),我需要把这个软件安装在哪一端呢?如果安装在笔记本上位机端,我需要怎样配置才能连接到机器人上。目前我安装在笔记本端,但是无法连接到机器人。

Cannot choose point name in task when adding point.

Bug Description
Cannot choose point name in task when adding point.
There is no content in combobox.
Screenshot from 2024-04-28 21-51-07

Steps
Steps to reproduce the behavior:

  1. Add point by edit map
  2. Add point to task

Branch Name and Platform:

  • Platform: ubuntu

RVIZ: Display does not exist

您好,非常感谢您的开源!
我在使用过程中遇到这个问题, 在rviz面板中增加订阅消息后出现下面的错误,百度出来的一些方法没能解决, 请问在这里该怎么解决呢?实验平台:ubuntu16.04+ORS-Kinetic。

PluginlibFactory: The plugin for class '' failed to load. Error: According to the loaded plugin descriptions the class with base class type rviz::Display does not exist. Declared types are Submaps rviz/Axes rviz/Camera rviz/DepthCloud rviz/Effort rviz/FluidPressure rviz/Grid rviz/GridCells rviz/Illuminance rviz/Image rviz/InteractiveMarkers rviz/LaserScan rviz/Map rviz/Marker rviz/MarkerArray rviz/Odometry rviz/Path rviz/PointCloud rviz/PointCloud2 rviz/PointStamped rviz/Polygon rviz/Pose rviz/PoseArray rviz/PoseWithCovariance rviz/Range rviz/RelativeHumidity rviz/RobotModel rviz/TF rviz/Temperature rviz/WrenchStamped rviz_imu_plugin/Imu rviz_plugin_tutorials/Imu

祝好!

Turtlebot4 Subscribe issues

bug描述
When starting the program i get the following error for battery and also for odom

"New publisher discovered on topic '/odom', offering incompatible QoS. "

Any ideas ? i am running ros2 humble , nav works as does the joystick and also the keypad move panel , but battery and speed reports the errors stated. hope you can help :-)

Thanks
Kurt

老师好,购买了课程,出现了这个问题,没有搜索到解答的问题,

qtcreator 打开主分支工程,按照课堂上的操作步骤出现的问题,目前的环境是ubuntu18.04, 虚拟机,也是很纯净的一个环境.

Project ERROR: You need to set the ANDROID_NDK_ROOT environment variable to point to your Android NDK.
Could not read qmake configuration file /opt/Qt5.14.2/5.14.2/android/mkspecs/android-clang/qmake.conf.
Running "/usr/bin/cmake -E server --pipe=/tmp/cmake-.UpqsUI/socket --experimental" in /home/steven/catkin_ws/build.
Starting to parse CMake project.
Using CATKIN_DEVEL_PREFIX: /home/steven/catkin_ws/devel
Using CMAKE_PREFIX_PATH:
Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.17", minimum required is "2")
Using PYTHON_EXECUTABLE: /usr/bin/python2
Using Debian Python package layout
Using empy: /usr/bin/empy
Using CATKIN_ENABLE_TESTING: ON
Call enable_testing()
Using CATKIN_TEST_RESULTS_DIR: /home/steven/catkin_ws/build/test_results
Found gtest sources under '/usr/src/googletest': gtests will be built
Found gmock sources under '/usr/src/googletest': gmock will be built
Found PythonInterp: /usr/bin/python2 (found version "2.7.17")
Using Python nosetests: /usr/bin/nosetests-2.7
catkin 0.7.29
BUILD_SHARED_LIBS is on
CMake Error at /opt/ros/melodic/share/catkin/cmake/safe_execute_process.cmake:11 (message):
execute_process(/usr/bin/python2
"/home/steven/catkin_ws/build/catkin_generated/generate_cached_setup.py")
returned error code 1
Call Stack (most recent call first):
/opt/ros/melodic/share/catkin/cmake/all.cmake:208 (safe_execute_process)
/opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:20 (include)
CMakeLists.txt:58 (find_package)

Configuring incomplete, errors occurred!
See also "/home/steven/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/steven/catkin_ws/build/CMakeFiles/CMakeError.log".
CMake Project parsing failed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.