ros

Serverless 实战 —— Funcraft + OSS + ROS 进行 CI/CD

戏子无情 提交于 2020-01-07 02:17:26
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 前言 首先介绍下在本文出现的几个比较重要的概念: 函数计算(Function Compute) : 函数计算 是一个事件驱动的服务,通过函数计算,用户无需管理服务器等运行情况,只需编写代码并上传。函数计算准备计算资源,并以弹性伸缩的方式运行用户代码,而用户只需根据实际代码运行所消耗的资源进行付费。函数计算更多信息 参考 。 Funcraft :Funcraft 是一个用于支持 Serverless 应用部署的工具,能帮助您便捷地管理函数计算、API 网关、日志服务等资源。它通过一个资源配置文件(template.yml),协助您进行开发、构建、部署操作。Fun 的更多文档 参考 。 OSS : 对象存储。海量、安全、低成本、高可靠的云存储服务,提供99.9999999999%的数据可靠性。使用RESTful API 可以在互联网任何位置存储和访问,容量和处理能力弹性扩展,多种存储类型供选择全面优化存储成本。 ROS :资源编排(ROS)是一种简单易用的云计算资源管理和自动化运维服务。用户通过模板描述多个云计算资源的依赖关系、配置等,并自动完成所有资源的创建和配置,以达到自动化部署、运维等目的。编排模板同时也是一种标准化的资源和应用交付方式,并且可以随时编辑修改,使基础设施即代码(Infrastructure

ROS机器人026-机器人自主巡查Python程序&重新建立仿真地图文件

為{幸葍}努か 提交于 2020-01-07 00:35:17
一、查看机器人巡查Python源程序 # ! / usr / bin / env python # - * - coding : utf - 8 - * - import roslib ; import rospy import actionlib from actionlib_msgs . msg import * from geometry_msgs . msg import Pose , PoseWithCovarianceStamped , Point , Quaternion , Twist from move_base_msgs . msg import MoveBaseAction , MoveBaseGoal from random import sample from math import pow , sqrt class NavTest ( ) : def __init__ ( self ) : rospy . init_node ( 'exploring_slam' , anonymous = True ) rospy . on_shutdown ( self . shutdown ) # 在每个目标位置暂停的时间 ( 单位:s ) self . rest_time = rospy . get_param ( "~rest_time" , 2 ) #

How to put on the home path in an XML file as an environment variable?

偶尔善良 提交于 2020-01-06 11:17:08
问题 I have a .world file in ROS for gazebo simulation which is an XML file. How can I put on a dynamic home path instead of the static path in <uri> tag? Here's my simplified .world file: <?xml version="1.0" ?> <sdf version='1.5'> <world name='default'> <visual name='base_link_visual_front_sonar'> <pose>0.109 0 0.209 0 -0 0</pose> <geometry> <mesh> <uri>/home/agn/catkin_ws/src/description/meshes/sonar.stl</uri> <!--Note--> </mesh> </geometry> </visual> </world> </sdf> How can I use $HOME instead

Problems during compilation of ros-indigo-qt-gui-cpp in Arch Linux ARM

被刻印的时光 ゝ 提交于 2020-01-05 04:29:14
问题 I'm using ROS Indigo with Arch Linux ARM and i'm trying to install the package ros-indigo-qt-gui-cpp from AUR. But the following error arises: ==> Starting build()... -- Using CATKIN_DEVEL_PREFIX: /home/hiago/packages/qt_gui_core-release-release-indigo-qt_gui_cpp-0.2.30-0/src/build/devel -- Using CMAKE_PREFIX_PATH: /opt/ros/indigo -- This workspace overlays: /opt/ros/indigo -- Found PythonInterp: /usr/bin/python2 (found version "2.7.12") -- Using PYTHON_EXECUTABLE: /usr/bin/python2 -- Using

ROS - How do I publish a message and get the subscribed callback immediately

不想你离开。 提交于 2020-01-05 04:13:10
问题 I have a ROS node that allows you to "publish" a data structure to it, to which it responds by publishing an output. The timestamp of what I published and what it publishes is matched. Is there a mechanism for a blocking function where I send/publish and output, and it waits until I receive an output? 回答1: I think you need the ROS_Services (client/server) pattern instead of the publisher/subscriber. Here is a simple example to do that in Python: Client code snippet: import rospy from test

ROS

99封情书 提交于 2020-01-04 14:41:14
问题描述:error:Action client not connected: PositionJointInterface_trajectory_controller/follow_joint_trajectory 解决方法 sudo apt-get install ros-kinetic-gazebo-ros-pkgs ros-kinetic-gazebo-ros-control sudo apt-get update sudo apt-get install ros-kinetic-ros-control ros-kinetic-ros-controllers 来源: CSDN 作者: 非衣丶P 链接: https://blog.csdn.net/pja0123/article/details/103831505

ORB_SLAM installation on Ubuntu Xenial 16.04

孤街醉人 提交于 2020-01-04 13:05:15
问题 Is it possible to install ORB_SLAM/ORB_SLAM2 on last version of Ubuntu (Xenial 16.04) without black magic? I know that the recommendation is to use Ubuntu 14.04 according to https://github.com/raulmur/ORB_SLAM2, but I currently have last version and I don't really want to change it or install 14 together with 16. I use OpenCV 2.4.8 and ROS/catkin build system and get the next error: /home/roman/ORB_SLAM2/src/Optimizer.cc:1244:1: required from here /usr/include/eigen3/Eigen/src/Core/util

ROS初学者常见问题

こ雲淡風輕ζ 提交于 2020-01-04 03:23:56
1. msg定义方式 在C++中,数组的定义一般是uint8 a[ ],在ros中定义topic所用的msg时,采用的是uint8 [ ] a; 2. ros包依赖的添加 在package.xml中添加包的依赖,所有者等信息,要严格按照模板进行,否则会出现报错。 3. CmakeLists.txt文件理解 单个功能包可以包含多个节点,多个节点都要配置自己的执行文件和参考库,每个节点智能存在一个main(),对于初学者可能经常注意不到。   对于使用Roboware的同学来说,添加文件时显示的可执行文件、新的库文件是不同含义,可执行文件中需要包含main(),库文件作为参考,没有main()。    这是CmakeLists.txt中,对于节点的管理 add_executable(ipc_serial src/ipc_serial.cpp ) add_dependencies(ipc_serial ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS}) target_link_libraries(ipc_serial ${catkin_LIBRARIES} ) 4. 回调函数调用 回调函数是否调用是通过spin()函数进行检查的,可以设置通过spin()一直检查回调,也可以通过以下方式以 一定频率 检查回调函数。

Visualize pointcloud

隐身守侯 提交于 2020-01-03 08:55:22
问题 I have 3D points from gpu::reprojectImageTo3D on a found disparity image. I would now like to display this pointcloud. How do I Convert the found pointcloud from OpenCV to sensor_msgs/PointCloud2 ? I do not need to publish the pointcloud this is only for debug visualization. Could it be possible to display it as is done with images from the node? e.g. using pcl ? This would be optimal since my device may not perform well with RViz (based on readings online). 回答1: My best guess is to do like

Bag file to run the image stream from ARDRONE - rostopic suggestion needed

南楼画角 提交于 2020-01-03 04:38:12
问题 I am new to ROS. I am working on a video feed from ARDRONE but I am not able to stream the video. Should I have to change the topics in publisher and subscriber to stream the video ??? It is mentioned that I have to use bag file to stream. My publisher and subscriber nodes are the following : def __init__(self): self.image_pub = rospy.Publisher("image_topic_2",Image,queue_size=10) self.bridge = CvBridge() self.image_sub = rospy.Subscriber("image_topic",Image,self.callback) def callback(self