How Brisa Robotics uses AWS to improve robotics operations

On this put up, you’ll find out how Brisa Robotics leverages Amazon Net Companies (AWS) to gather, retailer, and course of knowledge from combined fleets of autos to enhance buyer operations.

Brisa transforms non-autonomous machines into fleets of autonomous autos that gather knowledge to assist clients monitor key efficiency metrics and enhance operations. Their mission is to boost its clients’ efficiencies by leveraging current infrastructure and reusing previous machines as a substitute of promoting scraps and shopping for new ones. Brisa supplies distinctive modular robotic kits to boost materials dealing with gear (MHE) similar to forklifts, palletizers, and telehandlers. These robotic kits are retrofitted for the MHE to incorporate Brisa’s proprietary knowledge assortment platform. The kits help totally different use instances: stock-keeping unit (SKU) monitoring, inspection (defects, objects, barcodes), and materials motion. Getting higher visibility into these use instances with knowledge and metrics permits Brisa’s clients to optimize their warehouse format and plan higher.

Problem: Construct a versatile knowledge assortment answer

The most important brewing firm on the planet wanted extra visibility into their warehouse operations and inventory to extend productiveness and enhance security. So Brisa got down to create an answer to gather and stream knowledge their buyer may use to make higher selections.

Brisa is dedicated to avoiding infrastructure adjustments for patrons in order to not enhance buyer overhead and upkeep prices. They wished to assist their buyer with out requiring them to alter any of their current infrastructures. Moreover, Brisa wanted to supply a single answer that may work for his or her clients with totally different workflows and necessities.

Relying on the shopper, Brisa has totally different necessities to contemplate. For instance, some clients need their knowledge dashboard solely accessible of their community, whereas others need it on-line. Moreover, some clients need a native laptop that collects the information earlier than sending it to the cloud, whereas others need the information transmitted straight from the robots. Brisa wanted a versatile instrument to run on totally different platforms for various eventualities.

The aim was to develop a versatile answer to gather and expose knowledge and metrics for diverse clients with out clients needing to alter any infrastructure.

Resolution overview

Brisa developed an answer that collects knowledge from the MHE robots; streams, processes, and shops it in AWS; after which pulls it into dwell customized dashboards for patrons. This final result happens with out altering the shopper infrastructure, and the workflow can perform with or with out a steady web connection.

How Brisa Robotics uses AWS to improve robotics operations

  1. AWS IoT Greengrass V2 elements are deployed to the robots, together with pre-built elements such because the stream manager.
  2. Information is collected from the consumer utility working on the server (both the robotic or an exterior machine on the robotic community). This utility could be run as a customized Greengrass element or exterior of Greengrass.
  3. The stream supervisor element streams knowledge on to Amazon Kinesis Data Streams (Amazon KDS) and Amazon Simple Storage Service (Amazon S3).
  4. A Python based mostly AWS Lambda perform processes the uncooked knowledge from the Kinesis knowledge stream and shops it in an Amazon Timestream database.

As soon as knowledge is in AWS, Brisa’s net utility can question Amazon Timestream to gather knowledge for his or her dashboards. You’ll be taught extra about this workflow under.

Accumulating the information

Brisa collects knowledge on the robots, similar to object detection, robotic place, robotic pace, fork actions, and system monitoring. They do that utilizing Robot Operating System 2 (ROS2), an open-source set of libraries and instruments for constructing robotic purposes. ROS2 allows Brisa to assemble and develop robotic purposes sooner by utilizing community-built nodes and gadgets similar to simulation and construct tooling. As a founding technical steering committee member for ROS2, AWS is a crucial participant locally, which leads to a big selection of choices for working ROS2 tooling in AWS. AWS provides Brisa essentially the most scalable cloud platform with the deepest integrations with ROS2.

Streaming the information

Brisa subscribes to the ROS2 matter and forwards these occasions into the Kinesis knowledge stream utilizing the AWS IoT Greengrass V2 stream manager.. AWS IoT Greengrass is an open-source Web of Issues (IoT) edge runtime and cloud service that helps you construct, deploy and handle IoT purposes in your gadgets. You should utilize AWS IoT Greengrass to construct edge purposes utilizing pre-built or customized software program modules, known as elements, that may join your edge gadgets to AWS providers or third-party providers. The stream manager component lets you course of knowledge streams to switch to the AWS Cloud from Greengrass core gadgets.

Brisa selected this Greengrass stream supervisor as a result of it might run offline, underneath intermittent community circumstances, with out you having to fret about buffering and publishing knowledge into AWS. The info is saved regionally and compressed till an web connection is lively. As a substitute of managing this workflow, Brisa can ship the information to the stream and give attention to its distinctive robotic workflows. This setup is versatile to totally different buyer wants because the Greengrass stream supervisor runs on the robots themselves or the native laptop the place the robots ship knowledge.

