ros的roslibjs基本功能使用测试(代码片段)

scruffybear scruffybear     2022-11-30     193

关键词:

文章目录

小结

成功测试了roslibjs的基本功能。

进行roslibjs的安装

安装nodejs

john@ubuntu:~$ sudo apt-get install nodejs

john@ubuntu:~$ sudo apt-get install npm

安装roslibjs

john@ubuntu:~/roslibjs$ pwd
/home/john/roslibjs
john@ubuntu:~/roslibjs$ 
john@ubuntu:~$ git clone https://github.com/RobotWebTools/roslibjs.git
john@ubuntu:~/roslibjs$ npm install
#提示需要执行npm audit fix
john@ubuntu:~/roslibjs$ npm audit fix
#重新安装
john@ubuntu:~/roslibjs$ npm install

这里的主要测试html的代码是simple.html, 参考https://github.com/RobotWebTools/roslibjs/blob/develop/examples/simple.html

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<script src="https://static.robotwebtools.org/EventEmitter2/current/eventemitter2.min.js"></script>
<script src="../build/roslib.js"></script>

<script>
  // Connecting to ROS
  // -----------------
  var ros = new ROSLIB.Ros();

  // If there is an error on the backend, an 'error' emit will be emitted.
  ros.on('error', function(error) 
    document.getElementById('connecting').style.display = 'none';
    document.getElementById('connected').style.display = 'none';
    document.getElementById('closed').style.display = 'none';
    document.getElementById('error').style.display = 'inline';
    console.log(error);
  );

  // Find out exactly when we made a connection.
  ros.on('connection', function() 
    console.log('Connection made!');
    document.getElementById('connecting').style.display = 'none';
    document.getElementById('error').style.display = 'none';
    document.getElementById('closed').style.display = 'none';
    document.getElementById('connected').style.display = 'inline';
  );

  ros.on('close', function() 
    console.log('Connection closed.');
    document.getElementById('connecting').style.display = 'none';
    document.getElementById('connected').style.display = 'none';
    document.getElementById('closed').style.display = 'inline';
  );

  // Create a connection to the rosbridge WebSocket server.
  ros.connect('ws://localhost:9090');

  // Publishing a Topic
  // ------------------

  // First, we create a Topic object with details of the topic's name and message type.
  var cmdVel = new ROSLIB.Topic(
    ros : ros,
    name : '/cmd_vel',
    messageType : 'geometry_msgs/Twist'
  );

  // Then we create the payload to be published. The object we pass in to ros.Message matches the
  // fields defined in the geometry_msgs/Twist.msg definition.
  var twist = new ROSLIB.Message(
    linear : 
      x : 0.1,
      y : 0.2,
      z : 0.3
    ,
    angular : 
      x : -0.1,
      y : -0.2,
      z : -0.3
    
  );

  // And finally, publish.
  cmdVel.publish(twist);

  //Subscribing to a Topic
  //----------------------

  // Like when publishing a topic, we first create a Topic object with details of the topic's name
  // and message type. Note that we can call publish or subscribe on the same topic object.
  var listener = new ROSLIB.Topic(
    ros : ros,
    name : '/listener',
    messageType : 'std_msgs/String'
  );

  // Then we add a callback to be called every time a message is published on this topic.
  listener.subscribe(function(message) 
    console.log('Received message on ' + listener.name + ': ' + message.data);

    // If desired, we can unsubscribe from the topic as well.
    listener.unsubscribe();
  );

  // Calling a service
  // -----------------

  // First, we create a Service client with details of the service's name and service type.
  var addTwoIntsClient = new ROSLIB.Service(
    ros : ros,
    name : '/add_two_ints',
    serviceType : 'rospy_tutorials/AddTwoInts'
  );

  // Then we create a Service Request. The object we pass in to ROSLIB.ServiceRequest matches the
  // fields defined in the rospy_tutorials AddTwoInts.srv file.
  var request = new ROSLIB.ServiceRequest(
    a : 1,
    b : 2
  );

  // Finally, we call the /add_two_ints service and get back the results in the callback. The result
  // is a ROSLIB.ServiceResponse object.
  addTwoIntsClient.callService(request, function(result) 
    console.log('Result for service call on ' + addTwoIntsClient.name + ': ' + result.sum);
  );

  // Advertising a Service
  // ---------------------

  // The Service object does double duty for both calling and advertising services
  var setBoolServer = new ROSLIB.Service(
    ros : ros,
    name : '/set_bool',
    serviceType : 'std_srvs/SetBool'
  );

  // Use the advertise() method to indicate that we want to provide this service
  setBoolServer.advertise(function(request, response) 
    console.log('Received service request on ' + setBoolServer.name + ': ' + request.data);
    response['success'] = true;
    response['message'] = 'Set successfully';
    return true;
  );

  // Setting a param value
  // ---------------------

  ros.getParams(function(params) 
    console.log(params);
  );

  // First, we create a Param object with the name of the param.
  var maxVelX = new ROSLIB.Param(
    ros : ros,
    name : 'max_vel_y'
  );

  //Then we set the value of the param, which is sent to the ROS Parameter Server.
  maxVelX.set(0.8);
  maxVelX.get(function(value) 
    console.log('MAX VAL: ' + value);
  );

  // Getting a param value
  // ---------------------

  var favoriteColor = new ROSLIB.Param(
    ros : ros,
    name : 'favorite_color'
  );

  favoriteColor.set('red');
  favoriteColor.get(function(value) 
    console.log('My robot\\'s favorite color is ' + value);
  );
</script>
</head>

<body>
  <h1>Simple roslib Example</h1>
  <p>Run the following commands in the terminal then refresh this page. Check the JavaScript
    console for the output.</p>
  <ol>
    <li><tt>roscore</tt></li>
    <li><tt>rostopic pub /listener std_msgs/String "Hello, World"</tt></li>
    <li><tt>rostopic echo /cmd_vel</tt></li>
    <li><tt>rosrun rospy_tutorials add_two_ints_server</tt></li>
    <li><tt>roslaunch rosbridge_server rosbridge_websocket.launch</tt></li>
  </ol>
  <div id="statusIndicator">
    <p id="connecting">
      Connecting to rosbridge...
    </p>
    <p id="connected" style="color:#00D600; display:none">
      Connected
    </p>
    <p id="error" style="color:#FF0000; display:none">
      Error in the backend!
    </p>
    <p id="closed" style="display:none">
      Connection closed.
    </p>
  </div>
</body>
</html>

进行测试

将文件file:///home/john/roslibjs/examples/simple.html拖入到Firefox中去,打开后Firefox窗口中有如下显示:

Simple roslib Example

  1. roscore
  2. rostopic pub /listener std_msgs/String “Hello, World”
  3. rostopic echo /cmd_vel
  4. rosrun rospy_tutorials add_two_ints_server
  5. roslaunch rosbridge_server rosbridge_websocket.launch

Connected

经过测试后,命令行的输出如下(开不同的窗口):
启动roscore:

john@ubuntu:~$ roscore
... logging to /home/john/.ros/log/9ce7d29e-119b-11ed-ad09-9d6885123387/roslaunch-ubuntu-14886.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://ubuntu:45603/
ros_comm version 1.15.14


SUMMARY
========

PARAMETERS
 * /rosdistro: noetic
 * /rosversion: 1.15.14

NODES

auto-starting new master
process[master]: started with pid [14895]
ROS_MASTER_URI=http://ubuntu:11311/

setting /run_id to 9ce7d29e-119b-11ed-ad09-9d6885123387
process[rosout-1]: started with pid [14906]
started core service [/rosout]

rostopic pub /listener std_msgs/String "Hello, World"输出:

john@ubuntu:~$ rostopic pub /listener std_msgs/String "Hello, World"
publishing and latching message. Press ctrl-C to terminate

监测/cmd_vel的输出,接收simple.html的输入:

john@ubuntu:~$ rostopic echo /cmd_vel
WARNING: topic [/cmd_vel] does not appear to be published yet
linear: 
  x: 0.1
  y: 0.2
  z: 0.3
angular: 
  x: -0.1
  y: -0.2
  z: -0.3
---

`roslaunch rosbridge_server rosbridge_websocket.launch`的输出:
```shell
john@ubuntu:~$ roslaunch rosbridge_server rosbridge_websocket.launch
... logging to /home/john/.ros/log/9ce7d29e-119b-11ed-ad09-9d6885123387/roslaunch-ubuntu-15411.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://ubuntu:43691/

SUMMARY
========

PARAMETERS
 * /rosapi/params_glob: [*]
 * /rosapi/services_glob: [*]
 * /rosapi/topics_glob: [*]
 * /rosbridge_websocket/address: 0.0.0.0
 * /rosbridge_websocket/authenticate: False
 * /rosbridge_websocket/bson_only_mode: False
 * /rosbridge_websocket/delay_between_messages: 0
 * /rosbridge_websocket/fragment_timeout: 600
 * /rosbridge_websocket/max_message_size: None
 * /rosbridge_websocket/params_glob: [*]
 * /rosbridge_websocket/port: 9090
 * /rosbridge_websocket/retry_startup_delay: 5
 * /rosbridge_websocket/services_glob: [*]
 * /rosbridge_websocket/topics_glob: [*]
 * /rosbridge_websocket/unregister_timeout: 10
 * /rosbridge_websocket/use_compression: False
 * /rosbridge_websocket/websocket_external_port: None
 * /rosbridge_websocket/websocket_ping_interval: 0
 * /rosbridge_websocket/websocket_ping_timeout: 30
 * /rosdistro: noetic
 * /rosversion: 1.15.14

NODES
  /
    rosapi (rosapi/rosapi_node)
    rosbridge_websocket (rosbridge_server/rosbridge_websocket)

ROS_MASTER_URI=http://localhost:11311

process[rosbridge_websocket-1]: started with pid [15432]
process[rosapi-2]: started with pid [15434]
2022-08-01 21:13:32+0800 [-] Log opened.
[INFO] [1659359612.771473]: Rosapi started
2022-08-01 21:13:32+0800 [-] registered capabilities (classes):
2022-08-01 21:13:32+0800 [-]  - <class 'rosbridge_library.capabilities.call_service.CallService'>
2022-08-01 21:13:32+0800 [-]  - <class 'rosbridge_library.capabilities.advertise.Advertise'>
2022-08-01 21:13:32+0800 [-]  - <class 'rosbridge_library.capabilities.publish.Publish'>
2022-08-01 21:13:32+0800 [-]  - <class 'rosbridge_library.capabilities.subscribe.Subscribe'>
2022-08-01 21:13:32+0800 [-]  - <class 'rosbridge_library.capabilities.defragmentation.Defragment'>
2022-08-01 21:13:32+0800 [-]  - <class 'rosbridge_library.capabilities.advertise_service.AdvertiseService'>
2022-08-01 21:13:32+0800 [-]  - <class 'rosbridge_library.capabilities.service_response.ServiceResponse'>
2022-08-01 21:13:32+0800 [-]  - <class 'rosbridge_library.capabilities.unadvertise_service.UnadvertiseService'>
2022-08-01 21:13:33+0800 [-] WebSocketServerFactory starting on 9090
2022-08-01 21:13:33+0800 [-] Starting factory <autobahn.twisted.websocket.WebSocketServerFactory object at 0x7fe5550d17f0>
2022-08-01 21:13:33+0800 [-] [INFO] [1659359613.034557]: Rosbridge WebSocket server started at ws://0.0.0.0:9090
2022-08-01 21:43:13+0800 [-] [INFO] [1659361393.971597]: Client connected.  1 clients total.
2022-08-01 21:43:14+0800 [-] [ERROR] [1659361394.318899]: [Client 0] [id: advertise:/tf2_web_republisher/goal:1] advertise: Unable to load the manifest for package tf2_web_republisher. Caused by: tf2_web_republisher
2022-08-01 21:43:14+0800 [-] ROS path [0]=/opt/ros/noetic/share/ros
2022-08-01 21:43:14+0800 [-] ROS path [1]=/home/john/jetmax/src
2022-08-01 21:43:14+0800 [-] ROS path [2]=/home/john/catkin_ws/src
2022-08-01 21:43:14+0800 [-] ROS path [3]=/opt/ros/noetic/share
2022-08-01 21:43:15+0800 [-] [ERROR] [1659361395.049878]: [Client 0] [id: subscribe:/tf2_web_republisher/feedback:3] subscribe: Unable to load the manifest for package tf2_web_republisher. Caused by: tf2_web_republisher
2022-08-01 21:43:15+0800 [-] ROS path [0]=/opt/ros/noetic/share/ros
2022-08-01 21:43:15+0800 [-] ROS path [1]=/home/john/jetmax/src
2022-08-01 21:43:15+0800 [-] ROS path [2]=/home/john/catkin_ws/src
2022-08-01 21:43:15+0800 [-] ROS path [3]=/opt/ros/noetic/share
2022-08-01 21:43:15+0800 [-] [ERROR] [1659361395.054902]: [Client 0] [id: publish:/tf2_web_republisher/goal:4] publish: Cannot infer topic type for topic /tf2_web_republisher/goal as it is not yet advertised
2022-08-01 21:43:20+0800 [-] [INFO] [1659361400.824869]: Client disconnected. 0 clients total.
2022-08-01 21:43:21+0800 [-] [INFO] [1659361401.006295]: Client connected.  1 clients total.
2022-08-01 21:43:21+0800 [-] [ERROR] [1659361401.142243]: [Client 1] [id: advertise:/tf2_web_republisher/goal:1] advertise: Unable to load the manifest for package tf2_web_republisher. Caused by: tf2_web_republisher
2022-08-01 21:43:21+0800 [-] ROS path [0]=/opt/ros/noetic/share/ros
2022-08-01 21:43:21+0800 [-] ROS path [1]=/home/john/jetmax/src
2022-08-01 21:43:21+0800 [-] ROS path [2]=/home/john/catkin_ws/src
2022-08-01 21:43:21+0800 [-] ROS path [3]=/opt/ros/noetic/share
2022-08-01 21:43:21+0800 [-] [ERROR] [1659361401.146786]: [Client 1] [id: subscribe:/tf2_web_republisher/feedback:3] subscribe: Unable to load the manifest for package tf2_web_republisher. Caused by: tf2_web_republisher
2022-08-01 21:43:21+0800 [-] ROS path [0]=/opt/ros/noetic/share/ros
2022-08-01 21:43:21+0800 [-] ROS path [1]=/home/john/jetmax/src
2022-08-01 21:43:21+0800 [-] ROS path [2]=/home/john/catkin_ws/src
2022-08-01 21:43:21+0800 [-] ROS path [3]=/opt/ros/noetic/share
2022-08-01 21:43:21+0800 [-] [ERROR] [1659361401.154688]: [Client 1] [id: publish:/tf2_web_republisher/goal:4] publish: Cannot infer topic type for topic /tf2_web_republisher/goal as it is not yet advertised
2022-08-01 21:45:54+0800 [-] [INFO] [1659361554.937012]: Client disconnected. 0 clients total.
2022-08-01 21:45:55+0800 [-] [INFO] [1659361555.125830]: Client connected.  1 clients total.
2022-08-01 21:45:55+0800 [-] [ERROR] [1659361555.218223]: [Client 2] [id: advertise:/tf2_web_republisher/goal:1] advertise: Unable to load the manifest for package tf2_web_republisher. Caused by: tf2_web_republisher
2022-08-01 21:45:55+0800 [-] ROS path [0]=/opt/ros/noetic/share/ros
2022-08-01 21:45:55+0800 [-] ROS path [1]=/home/john/jetmax/src
2022-08-01 21:45:55+0800 [-] ROS path [2]=/home/john/catkin_ws/src
2022-08-01 21:45:55+0800 [-] ROS path [3]=/opt/ros/noetic/share
2022-08-01 21:45:55+0800 [-] [ERROR] [1659361555.223203]: [Client 2] [id: subscribe:/tf2_web_republisher/feedback:3] subscribe: Unable to load the manifest for package tf2_web_republisher. Caused by: tf2_web_republisher
2022-08-01 21:45:55+0800 [-] ROS path [0]=/opt/ros/noetic/share/ros
2022-08-01 21:45:55+0800 [-] ROS path [1]=/home/john/jetmax/src
2022-08-01 21:45:55+0800 [-] ROS path [2]=/home/john/catkin_ws/src
2022-08-01 21:45:55+0800 [-] ROS path [3]=/opt/ros/noetic/share
2022-08-01 21:45:55+0800 [-] [ERROR] [1659361555.227773]: [Client 2] [id: publish:/tf2_web_republisher/goal:4] publish: Cannot infer topic type for topic /tf2_web_republisher/goal as it is not yet advertised
2022-08-01 21:46:22+0800 [-] [INFO] [1659361582.056263]: Client disconnected. 0 clients total.
2022-08-01 21:46:26+0800 [-] [INFO] [1659361586.740728]: Client connected.  1 clients total.
2022-08-01 21:46:26+0800 [-] [INFO] [1659361586.873740]: [Client 3] Subscribed to /listener
2022-08-01 21:46:26+0800 [-] [INFO] [1659361586.910506]: [Client 3] Advertised service /set_bool.
2022-08-01 21:46:26+0800 [-] [INFO] [1659361586.959539]: [Client 3] Unsubscribed from /listener
2022-08-01 21:50:56+0800 [-] [INFO] [1659361856.983826]: Client disconnected. 0 clients total.
2022-08-01 21:50:57+0800 [-] [INFO] [1659361857.427746]: Client connected.  1 clients total.
2022-08-01 21:50:57+0800 [-] [INFO] [1659361857.462512]: [Client 4] Subscribed to /listener
2022-08-01 21:50:57+0800 [-] [WARN] [1659361857.465272]: [Client 4] Duplicate service advertised. Overwriting /set_bool.
2022-08-01 21:50:57+0800 [-] [INFO] [1659361857.481433]: [Client 4] Advertised service /set_bool.
2022-08-01 21:50:57+0800 [-] [INFO] [1659361857.527972]: [Client 4] Unsubscribed from /listener

rosrun rospy_tutorials add_two_ints_server的输出,进行了1+2=3的服务调用:

john@ubuntu:~$ rosrun rospy_tutorials add_two_ints_server
Returning [1 + 2 = 3]

Ctrl + Shift + K 打开Firefox的Console窗口,在Firefox的console窗口里有以下输出,与simple.html的源代码匹配,测试成功。

Connection closed. simple.html:32:13
Connection made! simple.html:24:13
Result for service call on /add_two_ints: 3 simple.html:108:13
Received message on /listener: Hello, World simple.html:82:13
Array(27) [ "/run_id", "/roslaunch/uris/host_ubuntu__45603", "/roslaunch/uris/host_ubuntu__43691", "/rosversion", "/rosdistro", "/rosbridge_websocket/authenticate", "/rosbridge_websocket/port", "/rosbridge_websocket/address", "/rosbridge_websocket/retry_startup_delay", "/rosbridge_websocket/fragment_timeout", … ]0: "/run_id"1: "/roslaunch/uris/host_ubuntu__45603"2: "/roslaunch/uris/host_ubuntu__43691"3: "/rosversion"4: "/rosdistro"5: "/rosbridge_websocket/authenticate"6: "/rosbridge_websocket/port"7: "/rosbridge_websocket/address"8: "/rosbridge_websocket/retry_startup_delay"9: "/rosbridge_websocket/fragment_timeout"10: "/rosbridge_websocket/delay_between_messages"11: "/rosbridge_websocket/max_message_size"12: "/rosbridge_websocket/unregister_timeout"13: "/rosbridge_websocket/use_compression"14: "/rosbridge_websocket/websocket_ping_interval"15: "/rosbridge_websocket/websocket_ping_timeout"16: "/rosbridge_websocket/websocket_external_port"17: "/rosbridge_websocket/topics_glob"18: "/rosbridge_websocket/services_glob"19: "/rosbridge_websocket/params_glob"20: "/rosbridge_websocket/bson_only_mode"21: "/rosbridge_websocket/actual_port"22: "/rosapi/topics_glob"23: "/rosapi/services_glob"24: "/rosapi/params_glob"25: "/favorite_color"26: "/max_vel_y"
​
length: 27<prototype>: Array []
simple.html:133:13
MAX VAL: 0.8 simple.html:145:13
My robot's favorite color is red simple.html:158:13

参考

解决在Ubuntu安装nodejs,roslibjs时出现的问题
关于js和ros进行交互roslibjs
Basic ROS functionality with roslibjs
https://github.com/RobotWebTools/roslibjs/blob/develop/examples/simple.html
SIMPLE TUTORIAL ON ROSBRIDGE AND ROSLIBJS
ROS与javascript入门教程-roslibjs-基本功能

golangtesting的基本使用(代码片段)

golang的测试功能测试功能基准测试内存分配测试并发测试参考测试功能如果你实现一个方法or函数,就应该使用test程序验证功能是否正确。比如这样:add.gofuncAdd(aint,bint)int returna+bfuncAddThree(aint,bint,cint)int returna+b+c... 查看详情

typescript简单的茉莉花单元测试,测试基本功能(代码片段)

查看详情

ros-4:ros节点和主题(代码片段)

...actionlib、actionlib_msgs,并构建该空功能包。ROS中节点间的基本通讯方式是topic,即publish/subscribe模式。以下介绍如何创建两个两个节点分别发布和订阅一个主题。一、创建 查看详情

创建一个ros功能包(代码片段)

 一、创建并配置工作空间(workspace)  工作空间是存放工程开发相关文件的文件夹,现在较新版本的ROS默认使用catkin编译系统,该编译系统的空间比较特殊,所以需要特殊的方式创建。  1、创建工作空间    mkdir-p~/catkin... 查看详情

ros使用命令测试topic(代码片段)

 发布话题$rostopicpub-r10/chatterstd_msgs/String"test"输出数据:$rostopicecho/chatterdata:test---data:test---data:test---data:test---data:test---data:test   查看详情

测试mm32micropython测试电路板的基本功能(代码片段)

...§01测试板简介  在测试逐飞的MM32F3277MicroPython开发板的基本功能中对于来自于逐飞的MM32MicroPython测试模块的基本功能进行了初步测试。包括 查看详情

ros之choro功能包(代码片段)

使用choro可以快速查找管理功能包,类似ubuntu的apt。非常方便快捷。如下:C:\\ros_ws>chocosearchros-foxy-desktopChocolateyv0.10.15ros-foxy-desktop20201211.0.0.21043000011packagesfound.简洁版:ros-catkin-tools0.0. 查看详情

ros与激光雷达入门-ros中使用激光雷达(rplidar)(代码片段)

...岚(rplidar)A1,通过ros系统去驱动激光雷达,现在做了一个基本的入门。RPLIDAR是低成本的二维雷达解决方案,由SlamTec公司的RoboPeak团队开发。它能扫描360°,12米半径的范围。它适合用于构建地图,SLAM,和建立3D模型。安装建立... 查看详情

mac下gtest的基本使用(代码片段)

Mac下GTest的基本使用gtest全称GoogleC++TestingFramework,它是从谷歌内部诞生并受到业界追捧的一个非常优秀的测试框架,支持如自动发现测试、自定义断言、死亡测试、自动报告等诸多功能。本文记录Mac下安装配置gtest以及它的基本... 查看详情

使用rosserial实现ros与windows的service服务通信(代码片段)

...顾:rosserialwindows实现rostopic的发布和订阅正题:使用rosserial实现ROS与Windows的service服务通信启动roscore启动add_two_ints的服务并测试使用rosserialWindowsclientC++实现与ROS的add_two_intsservice服务通信成功的测试结果参考小结使 查看详情

pytest基础(代码片段)

文章目录一、pytest简介二、基本功能三、运行一、pytest简介Pytest是一个测试框架,其将测试常用的内容都包含进来了,如生成测试报告、生成覆盖率报告等。而且Pytest提供插件功能,很多开发人员可以通过开发Pytest插件来扩展Pyt... 查看详情

ros2极简总结-坐标变换-tf(代码片段)

...与ROS2中的大多数功能一样,TF2API仍在开发中,但基本功能已经可 查看详情

基于clion,在ros中使用gtest进行单元测试(代码片段)

...GTestCLion在进行ROS开发的过程中,需要进行GTest单元测试,使用的IDE为CLion,下面将讲述具体的配置方法。安装GTest使用下列命令安装GTest。sudoapt-getinstalllibgtest-dev配置CMakeList.txt在ROS中的package对应的CMakeLIst.txt中,添加对应的脚本指... 查看详情

4.1ros元功能包(代码片段)

4.1ROS元功能包场景:完成ROS中一个系统性的功能,可能涉及到多个功能包,比如实现了机器人导航模块,该模块下有地图、定位、路径规划...等不同的子级功能包。那么调用者安装该模块时,需要逐一的安装每一个功能包吗?显... 查看详情

ros官方教程知识点总结[低阶阶段](代码片段)

1安装和配置ROS环境为了方便引用ROS的功能包,我们最好在一开始就将source/opt/ros/noetic/setup.bash添加到~/.bashrc文件中,而不是每打开一个终端后输入一次该命令。对于使用Python3的用户,为了告知ROS您的功能包是基于pytho... 查看详情

ros官方教程知识点总结[低阶阶段](代码片段)

1安装和配置ROS环境为了方便引用ROS的功能包,我们最好在一开始就将source/opt/ros/noetic/setup.bash添加到~/.bashrc文件中,而不是每打开一个终端后输入一次该命令。对于使用Python3的用户,为了告知ROS您的功能包是基于pytho... 查看详情

6.22(代码片段)

测试基础优秀的测试人员的基本素质1、参与需求讨论,制订测试计划,确保测试能顺利执行并完成。2、负责项目的功能性测试、用户体验测试、兼容性测试以及性能测试3、负责测试用例的编写;编写测试报告和对测试结果分析... 查看详情

mybatis-plus工具学习笔记---[基本概述,入门案例搭建,通用service接口使用](代码片段)

文章目录1.基本概述2.入门案例搭建3.BaseMapper3.1新增功能测试3.2删除功能测试3.2更新功能测试3.4查询功能测试3.5测试自定义功能4.通用Service接口4.1测试查询总记录数4.2测试批量存储数据功能近期也是计划学习mybatis-plus,扩展知识;推... 查看详情