Brisa has a consumer utility working and a server to start out the stream supervisor. Relying on the shopper, this server could be on the robotic or an exterior machine on the robotic community. For extra info on establishing the stream supervisor, see the stream manager documentation and Deploy and Manage ROS Robots with AWS IoT Greengrass V2.

Brisa then used a ROS2 node to gather knowledge from the sensors. They did this by making a ROS2 package deal.

Pattern instructions to create a brand new ROS2 package deal:

cd ~
mkdir -p ws/src
pip set up stream_manager
cd src
ros2 pkg create 
  --package-format 3 
  --build-type ament_python 
  sm_upload

Brisa publishes knowledge to the Kinesis knowledge stream and an Amazon S3 bucket by means of the Greengrass stream supervisor. They accomplish this by leveraging the stream supervisor Python SDK of their ROS nodes. Beneath is a pattern ROS node much like Brisa’s implementation that publishes knowledge from ROS to the stream supervisor:

import json
import rclpy
from rclpy.node import Node
from stream_manager import (
      ExportDefinition,
      KinesisConfig,
      MessageStreamDefinition,
      StrategyOnFull,
      StreamManagerClient,
)

STREAM_NAME = "SomeStream"
KINESIS_STREAM_NAME = "MyKinesisStream"


class StreamManagerPublisher(Node):
      def __init__(self):
      tremendous().__init__("aws_iot_core_publisher")
      timer_period = 3  # seconds
      self.consumer = StreamManagerClient()

      exports = ExportDefinition(
            kinesis=[
                  KinesisConfig(
                  identifier="KinesisExport" + STREAM_NAME,
                  kinesis_stream_name=KINESIS_STREAM_NAME,
                  )
            ]
      )

      # Create the Standing Stream if it doesn't exist already
      strive:
            self.consumer.create_message_stream(
                  MessageStreamDefinition(
                  identify=STREAM_NAME,
                  strategy_on_full=StrategyOnFull.OverwriteOldestData,
                  export_definition=exports,
                  )
            )
      besides ConnectionRefusedError as e:
            self.get_logger().error(f"Couldn't hook up with the stream supervisor: {str(e)}")
            elevate
      besides Exception:
            cross

      # Create the message stream with the S3 Export definition.
      self.consumer.create_message_stream(
            MessageStreamDefinition(
                  identify=STREAM_NAME,
                  strategy_on_full=StrategyOnFull.OverwriteOldestData,
                  export_definition=exports,
            )
      )

      self.timer = self.create_timer(timer_period, self.timer_callback)

      def timer_callback(self):
            self.consumer.append_message(STREAM_NAME, json.dumps({"robot_id": "C3PO","timestamp": datetime.datetime.utcnow().isoformat(),"x": 1.0, "y": 1.1, "z": 3.0}).encode("utf-8"))
      self.get_logger().data("Efficiently appended S3 Activity Definition to stream")

def major(args=None):
      rclpy.init(args=args)
      sm_publisher = StreamManagerPublisher()
      rclpy.spin(sm_publisher)
      sm_publisher.destroy_node()
      rclpy.shutdown()
if __name__ == "__main__":
      major()

Then they constructed the ROS2 package deal:

colcon construct --packages-up-to sm_upload
supply set up/setup.bash
ros2 run sm_upload sm_upload

Storing the information

Brisa makes use of the stream supervisor to stream a few of the knowledge, similar to pictures and video, to Amazon S3 for object storage. The remainder of the information, similar to telemetry knowledge, is streamed to Amazon Kinesis Information Streams, processed with an AWS Lambda perform, after which saved in Amazon Timestream, a purpose-built time-series database.

Amazon Kinesis Information Streams helps ingest and gather knowledge from utility and repair logs and ship knowledge into knowledge lakes. See the Create a data stream to be taught extra about making a stream.

Brisa makes use of an AWS Lambda perform to orchestrate the extract, course of, and cargo (ETL) operations from Amazon Kinesis into Amazon Timestream. They selected Lambda as a result of it’s serverless, so the associated fee is predicated on the variety of requests and their length (the time it takes in your code to run). They explored different choices with managed ETL options in AWS however discovered utilizing a easy Lambda perform was essentially the most appropriate strategy for his or her present ETL necessities.

Querying newly saved knowledge for his or her dashboards

As soon as the information is in Timestream, Brisa can leverage time series functions to make easy but environment friendly queries to point out the customized time based mostly metrics. From the Amazon Timestream console, Brisa can check SQL-like requests. For a extra detailed rationalization of those ideas, see Timestream Concepts and Using the console.

Right here is an instance question Brisa can run to extract attention-grabbing enterprise knowledge. On this question, positions are grouped by 5 second frames to get a mean of x and y coordinates. That is helpful to optimize question prices by not fetching all knowledge factors, on a regular basis.

SELECT ROUND(AVG(x), 2) AS avg_x,
	ROUND(AVG(y), 2) AS avg_y,
	BIN(time, 5s) AS binned_timestamp
	FROM database.desk
WHERE x IS NOT NULL
	AND y IS NOT NULL
	AND robot_name="C3PO"
GROUP BY BIN(time, 5s)
ORDER BY binned_timestamp ASC

Brisa can also be in a position to question the collected knowledge from totally different SDKs similar to boto3 for Python or AWSJavascriptSDK for JavaScript. A full record of accessible programming languages could be present in Tools to Build on AWS.

Brisa then makes use of these queries to tug the related knowledge into their buyer dashboards.

Brisa makes Timestream queries from their backend utilizing AWS SDK for panda (previously AWS Data Wrangler) to get and prepare knowledge for the dashboard and API. The frontend then shows this knowledge on the dashboard.

Outcomes

As soon as the information is in AWS, Brisa can simply question the collected info, adapt it, and expose it as a dwell dashboard and KPI studies for patrons. Brisa’s library of metrics and visualizations is modular and dynamic and is constantly up to date to account for brand new integrations and use instances relying on buyer wants. This functionality permits clients to enhance total security circumstances and effectivity of their warehouse.

Earlier than Brisa’s answer, the brewing firm was primarily dealing with their monitoring manually. Due to the dashboard and report, Brisa can now present them with:

  • Greater accuracy: The saved bottles usually are not simply identifiable by an individual since they’re 5 meters excessive. This makes monitoring tough. Brisa’s answer collects digicam pictures for his or her buyer, permitting saved bottles to be recognized precisely.
  • Elevated knowledge frequency: The autonomous robotic is ready to scan twice as typically than any individual manually can.
  • Improved security: Forklifts are sometimes on the identical alleys as a human stock counter. Having a robotic deal with counting, improves security by eradicating the danger of accidents between harmful forklifts and human counters.
  • Higher operational insights: Heatmaps within the dwell dashboards enable Brisa’s clients to establish bottlenecks of their operations and enhance scheduling. Such a operational perception wouldn’t be potential by human remark.

Listed below are some screenshots taken from Brisa’s dashboard:

How Brisa Robotics uses AWS to improve robotics operations

Place heatmap in Brisa’s in-house testing space. Ideally, there shouldn’t be any space the place the robotic stopped, however taking a look at this heatmap, you may observe some areas the place the robotic stopped extra typically than others. There could be a number of causes for this: non-optimal robotic routes, awful signage, unhealthy planning, or different extra extreme issues, similar to an individual or different robotic blocking the world. To resolve this, Brisa additionally collects digicam pictures so their buyer can have a look at what occurred. The photographs enable the brewing firm to know find out how to enhance the format or plan otherwise, so the robotic strikes steadily with out pausing its operations.

How Brisa Robotics uses AWS to improve robotics operations

Dashboard with the digicam picture and robotic view. The dashboard grabs these information from Amazon S3 the place the information was saved by the stream supervisor.

How Brisa Robotics uses AWS to improve robotics operations

Dashboard exhibiting pictures from the shopper web site.

How Brisa Robotics uses AWS to improve robotics operations

Dashboard exhibiting some metrics Brisa exhibits clients. These metrics are all queried from Timestream.

Other than customary metrics (similar to length and distance), the modular design utilizing AWS enabled Brisa to simply present customized integrations for his or her buyer similar to:

  • Variety of car stops: Car stops is a metric used internally on the brewing firm. The dashboard signifies how lengthy every cease lasts. The shopper can click on on the dashboard outcomes to see associated occasions that occurred presently. For instance, for a car cease, they could see an image the place an individual was detected. The consumer can then click on on the picture to see the place within the warehouse this occurred and at what time. This helps the shopper perceive stopping patterns over time to enhance effectivity of their warehouse.
  • Load abstract: The robotic ought to transfer more often than not besides when charging and for restricted stops.

Brisa customizes the dashboard relying on the fleet, the robots working, and the KPIs that matter to every buyer.

With this knowledge streaming pipeline, Brisa may present their buyer with instruments to trace their inventory and get deeper insights into operational points with out modifying their workflow. This functionality helps clients such because the brewing firm enhance their warehouse operational effectivity and security.

Brisa is integrating with extra purchasers and sorts of robots, including insightful and customised metrics to its dashboard continually.

Brisa will help you management your inventory extra typically and exactly, establish and resolve bottlenecks in your operations (handbook and/or autonomous), and make selections based mostly on precise knowledge. To be taught extra, try the web site at www.brisa.tech.

发布者:Erica Goldberger,转转请注明出处:https://robotalks.cn/how-brisa-robotics-uses-aws-to-improve-robotics-operations/

(0)
上一篇 2 8 月, 2024 1:02 下午
下一篇 2 8 月, 2024 1:02 下午

相关推荐

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信
社群的价值在于通过分享与互动,让想法产生更多想法,创新激发更多创新。