Density coordinate hashing for volume data
By optimizing volumetric data storage and access through sparse volumetric data structures and the DECO hash algorithm, the latency problem of processing large datasets in existing augmented reality and virtual reality systems is solved, achieving low-latency and efficient volumetric data processing.
Patent Information
- Application Number
- CN201880081279.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2017-10-16
- Filing Date
- 2018-10-16
- Publication Date
- 2024-09-06
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing computer systems struggle to efficiently process large datasets in augmented reality, virtual reality, and mixed reality applications, leading to problems such as latency and motion sickness, especially on devices with limited memory and processing resources.
Employing sparse volumetric data structures and hash table techniques, we accelerate 3D rendering and computer vision processing through sparse volumetric data structures, and optimize the storage and access of volumetric data using sparse hexadecimal tree format and DECO hash algorithm, thereby reducing storage requirements and processing latency.
It achieves low-latency real-time updates and collision detection, reduces storage requirements, improves processing speed and system efficiency, and is suitable for resource-constrained devices.
Smart Images

Figure CN111727462B_ABST
Abstract
Description
[0001] Related Applications
[0002] This application claims the benefit of U.S. Provisional Patent Application No. 62 / 573,089, filed on October 16, 2017, and is incorporated herein by reference in its entirety. Technical Field
[0003] The present disclosure relates generally to the field of computer systems, and more particularly to hash tables for use in computer vision applications. Technical Background
[0004] The world of computer vision and graphics is converging rapidly with the emergence of augmented reality (AR), virtual reality (VR), and mixed reality (MR) products, such as those from Magic Leap. TM , Microsoft TM 、HoloLens TM 、Oculus TM Rift TM Those products, as well as products such as those from Valve TM and HTC TM Other VR systems such as those described in [ 1 ]. The current approach in such systems is to use separate graphics processing units (GPUs) and computer vision subsystems running in parallel. These parallel systems can be assembled from existing GPUs in parallel with a computer vision pipeline implemented in software running on an array of processors and / or programmable hardware accelerators. BRIEF DESCRIPTION OF THE DRAWINGS
[0005] The various objects, features and advantages of the disclosed subject matter may be more fully understood with reference to the following detailed description of the disclosed subject matter when considered in conjunction with the following drawings, wherein like reference numerals identify like elements. The accompanying drawings are schematic and are not intended to be drawn to scale. For clarity, not every component is labeled in every figure. In the absence of a diagram to allow one of ordinary skill in the art to understand the disclosed subject matter, not every component of every embodiment of the disclosed subject matter is shown.
[0006] Figure 1 A convolutional augmented reality or mixed reality rendering system is shown;
[0007] Figure 2 A voxel-based augmented reality or mixed reality rendering system is shown according to some embodiments;
[0008] Figure 3 illustrates the difference between dense and sparse volume representations according to some embodiments;
[0009] Figure 4 shows a composite view of a scene according to some embodiments;
[0010] Figure 5 illustrates the level of detail in an example element tree structure according to some embodiments;
[0011] Figure 6 shows applications that can utilize the data structures and voxel data of the present application according to some embodiments;
[0012] Figure 7 shows an example network for recognizing 3D digits according to some embodiments;
[0013] Figure 8 illustrates multiple classifications performed on the same data structure using implicit levels of detail according to some embodiments;
[0014] Fig. 9 Operation elimination performed by a 2D convolutional neural network according to some embodiments is shown;
[0015] Fig.10 shows experimental results from analysis of example test images according to some embodiments;
[0016] Fig.11 shows hardware for culling operations according to some embodiments;
[0017] Fig.12 shows improvements to hardware for culling operations according to some embodiments;
[0018] Fig.13 shows hardware according to some embodiments;
[0019] Fig.14 An example system employing a hash table and associated logic is shown;
[0020] Fig.15 illustrates aspects of an example hashing algorithm according to some embodiments;
[0021] Figures 16A-16C shows a graph illustrating the performance of an example hashing algorithm;
[0022] Fig.17 is a flow chart illustrating an example technique for inserting volume data within a hash table, according to some embodiments;
[0023] Fig.18 is a flow chart illustrating an example technique for accessing volume data from a hash table, according to some embodiments;
[0024] Fig.19depicts an example multi-slot vector processor according to some embodiments;
[0025] Fig. 20 shows example volume acceleration hardware according to some embodiments;
[0026] Fig.21 illustrates the organization of a voxel cube according to some embodiments;
[0027] Fig. 22 shows a two-level sparse voxel tree according to some embodiments;
[0028] Fig.23 shows a two-level sparse voxel tree according to some embodiments;
[0029] Fig.24 shows storage of example voxel data according to some embodiments;
[0030] Fig.25 illustrates insertion of voxels into an example volume data structure in accordance with some embodiments;
[0031] Fig.26 shows a projection of an example 3D volumetric object according to some embodiments;
[0032] Fig. 27 Example operations involving example volume data structures are shown;
[0033] Fig.28 shows the use of projections to generate simplified graphs according to some embodiments;
[0034] Fig.29 illustrates an example aggregation of example volumetric 3D measurements and / or simple 2D measurements from an embedded device according to some embodiments;
[0035] Fig.30 shows an example speedup of 2D pathfinding on a 2D 2×2 bitmap according to some embodiments;
[0036] Fig.31 illustrates an example speedup of collision detection using an example volume data structure according to some embodiments;
[0037] Fig.32 is a simplified block diagram of an exemplary network having devices according to at least some embodiments;
[0038] Fig.33 is a simplified block diagram of an exemplary fog or cloud computing network according to at least some embodiments;
[0039] Fig.34 is a simplified block diagram of a system including example devices according to at least some embodiments;
[0040] Fig.35 is a simplified block diagram of an example processing device according to at least some embodiments;
[0041] Fig.36 is a block diagram of an exemplary processor according to at least some embodiments; and
[0042] Fig.37 is a block diagram of an example computing system in accordance with at least some embodiments. DETAILED DESCRIPTION
[0043] In the following description, many specific details related to the systems and methods of the disclosed subject matter and the environments in which such systems and methods can operate are set forth in order to provide a thorough understanding of the disclosed subject matter. However, it will be apparent to those skilled in the art that the disclosed subject matter can be practiced without these specific details, and certain features that are well known in the art are not described in detail in order to avoid complicating the disclosed subject matter. In addition, it should be understood that the embodiments provided below are exemplary, and it is contemplated that there are other systems and methods within the scope of the disclosed subject matter.
[0044] Various technologies emerge and combine with augmented reality, virtual reality, mixed reality, autonomous devices and robots, which can utilize data models representing volumes of three-dimensional space and geometric shapes. Descriptions of various real and virtual environments using such 3D or volumetric data traditionally have large data sets, and some computer systems have always had difficulty processing the large data sets in a desired manner. In addition, when devices such as drones, wearable devices, virtual reality systems, etc. become smaller, the memory and processing resources of such devices may also be limited. As an example, AR / VR / MR applications may require high frame rates for graphical representations generated using supporting hardware. However, in some applications, the GPU and computer vision subsystems of such hardware may need to process data (e.g., 3D data) at high rates (such as up to 130fps (7 milliseconds)) in order to produce desired results (e.g., generate credible graphics scenes with frame rates that produce credible results, prevent motion sickness of users caused by excessive waiting times, and other example goals). Additional applications can be similarly challenged to satisfactorily process data describing large volumes while meeting the limitations in the processing, memory, power, application requirements of the corresponding systems, and other example problems.
[0045] In some implementations, logic may be provided for a computing system to generate and / or use sparse volume data defined according to a format. For example, a defined volume data structure may be provided to unify computer vision and 3D rendering in various systems and applications. A volume representation of an object may be captured using an optical sensor, such as, for example, a stereo camera or a depth camera. The volume representation of an object may include multiple voxels. An improved volume data structure may be defined that enables a corresponding volume representation to be recursively subdivided to obtain a target resolution for the object. During subdivision, empty space in the volume representation may be removed from the volume representation (and supporting operations), which may be included in one or more of the voxels. Empty space may be an area of the volume representation that does not include geometric attributes of the object.
[0046] Thus, in the improved volume data structure, individual voxels within the corresponding volume may be marked as "occupied" (by some geometry present within the corresponding volume space) or "empty" (indicating that the corresponding volume consists of empty space). Such labels may additionally be interpreted as specifying that one or more of its corresponding subvolumes are also occupied (e.g., if the parent voxel or a higher-level voxel is marked as occupied), or that all of its subvolumes are empty space (i.e., in the case where the parent voxel or a higher-level voxel is marked as empty). In some implementations, marking a voxel as empty may allow the voxel and / or its corresponding subvolume voxel to be effectively removed from operations used to generate a corresponding volume representation. The volume data structure may be in a sparse tree structure, such as in a sparse sexaquaternary tree (SST) format. Further, such a sparse volume data structure approach may utilize relatively less storage space than conventional methods for storing volume representations of objects. In addition, compression of volume data may increase the transmission viability of such a representation and enable faster processing of such a representation, among other example benefits.
[0047] The volumetric data structure can be hardware accelerated to quickly allow updates to the 3D renderer, eliminating delays that may occur in separate computer vision and graphics systems. Such delays can result in latency that can cause user motion sickness and other additional disadvantages when used in AR, VR, MR, and other applications. The ability to quickly test the occupancy of voxels in the accelerated data structure allows the construction of low-latency AR, VR, MR, or other systems that can be updated in real time.
[0048] In some embodiments, the capabilities of the volumetric data structure may also provide intra-frame warnings. For example, in AR, VR, MR, and other applications, when a user may collide with a real or synthetic object in the imaged scene, or in computer vision applications for drones or robots, when such devices may collide with a real or synthetic object in the imaged scene, the processing speed provided by the volumetric data structure allows warning of an impending collision.
[0049] Embodiments of the present disclosure may be associated with the storage and processing of volume data in applications such as robots, head-mounted displays for augmented reality and mixed reality head-mounted devices, and phones and tablets. Embodiments of the present disclosure represent each volume element (e.g., voxel) within a set of voxels and, optionally, physical properties related to the geometry of the voxel as a single bit. Additional parameters associated with a set of 64 voxels may be associated with the voxels, such as corresponding red, green, blue (RGB) or other color encoding, transparency, truncated signed distance function (TSDF) information, etc., and stored in an associated and optional 64-bit data structure (e.g., so that two or more bits are used to represent each voxel). This representation scheme can achieve minimal memory requirements. In addition, representing voxels by a single bit allows the execution of many simplified calculations to logically or mathematically combine elements from the volume representation. Combining elements from the volume representation may include, for example, ORing planes in the volume to create a 2D projection of 3D volume data, and calculating surface area by counting the number of voxels occupied in a 2.5D manifold, etc. For comparison, exclusive-OR (XOR) logic may be used to compare 64-bit subvolumes (eg, 4^3 subvolumes), and volumes may be inverted, where objects may be merged by ORing them together to create a hybrid object, among other examples.
[0050] Figure 1A conventional augmented reality system or mixed reality system is shown, which consists of parallel graphics rendering and computer vision subsystems, with the computer vision subsystem having a post-rendering connection device to account for changes due to rapid head movement and changes in the environment, which may produce occlusions and shadows in the rendered graphics. In an example implementation, the system may include a host processor 100 supported by a host memory 124 to control the execution of the graphics pipeline, the computer vision pipeline, and the post-rendering correction device through an interconnect via a bus 101, an on-chip network on a chip, or other interconnect. The interconnect allows the host processor 100 to run appropriate software to control the execution of a graphics processing unit (GPU) 106, associated graphics memory 111, a computer vision pipeline 116, and associated computer vision memory 124. In one example, the rendering of graphics using the GPU 106 via an OpenGL graphics shader 107 (e.g., operating on a triangle list 105) can occur at a slower rate than the computer vision pipeline. As a result, post-rendering corrections via the warp engine 108 and display / occlusion processor 109 can be performed to account for changes in head pose and changes in occluded scene geometry that may have occurred since the graphics were rendered by the GPU 106. The output of the GPU 106 is time-stamped so that it can be combined with correction control signals 121 from the head pose pipeline 120 and correction control signals 123 from the occlusion pipeline 123, respectively, to produce correct graphics output to account for any changes in head pose 119 and occlusion geometry 113, among other examples.
[0051] Multiple sensors and cameras (e.g., including active stereo cameras and passive stereo cameras for depth and vision processing 117) in parallel with the GPU 106 can be connected to the computer vision pipeline 116. The computer vision pipeline 116 can include one or more of at least three stages, each of which can contain multiple stages of lower-level processing. In one example, the stages in the computer vision pipeline 116 can be an image signal processing (ISP) pipeline 118, a head pose pipeline 120, and an occlusion pipeline 122. The ISP pipeline 118 can take the output of the input camera sensor 117 and condition them so that they can be used for subsequent head pose and occlusion processing. The head pose pipeline 120 can take the output of the ISP pipeline 118 and use it with the output 119 of the inertial measurement unit (IMU) in the head-mounted device 110 to calculate the change in head pose since the corresponding graphics frame was rendered by the GPU 106. The output 121 of the head pose pipeline (HPP) 120 may be applied to the warp engine 108 along with a user specified mesh to warp the GPU output 102 so that it matches the updated head pose position 119. The occlusion pipeline 122 may take the output of the head pose pipeline 121 and look for new objects in the field of view, such as a hand 113 (or other example object) entering the field of view that should produce corresponding shadows 114 on the scene geometry. The output 123 of the occlusion pipeline 122 may be used by the display and occlusion processor 109 to properly overlay the field of view on top of the output 103 of the warp engine 108. The display and occlusion processor 109 uses the calculated head pose 119 to generate a shadow mask for synthesizing shadows 114, and the display and occlusion processor 109 can synthesize the occlusion geometry of the hand 113 on top of the shadow mask to produce a graphic shadow 114 on top of the output 103 of the warp engine 108, and produce (multiple) final output frames 104 for display on the augmented / mixed reality headset 110, as well as other example use cases and features.
[0052] Figure 2 A voxel-based augmented reality or mixed reality rendering system according to some embodiments of the present disclosure is shown. Figure 2The apparatus depicted in may include a host system comprised of a host CPU 200 and associated host memory 201. Such a system may communicate with a unified computer vision and graphics pipeline 223 and associated unified computer vision and graphics memory 213 via a bus 204, an on-chip network, or other communication mechanism, and the computer vision and graphics pipeline 223 and associated unified computer vision and graphics memory 213 contain real voxels and synthetic voxels to be rendered in a final scene for display on a head-mounted augmented reality or mixed reality display 211. The AR / MR display 211 may also include a plurality of active and passive image sensors 214, and an inertial measurement unit (IMU) 212 for measuring changes in orientation of the head pose 222.
[0053] In the combined rendering pipeline, synthetic geometry can be generated starting from a triangle list 204, which is processed by an OpenGL JiT (Just-in-Time) translator 205 to produce a synthetic voxel geometry 202. For example, a synthetic voxel geometry can be generated by selecting the main plane of a triangle from a triangle list. 2D rasterization (e.g., in the X and Z directions) can then be performed on each triangle in the selected plane. A third coordinate (e.g., Y) can be created as an attribute to be interpolated across triangles. Each pixel of the rasterized triangle can result in the definition of a corresponding voxel. This processing can be performed by a CPU or a GPU. When performed by a GPU, each rasterized triangle can be read back from the GPU to create a voxel where the GPU draws the pixel, as well as other example implementations. For example, a 2D buffer of a list can be used to generate synthetic voxels, where each entry of the list stores the depth information of the polygon rendered at that pixel. For example, a model can be rendered using an orthogonal viewpoint (e.g., top-down). For example, each (x, y) provided in the example buffer may represent a column at (x, y) in the corresponding voxel volume (e.g., from (x, y, 0) to (x, y, 4095)). The information in each list may then be used to render each column from the information into a 3D scanline.
[0054] continue Figure 2In some implementations, the synthetic voxel geometry 202 can be combined with the measured geometry voxels 227 constructed using a simultaneous localization and mapping (SLAM) pipeline 217. The SLAM pipeline can use active sensors and / or passive image sensors 214 (e.g., 214.1 and 214.2), which are first processed using an image signal processing (ISP) pipeline 215 to produce an output 225, which can be converted into a depth image 226 by a depth pipeline 216. The active or passive image sensors 214 (214.1 and 214.2) can include active or passive stereo sensors, structured light sensors, time of flight sensors, and other examples. For example, the depth pipeline 216 can process depth data from a structured light or time of flight sensor 214.1 or alternatively a passive stereo sensor 214.2. In one example implementation, the stereo sensor 214.2 can include a pair of passive stereo sensors, as well as other example implementations.
[0055] The depth image generated by the depth pipeline 215 can be processed by the dense SLAM pipeline 217 using a SLAM algorithm (e.g., Kinect Fusion) to produce a voxelized model of the measured geometry voxels 227. A ray tracing accelerator 206 can be provided that can combine the measured geometry voxels 227 (e.g., real voxel geometry) with the synthetic voxel geometry 202 to produce a 2D rendering of the scene for output to a display device (e.g., a head mounted display 211 in a VR or AR application) via a display processor 210. In such an implementation, a complete scene model can be constructed from the real voxels of the measured geometry voxels 227 and the synthetic geometry 202. Therefore, there is no requirement to warp the 2D rendered geometry (e.g., as in Figure 1 ). Such an implementation can be combined with a head pose tracking sensor and corresponding logic to properly align real geometry and measured geometry. For example, the example head pose pipeline 221 can process head pose measurements 232 from an IMU 212 mounted in a head mounted display 212, and the output 231 of the head pose measurement pipeline can be considered during rendering via the display processor 210.
[0056] In some examples, the unified rendering pipeline can also use the measured geometry voxels 227 (e.g., real voxel models) and the synthesized geometry 202 (e.g., synthesized voxel models) to render audio reverberation models and model the physics of real-world scenes, virtual reality scenes, or mixed reality scenes. As an example, the physics pipeline 218 can take the measured geometry voxels 227 and the synthesized geometry 202 voxel geometry and use the ray casting accelerator 206 to calculate the output audio samples for the left and right headphones in the head-mounted display (HMD) 211 to calculate the output samples 230 using the acoustic reflection coefficients built into the voxel data structure. Similarly, the unified voxel model composed of 202 and 227 can also be used to determine physical updates for synthetic objects in the composite AR / MR scene. The physics pipeline 218 takes the composite scene geometry as input and uses the ray casting accelerator 206 to calculate collisions before calculating updates 228 to the synthesized geometry 202 for rendering and as a basis for future iterations of the physics model.
[0057] In some implementations, a system (such as Figure 2 The system shown in ) may additionally be provided with one or more hardware accelerators to implement and / or utilize a convolutional neural network (CNN) that may process RGB video / image input from the output of the ISP pipeline 215, volumetric scene data from the output of the SLAM pipeline 217, and other examples. The neural network classifier may be run exclusively using the hardware (HW) convolutional neural network (CNN) accelerator 207 or in a combination of the processor and the HW CNN accelerator 207 to produce an output classification 237. The availability of the HWCNN accelerator 207 to perform inference on the volumetric representation may allow groups of voxels in the measured geometry voxels 227 to be labeled as belonging to a particular object category, among other example uses.
[0058] Labeling voxels (e.g., using a CNN and supporting hardware acceleration) can allow those objects to which those voxels belong to be identified by the system as corresponding to known objects, and the source voxels can be removed from the measured geometry voxels 227 and replaced by a bounding box corresponding to the object and / or replaced by information related to the object's origin, the object's pose, object descriptors, and other example information. This can result in a semantically far more meaningful description of the scene that can be used, for example, as input by a robot, drone, or other computing system to interact with objects in the scene, or by an audio system to look up the sound absorption coefficients of objects in the scene and reflect them in an acoustic model of the scene, among other example uses.
[0059] One or more processor devices and hardware accelerators may be provided to implement Figure 2 In some implementations, all of the hardware and software elements of the combined rendering pipeline may share access to a DRAM controller 209, which in turn allows data to be stored in a shared DDR memory device 208, as well as other example implementations.
[0060] Presentation Figure 3 The difference between dense and sparse volume representations may be illustrated according to some embodiments. Figure 3 As shown in the example of , a real-world object or synthetic object 300 (e.g., a figurine of a bunny) can be described in the form of voxels in a dense manner as shown in 302 or in a sparse manner as shown in 304. The advantage of a dense representation such as 302 is uniform speed access to all voxels in the volume, but the disadvantage is the amount of storage that may be required. For example, for a dense representation such as a 512^3 element volume (e.g., corresponding to 5m in a volume scanned at 1cm resolution using a Kinect sensor), using a 4-byte truncated signed distance function (TSDF) for each voxel to store a relatively small volume requires 512 megabytes. The octree representation 304 embodies a sparse representation, which, on the other hand, can store only those voxels that have realistic geometry in the real-world scene, thereby reducing the amount of data required to store the same volume.
[0061] Go to Figure 4 , showing a composite view of an example scene according to some embodiments. Specifically, Figure 4 It shows how a composite view of a scene 404 can be maintained, displayed, or subjected to further processing using parallel data structures to represent synthetic voxels 401 within an equivalent bounding box 400 for synthetic voxel data and real-world measured voxels 403 within an equivalent bounding box 402 for real-world voxel data, respectively. Figure 5 4^3 element tree structure according to some embodiments. In some implementations, as little as 1 bit can be used to describe each voxel in a volume represented using an octree, such as in Figure 5 However, a disadvantage of octree-based techniques can be the number of indirect memory accesses utilized to access a particular voxel in the octree. In the case of a sparse voxel octree, the same geometry can be implicitly represented at multiple levels of detail, advantageously allowing operations such as ray casting, game physics, CNNs, and other techniques to allow blank portions of the scene to be culled from further computation, resulting in an overall reduction in not only required storage, but also in power consumption and computational load, among other example advantages.
[0062] In one implementation, an improved voxel descriptor (also referred to herein as a "volume data structure") may be provided for organizing volume information into 4^3 (or 64-bit) unsigned integers, such as shown in 501 with a memory requirement of 1 bit per voxel. In this example, 1 bit per voxel is insufficient to store the truncated signed distance function value (compared to the TSDF in SLAMbench / KFusion using 64 bits). In this example, an additional (e.g., 64-bit) field 500 may be included in the voxel descriptor. This example may be further enhanced so that when the TSDF in the 64-bit field 500 is 16 bits, an additional 2 bits of fractional resolution in x, y, and z may be implicitly provided in the voxel descriptor 501 so that the combination of the voxel TSDF and the voxel position 501 in the 64-bit field 500 is equivalent to a much higher resolution TSDF, such as used in SLAMbench / KFusion or other examples. For example, additional data in the 64-bit field 500 (voxel descriptor) may be used to store 1-byte each of subsampled RGB color information (e.g., from a scene via a passive RGB sensor) and an 8-bit transparency value alpha, as well as two 1-byte reserved fields R1 and R2 that may be application specific and may be used to store, for example, acoustic reflectivity for audio applications, stiffness for physics applications, object material type, and other examples.
[0063] like Figure 5 As shown, the voxel descriptor 501 can be logically grouped into four 2D planes, each of which includes 16 voxels 502. Figure 5 As represented, these 2D planes (or voxel planes) can describe each level of an octree type structure based on a continuous decomposition of ascending powers of 4. In this example implementation, a 64-bit voxel descriptor is selected because it is a good match to the 64-bit bus infrastructure used in the corresponding system implementation (although other voxel descriptor sizes and formats can be provided in other system implementations and the size can be designed based on the bus or other infrastructure of the system). In some implementations, the size of the voxel descriptor can be designed to reduce the number of memory accesses used to obtain voxels. For example, compared to a traditional octree operating on 2^3 elements, a 64-bit voxel descriptor can be used to reduce the number of memory accesses required to access a voxel at any level in the octree to 1 / 2, as well as other example considerations and implementations.
[0064] In one example, an octree may be described starting with a 4^3 root volume 503, and each non-zero entry therein for encoding the representation of the geometry in the layers 504, 505, and 506 below is depicted in an example 256^3 volume. In this particular example, four memory accesses may be used to access the lowest level in the octree. In the event that such overhead is too high, an alternative approach may be taken to encode the highest level of the octree into a larger capacity, such as 64^3, as shown in 507. In this case, each non-zero entry in 507 may indicate the presence of the underlying 4^3 octree in the 256^3 volume 508 below. The result of this alternative organization is that only two memory accesses are required to access any voxel in the 256^3 volume 508, compared to the alternative formulations shown in 503, 504, and 505. The latter approach is advantageous in the event that the device hosting the octree has a larger amount of embedded memory, thereby allowing only the lower and less frequently accessed portions of the voxel octree 508 to be in external memory. This approach is more expensive in terms of storage, for example, where a full, larger (e.g., 64^3) volume is stored in on-chip memory, but the tradeoff can allow faster memory access (e.g., 2x speed) and much lower power consumption, among other example advantages.
[0065] Go to Figure 6 , shows a block diagram of an example application that can utilize data structures and voxel data of the present application according to some embodiments. In one example, such as Figure 5 As shown in , additional information can be provided by the example voxel descriptor 500. While the voxel descriptor can increase the overall memory utilization to 2 bits per voxel, the voxel descriptor can enable a wide range of applications that can utilize voxel data, such as Figure 6 . For example, a shared volume representation 602 (such as generated using a dense SLAM system 601 (e.g., SLAMbench)) can be used to render a scene using graphics ray casting or ray tracing 603, for audio ray casting 604, and other implementations. In yet other examples, the volume representation 602 can also be used in convolutional neural network (CNN) inference 605 and can be backed up by a cloud infrastructure 607. In some instances, the cloud infrastructure 607 can include detailed volume descriptors of objects that can be accessed via inference, such as a tree, a piece of furniture, or other objects (e.g., 606). Based on inference or other identification of the object, the corresponding detailed descriptor can be returned to the device, allowing the voxels of the volume representation 602 to be replaced by a bounding box representation with pose information and a descriptor containing object properties and other example features.
[0066] In yet other embodiments, the voxel model discussed above may be utilized in addition or alternatively in some systems to construct a 2D map 608 of an example environment from a volume representation 602 using a 3D to 2D projection. These 2D maps may be shared again via a cloud infrastructure and / or other network-based resources 607 via a communicator and aggregated (e.g., using the same cloud infrastructure) to construct a higher quality map using crowdsourcing techniques. These maps may be shared by the cloud infrastructure 607 to connected machines and devices. In yet further examples, projections may be used followed by simplification 609 piecewise (e.g., assuming that the width and height of the vehicle or robot are fixed) to optimize the 2D map for ultra-low bandwidth applications. The simplified path may then have only a single X, Y coordinate pair at each piecewise linear segment of the path, thereby reducing the amount of bandwidth required to communicate the path of the vehicle 609 to the cloud infrastructure 607 and aggregate in the same cloud infrastructure 607 to construct a higher quality map using crowdsourcing techniques. These maps may be shared by the cloud infrastructure 607 to connected machines and devices.
[0067] To enable these different applications, in some implementations, common functionality may be provided, such as through a shared software library, which may be accelerated in some embodiments using a hardware accelerator or processor instruction set architecture (ISA) extension, as well as other examples. For example, such functionality may include inserting voxels into a descriptor, deleting voxels, or finding voxels 610. In some implementations, collision detection functionality 620 may also be supported, as well as deleting points / voxels from a volume 630, as well as other examples. As described above, a system having the functionality of quickly generating 2D projections 640 in the X, Y, and Z directions from a corresponding volume representation 602 (3D volume) (e.g., which may be used as a basis for path or collision determination) may be provided. In some cases, it may also be advantageous to be able to generate a triangle list from a volume representation 602 using a histogram pyramid 650. Further, a system having the functionality of quickly determining a free path 660 in a 2D and 3D representation of a volume space 602 may be provided. Such functionality may be useful in a range of applications. Further functionality may be provided, such as accounting for the number of voxels in the volume, using a population counter to count the number of bits with a value of 1 in a mask region of the volume representation 602 to determine the surface of the object, and other examples.
[0068] Go to Figure 7 A simplified block diagram of an example network including a system equipped with the functionality to recognize 3D numbers according to at least some embodiments. For example, Figure 6 One of the applications shown in FIG. 6 is a volumetric CNN application 605, which is Figure 7, where an example network is used to recognize 3D digits generated from a dataset such as the mixed National Institute of Standards and Technology (MNIST) dataset 700. Digits in such a dataset can be used to train a CNN-based convolutional network classifier 710 by applying appropriate rotations and translations to the digits in X, Y, and Z prior to training. When used for inference in an embedded device, the trained network 710 can be used to classify 3D digits in a scene with high accuracy even when the digits are subjected to rotations and translations in X, Y, and Z 720, among other examples. In some implementations, the digits can be trained by Figure 2 The HW CNN accelerator 207 shown accelerates the operation of the CNN classifier. As the first layer of the neural network performs multiplication operations using voxels in the volume representation 602, since multiplying by zero always equals zero and multiplying a data value A by 1 (voxel) equals A, these arithmetic operations can be skipped.
[0069] Figure 8 602. Multiple classifications are shown performed on the same data structure using implicit level of detail. A further improvement to CNN classification using volume representation 602 may be that the octree representation is Figure 5 The octree structure shown in Figure 1 implicitly contains multiple levels of detail, so a structure such as Figure 8 As shown in , a single classifier 830 or multiple classifiers in parallel can be used to perform multiple classifications on the same data structure using implicit detail levels 800, 810, and 820 in parallel. In conventional systems, comparable parallel classifications can be slow due to the image scaling required between classification passes. Because the same octree can contain the same information at multiple levels of detail, such scaling can be predetermined in an implementation that applies the voxel structure discussed herein. In fact, a single training data set based on a volume model can cover all levels of detail, rather than a resized training data set such as required in a conventional CNN network.
[0070] Go to Fig. 9 In some embodiments, an example operation elimination is shown by a 2D CNN. Fig. 9 As shown in , operation elimination can be used for 3D volumetric CNNs as well as 2D CNNs. For example, in Fig. 9 In the first layer, a bitmap mask 900 can be used to describe the expected "shape" of the input 910 and can be applied to the incoming video stream 920. In one example, operation elimination can be used not only for 3D volume CNN, but also for 2D volume CNN. For example, in Fig. 9In the example 2D CNN of , a bitmap mask 900 may be applied to the first layer of the CNN to describe the expected "shape" of the input 910, and may be applied to the input data of the CNN, such as an incoming video stream 820. As an example, Fig. 9 The effect of applying a bitmap mask to an image of a pedestrian for training or reasoning in a CNN network is shown in , where 901 represents the original image of the pedestrian 901 and 903 represents the corresponding version with the bitmap mask applied. Similarly, an image without a pedestrian is shown in 902 and the corresponding bitmap mask version is shown in 904. The same method can be applied to any type of 2D or 3D object to reduce the number of operations required for CNN training or reasoning through knowledge of the expected 2D or 3D geometry expected by the detector. An example of a 3D volume bitmap is shown in 911. The use of a 2D bitmap for reasoning in a real scene is shown in 920.
[0071] exist Fig. 9 In an example implementation of , a conceptual bitmap is shown (at 900), while a real bitmap is generated by averaging a series of training images for a particular class of objects 910. The example shown is two-dimensional, however, similar bitmap masks can also be generated for 3D objects in the proposed volume data format with 1 bit per voxel. In fact, the method can also potentially be extended to use additional bits per voxel / pixel to specify a desired color range or other characteristics of a 2D or 3D object, as well as other example implementations.
[0072] Fig.10 is a table showing the results of an example experiment involving analysis of 10,000 CIFAR-10 test images according to some embodiments. In some implementations, operation elimination can be used to eliminate the Fig.10 The intermediate computations in 1D, 2D, and 3D CNNs are caused by the frequent rectified linear unit (ReLU) operations in LeNet 1000 shown in . Fig.10 As shown in , in experiments using 10,000 CIFAR-10 test images, the percentage of data-dependent zero values generated by the ReLU unit can be as high as 85%, which means that in the case of zero values, a system can be provided that recognizes the zero value and, in response, does not obtain the corresponding data and perform the corresponding multiplication operation. In this example, the 85% represents the percentage of ReLU dynamic zero values generated from the Modified National Institute of Standards and Technology Database (MNIST) test data set. The corresponding elimination of operations corresponding to these zero values can be used to reduce power consumption and memory bandwidth requirements, among other example benefits.
[0073] Unimportant operations may be eliminated based on the bitmap. For example, the use of such a bitmap may be in accordance with the principles and embodiments discussed and illustrated in U.S. Pat. No. 8,713,080, entitled "Circuit for compressing data and a processor employing the same," which is incorporated herein by reference in its entirety. Some implementations may provide hardware capable of using such a bitmap, such as the systems, circuits, and other implementations discussed and illustrated in U.S. Pat. No. 9,104,633, entitled "Hardware for performing arithmetic operations," which is also incorporated herein by reference in its entirety.
[0074] Fig.11 Hardware that can be incorporated into a system to provide functionality for bitmap-based culling of insignificant operations is shown in accordance with some embodiments. In this example, a multi-layer neural network is provided that includes repeated convolutional layers. The hardware may include one or more processors, one or more microprocessors, one or more circuits, one or more computers, etc. In this particular example, the neural network includes an initial convolution processing layer 1100, followed by a pooling process 1110, and finally an activation function process, such as a rectified linear unit (ReLU) function 1120. The output of the ReLU unit 1120, which provides a ReLU output vector 1131, can be connected to a subsequent convolution processing layer 1180 (e.g., possibly via a delay 1132), which receives the ReLU output vector 1131. In an example implementation, a ReLU bitmap 1130 can also be generated in parallel with the connection of the ReLU unit 1120 to the subsequent convolution unit 1180, the ReLU bitmap 1130 indicating which elements in the ReLU output vector 1131 are zero values and which elements are non-zero.
[0075] In one implementation, a bitmap (e.g., 1130) may be generated or otherwise provided to inform enabled hardware of opportunities to eliminate operations in computations involving neural networks. For example, bits in the ReLU bitmap 1130 may be interpreted by a bitmap scheduler 1160 that instructs the multipliers in the subsequent convolutional unit 1180 to skip zero-valued entries in the ReLU output vector 1131 given that multiplication by zero will always produce zero as output given the presence of a corresponding binary zero in the ReLU bitmap 1130. In parallel, memory fetches from the address generator 1140 for data / weights corresponding to zero values in the ReLU bitmap 1130 may also be skipped since there are few values in the fetched weights that would be skipped by the subsequent convolutional unit 1180. If the weights are fetched from an attached DDR DRAM memory device 1170 via the DDR controller 1150, the latency may be so high that only some on-chip bandwidth and associated power consumption may be saved. On the other hand, if the weights are fetched from on-chip RAM 1180 storage, it may be possible to bypass / skip the entire weight fetch operation, especially if a delay corresponding to the RAM / DDR fetch delay 1132 is added at the input to the subsequent convolution unit 1180.
[0076] Go to Fig.12 , presents a simplified block diagram according to some embodiments to illustrate improvements to example hardware equipped with circuits and other logic for eliminating unimportant operations (or performing operation elimination). Fig.12 As shown in the example of , additional hardware logic may be provided to predict the sign of the ReLU unit 1220 input from the leading Max-Pooling unit 1210 or the Convolution unit 1200 in advance. Adding sign prediction and ReLU bitmap generation to the Max-Pooling unit 1210 may allow the ReLU bitmap information to be predicted earlier from a timing perspective to cover delays that may occur through the address generator 1240, through the external DDR controller 1250 and DDR storage 1270, or internal RAM storage 1271. If the latency is low enough, the ReLU bitmap may be interpreted in the address generator 1240 and the memory fetch associated with the ReLU bitmap zero value may be skipped entirely, since it can be determined that the result fetched from memory will never be used. Fig.11 This modification of the scheme can save additional power and may also allow removal of delay stages (e.g., 1132, 1232) at the input to a subsequent convolution unit 1280 if the latency through the DDR access path (e.g., 1240 to 1250 to 1270) or the RAM access path (e.g., 1240 to 1271) is low enough so as not to warrant delay stage 1232, as well as other example features and functionality.
[0077] Fig.13 is another simplified block diagram illustrating example hardware according to some embodiments. For example, a CNN ReLU layer may produce a high number of output zero values corresponding to negative inputs. In practice, negative ReLU inputs can be identified by looking at the previous layers (e.g., Fig.13 Floating point and integer arithmetic can be explicitly signed in a most significant bit (MSB) manner, so that a simple bitwise exclusive OR (XOR) operation across the input vectors to be multiplied in the convolutional layer can predict which multiplications will produce an output value of zero, such as Fig.13 The resulting ReLU bitmap vector of predicted symbols may be used as a basis for determining a subset of multiplications to eliminate and the associated coefficients to read from memory, such as in the manner described in other examples above.
[0078] Providing for returning the generation of the ReLU bitmap to a previous pooling or convolution stage (i.e., a stage before the corresponding ReLU stage) can result in additional power. For example, when the multiplier will produce a negative output that will ultimately be set to a zero value by the ReLU activation logic, sign prediction logic can be provided for disabling the multiplier. For example, this is shown where the two sign bits 1310 and 1315 of the multiplier 1314 inputs 1301 and 1302 are logically combined through an XOR gate to form a pre-ReLU (PreReLU) bitmap bit 1303. This same signal can be used to disable the operation of the multiplier 1314, which would otherwise unnecessarily consume energy to generate a negative output that would be set to a zero value by the ReLU logic before being input for multiplication in the next convolution stage 1390, as well as other examples.
[0079] Note that the representations of 1300, 1301, 1302 and 1303 (symbol A) show that Fig.13 1302. In this example, the input to block 1302 may include two floating point operands. Input 1301 may include an explicit sign bit 1310, a mantissa 1311 including a plurality of bits, and an exponent 1312 also including a plurality of bits. Similarly, input 1302 may similarly include a sign 1315, a mantissa 1317, and an exponent 1316. In some implementations, the mantissa and exponent may have different precisions because the sign of the result 1303 depends only on the signs of 1301 and 1302 or 1310 and 1315, respectively. In fact, neither 1301 nor 1302 need to be floating point numbers, but may be any integer or fixed point format as long as they are signed numbers and the most significant bit (MSB) is effectively a sign bit, either explicitly or implicitly (e.g., if the number is in 1's complement or 2's complement, etc.).
[0080] continue Fig.13 In the example of, two sign inputs 1310 and 1315 may be combined using an exclusive-OR (XOR, sometimes alternatively denoted herein as ExOR or EXOR) gate to generate a bitmap bit 1303, which may then be processed using hardware to identify downstream multiplications that may be omitted in the next convolution block (e.g., 1390). The same exclusive-OR output 1303 may also be used to disable the multiplier 1314 in the case where the two input numbers 1313 (e.g., corresponding to 1301) and 1318 (e.g., corresponding to 1302) have opposite signs and will produce a negative output 1304 that will be set to a zero value by the ReLU block 1319, resulting in a zero value in the RELU output vector 13191 that is to be input to the subsequent convolution stage 1390. Thus, in some implementations, the pre-ReLU bitmap 1320 may be transmitted in parallel to a bitmap scheduler 1360, which may schedule multiplications to be run (and / or omitted) on the convolution unit 1390. For example, for each zero value in the bitmap 1320, the corresponding convolution operation may be skipped in the convolution unit 1390. In parallel, the bitmap 1320 may be consumed by an example address generator 1330, which controls the acquisition of weights for use in the convolution unit 1390. A list of addresses corresponding to the 1 values in the bitmap 1320 may be compiled in the address generator 1330 and control the path to the DDR storage 1370 via the DDR controller 1350, or to the on-chip RAM 1380. In either case, weights corresponding to 1 values in the pre-ReLU bitmap 1320 may be captured and presented (e.g., after some latency in clock cycles to the weight input 1371) to the convolution block 1390, while acquisition of weights corresponding to zero values may be omitted, among other examples.
[0081] As described above, in some implementations, a delay (e.g., 1361) may be interposed between the bitmap scheduler 1360 and the convolution unit 1390 to balance the delay through the address generator 1330, the DDR controller 1350 and the DDR 1350, or the delay of the path through the address generator 1330 and the internal RAM 1380. The delay may enable the convolution driven by the bitmap scheduler to be properly aligned in time with the corresponding weights used for the convolution calculation in the convolution unit 1390. In fact, from a timing perspective, generating the ReLU bitmap earlier than at the output of the ReLU block 1319 may allow additional time to be gained, which may be used to intercept reads to the memory (e.g., RAM 1380 or DDR 1370) before the address generator 1330 generates them, so that some readings (e.g., corresponding to zero values) may be predetermined. Because memory reads may be much higher than logic operations on the chip, eliminating such memory fetches may result in very significant energy savings, among other example advantages.
[0082] In some implementations, if the savings in clock cycles still exist to not cover the DRAM access time, a block-oriented technique can be used to read groups of sign bits (e.g., 1301) from the DDR in advance. These groups of sign bits can be used together with blocks of signs from the input image or intermediate convolutional layer 1302 to generate pre-ReLU bitmap blocks using a set (multiple) of XOR gates 1300 (e.g., to calculate the difference between sign bits in a 2D or 3D convolution between 2D or 3D arrays / matrices, among other examples). In such implementations, an additional 1-bit storage can be provided in the DDR or on-chip RAM for storing the sign of each weight, but this can allow for multiple cycles of latency to be covered in a manner to avoid reading from the DDR or RAM the weights that will be multiplied by zero from the ReLU stage. In some implementations, the additional 1-bit storage per weight in the DDR or on-chip RAM can be avoided because the signs are stored in a manner that they are addressable independently of the exponent and mantissa, among other example considerations and implementations.
[0083] In one example, the system can be further enhanced to utilize DDR access, which can have natural burst access for maximum data transfer rate. It may not be feasible to save energy by skipping individual DDR weight accesses in this content because they may be shorter than the burst. Therefore, in some instances, the burst can be skipped when all bitmap bits corresponding to a particular burst transaction are 0. However, this may not happen frequently and therefore, the resulting power and bandwidth savings may be limited. In yet other implementations, a register programmable threshold can be set for the number of bitmap bits in the burst so that if more than N bits in the bitmap burst are zero values, the burst will be skipped completely. This may have the effect of slightly degrading the overall CNN classification accuracy, but may be acceptable for energy saving considerations.
[0084] In some implementations, the previous examples may utilize hash tables for storing and accessing at least some of the volume data used in these examples. For example, hash tables may be utilized in previous low latency, low power, and resource-constrained embodiments. Conventional hashing methods for storing 3D volume data utilize large prime numbers in an attempt to achieve well-distributed hash addresses to thereby minimize addressing conflicts. Conventional implementations utilize hashing techniques originally suitable for use in 2D data applications and utilize large prime numbers, which are used to create hash addresses by randomizing key values. However, several such conventional implementations do not provide evidence of why they utilize such large prime numbers. In some implementations, it should be recognized that 3D data inherently has a good distribution because essentially all coordinates can be considered unique. Therefore, implementations may employ alternative hashing techniques for 3D data applications that omit the use of large prime numbers. In fact, the use of prime numbers for hashing 3D data in conventional implementations may persist primarily due to habit rather than empirical reasons.
[0085] In an improved system, an addressing scheme that exploits the inherent order of 3D data and omits the use of large prime numbers may be implemented. Such an implementation may result in a system with more efficient storage, retrieval, and deletion of 3D volume data, as well as other example advantages. For example, such an improved 3D addressing scheme may additionally produce far fewer addressing conflicts than conventional hashing techniques that utilize large prime numbers.
[0086] In some computing systems, hash algorithms and corresponding logic for executing these algorithms (i.e., implemented in dedicated and / or general-purpose hardware circuits, firmware and / or software) can be used to map data of arbitrary size to a specific addressing space. Such hashing techniques can be used to store, retrieve and delete data that defines a 3D space, such as 3D volume data. Such 3D volume data, such as 3D data implemented according to the VOLA format described herein. In addition, hashing techniques can be used in conjunction with the applications discussed herein, in conjunction with the storage, retrieval and use of 3D data. In traditional applications, a common goal in the use of traditional hashing algorithms is to achieve unique mapping addresses for data. However, in theory, it is actually impossible to define a hash function that creates true random data from non-random data. An example of this phenomenon is the "birthday paradox", which highlights the difficulty of achieving a unique address: if a random function is selected to map 23 keys to a table of size 365, the probability that no two keys are mapped to the same position is only 0.4927.
[0087] In hashing (or "spatial hashing"), address computation is typically accomplished by randomizing and scrambling the key value, with many techniques using large prime numbers to accomplish this scrambling. In this context, hashing is a technique in which objects or points in a 2D or 3D domain space are projected into a 1D data table (or "hash table") to allow very fast queries (e.g., location queries, proximity detection queries, etc.) for objects in the domain space. When considering hashing for 3D data, well-distributed addresses may be desirable to maintain data integrity. 3D volumetric data may inherently have well-distributed voxel addresses. For example, in the example 3D volumetric data, each bit i may be unique, and each voxel i may have a unique address. i The (x, y, z) coordinates of the example 3D volume data may be unique. In one example implementation, an algorithm implemented in the system may utilize unique voxel locations in the example 3D volume data to provide an addressing scheme that minimizes addressing conflicts. In this context, an addressing conflict (or hash conflict, or simply, a "collision") refers to an instance in which a hash function employed in the hashing scheme generates the same index for more than one key in a hash table.
[0088] In some implementations, multiple different hash functions can be enabled in the system, and a specific one of the hash functions can be selected based on the application. Some applications focus on maintaining data integrity (e.g., minimizing the number of hash conflicts), while other applications focus on execution speed (e.g., the speed of data retrieval), as well as other examples. Another consideration is to provide a technology that allows easy data insertion and removal, which may be crucial when considering dynamic data and other examples. In some instances, a hash algorithm should be selected so that the hash values generated from the algorithm are evenly distributed to promote fully promising performance. In fact, the optimal solution may be to provide a perfect hash function that allows data to be retrieved with a single query in a hash table. Such a solution will provide a hash without addressing conflicts. Intuitively, this can be achieved by providing a suitably large hash table. However, because volume data is often used in memory-constrained situations, such as on mobile platforms, and other restricted systems, this is not always practical.
[0089] Examples of conventional hashing schemes that utilize prime numbers in the hashing of 3D data include division hashing techniques, multiplication hashing techniques, XOR hashing schemes, Morton Ordering hashing schemes, and other examples. In some implementations, a system may be provided that includes logic to implement any of a plurality of different hashing schemes. In some instances, a successful hash function may depend on the application. In some contexts, the success of a hashing algorithm may be measured or considered based on data integrity, such as minimizing the number of voxels that are not stored in a hash table due to addressing conflicts while maintaining a reasonable data footprint, and other examples. In addition, the size of the hash table to be used may be important in managing the size of the data footprint, especially in lightweight or resource-constrained systems (such as resource-constrained drones, robots, autonomous passenger or cargo carriers, or other devices capable of autonomous movement in 3D space). Although it can be assumed that the larger the table, the fewer addressing conflicts will occur when inserting data into the table, the choice of hash table size may introduce bias when the hash address is a modulus of the hash table size. Therefore, when choosing a hash table size, bigger is not always better, and more efficient hashing algorithms can enable the use of smaller hash tables, which is more friendly to resource-constrained architectures.
[0090] In some implementations, hash tables can be utilized in conjunction with particular hashing algorithms that enable information for more than one element (e.g., occupancy or other information for more than one voxel in a particular virtual or physical 3D space) to be stored in each entry of the hash table. For example, one advantage of using hash table entries that store more than one element is that the number of external searches used to find the correct entry is reduced. The hash table entry size can be designed based on the number of voxels (and any other identification data) and the number of bits used to store information for each voxel or other element. For example, the example sparse tree volume data structure discussed in the present disclosure can be considered and a corresponding hash table entry size utilized to accommodate data representing multiple voxels described in the volume data structure. As an example, 128 bits can be allocated for a single hash table entry to accommodate 4 of consecutive voxels. 3 2 bits per voxel representation of the block. However, there may be a limit on the number of voxels represented in the data occupying a single entry of the hash table, as some 3D data may be inherently sparse (e.g., on average, the Dublin City Dataset is 98.74% sparse), but have a large voxel distribution. Representing a more modest number of voxels (e.g., 64 voxels) can be efficient while minimizing the impact of noise in the form of outliers. For example, in the 2-bit per voxel approach, in the example of 64 voxels per entry, only 128 bits would be allocated for noise. However, the larger the hash entry, the more memory can potentially be allocated to noisy voxels.
[0091] Steering Fig.14 , a simplified block diagram 1400 illustrating an example environment of a machine 1405 for analyzing a 3D space is shown. In some implementations, the machine may be equipped with machine executable logic implemented in hardware and / or circuitry to utilize volumetric data to describe a 3D space in one or various applications or actions (such as, as discussed herein, SLAM programs, raycasting, collision detection, 2D or 3D path planning, and other examples). As discussed herein, the volumetric data may be embodied as a sparse tree representation. In some instances, hash tables may also or alternatively be used to perform faster processing of volumetric data by weighing increased memory usage (e.g., when hash tables use less memory than dense arrays). In some instances, hash tables may be used with multi-layer sparse tree-based structures, where hash tables are used to quickly identify occupied voxels at a particular resolution and then use sparse tree representations to determine voxel occupancy at a higher resolution, and perform more accurate analysis when called upon, and other examples. In practice, the machine 1405 may include hardware and logic configured to handle and process volumetric data represented in a sparse tree volume data structure as discussed herein.
[0092] exist Fig.14 In the particular example shown in , machine 1405 may be implemented as an autonomous or semi-autonomous machine that is capable of processing volumetric data describing a 3D scene and utilizing that information to autonomously move within the scene (e.g., change its position within the scene and / or change the orientation (e.g., aiming) of one or more machine elements (e.g., sensors, cameras, pointers, actuators, tools, etc.) based on the terrain present in the scene. By doing so, the machine may detect objects (e.g., 1410a-c) and autonomously navigate within or interact with the scene based on the detected objects. In some implementations, machine 1305 may be embodied as an autonomous vehicle (for carrying passengers or cargo), an aerial drone, a land-based drone, or a water-based drone, a robot, and other examples.
[0093] In one example implementation, machine 1405 may include a computing system 1406 implemented using a data processor 1415 (such as one or more central processing units (CPUs), graphics processing units (GPUs), tensor processing units or other matrix arithmetic processors, hardware accelerators (e.g., volume processing accelerators, machine learning accelerators), and other example general or special processing hardware), and further implemented using one or more memory elements (e.g., 1420). Additional logic blocks may be provided, which are implemented in hardware circuits, firmware, or software, such as volume processing logic 1425, actuators 1430, and hashing logic 1435. In some implementations, machine 1405 may additionally include one or more sensors (e.g., 1440) to measure 3D space (e.g., lidar, time of flight sensors, realsense sensors, etc.). Such sensors 1440 may be used to generate volumetric data describing a 3D environment to develop a map of the volume and to compare locally observed geometry detected using sensors 1440 to reference data describing occupancy geometry of an expected or previously observed version of the volume. Volumetric data generated and / or used by the machine may be maintained, at least in part, in one or more hash tables 1450. As described above, in some implementations, the volumetric data in the hash table entries may be supplemented by high-resolution volumetric data, such as by sparse tree volumetric data, such as discussed herein, such as sparse tree volumetric data in VOLA format (e.g., data 1455).
[0094] continue Fig.14In one example, volume processing logic 1425 may be provided with logic to perform one or more different volume processing operations or tasks, such as tasks related to 3D convolution, ray casting, SLAM, collision detection, autonomous navigation, etc. In one example, at least a portion of volume processing logic 1425 may be implemented using a volume acceleration unit, such as a volume acceleration unit (VXU) described herein. Volume processing logic may take as input volume data implemented in either or both of hash table entries and VOLA data 1455, among other examples. In some instances, the results generated by the volume data may cause one or more actuators 1430 of machine 1405 to be triggered, causing one or more motors, engines or other drives and / or one or more steering mechanisms to be activated, and causing the machine itself or a particular tool of the machine to move within the volume according to its design. For example, volume processing logic may provide input to one or more actuators to enable a drone or autonomous vehicle to autonomously navigate within a volume understood by the machine through processing of the volume data.
[0095] In some instances, such as in resource-constrained systems or applications requiring fast response times, the system does not initially process high-resolution volume data, but may instead rely on low-resolution volume data that the system can quickly query and access. For example, various volume applications may include detecting that one or more voxels in a 3D space are empty or occupied by (e.g., physical or virtual) 3D geometric shapes. In such instances, the volume processing logic 1425 can operate with the hash logic 1435 to query the volume data maintained in the entry of the hash table 1450 and access the volume data for processing. Further, the hash logic 1435 can be used to insert the volume data generated by the system's sensor 1440 and any other kind of spatial 3D data (such as radar, ultrasound, etc., as well as other examples) as a new hash table entry. In some implementations, the hash logic 1435 can be implemented in hardware, firmware, and / or software to implement a density coordinate (DECO)-based hashing algorithm, such as discussed in more detail below.
[0096] A hash table (e.g., 1450) may be implemented to include data representing the voxel using one or more bits per voxel. In one example, one bit per voxel may be utilized to represent voxel occupancy, while another bit per voxel is used for a table entry identifier to implement addressing conflict detection. In some implementations, the volume data stored in the entry may be formatted and / or organized based at least in part on VOLA or other sparse tree data structure formats. Other examples may utilize additional bits to indicate additional information for each voxel or to implement collision detection and resolution. For example, additional bits per voxel may be allocated to identify voxel characteristics such as color, material, or type, as well as other examples, although depending on the application, adding such information may be redundant to the machine's use of the hash table and may be overly memory intensive. In the example, where 2 bits are allocated for each voxel in a table entry representing a subset or block of 64 voxels in the volume, the memory requirement for a single entry would be 128 bits (0.016kB), allowing each kB of hash table memory to accommodate 62.5 buckets or entries, and 64kB to facilitate 4000 buckets or entries, etc.
[0097] In some implementations, an improved hash algorithm may be employed to enable fast access to volume information described in volume data captured by one or more sensors. For example, a density coordinate (DECO) hash algorithm may be provided and implemented in hardware and / or software of a computing device to exploit the inherent structural aspects of 3D volume data. For example, an example DECO hash algorithm may exploit how a large amount of 3D volume data is densely / sparsely occupied, and also exploit how unique the relative coordinate values of each voxel in the volume are. For example, the sparse nature of a large amount of 3D data may be exploited by representing only occupied voxels. This frees up valuable memory for other uses. In one example, volume data representing one or more voxels in a volume may be stored in an entry in a hash table, and the address of the entry may be generated from an index derived by an example DECO hash algorithm. In one example, the DECO hash algorithm may effectively connect the values of coordinates associated with a voxel (i.e., the x-coordinate, y-coordinate, and z-coordinate associated with a voxel in the volume), where the coordinate values are weighted using a side length (SL) variable and the weighted values are summed to generate an index. The manner in which the component coordinate values are weighted may be based on the observed or predicted density or diversity of 3D geometry in the volume along one or more of the coordinate axes of the volume. For example, it may be observed that the 3D geometry within the volume is denser or more diverse in the x-dimension or y-dimension of the volume, while the z-dimension is sparser. The weights may be selected based on the observed or predicted density of the volume so as to minimize collisions in the hash function.
[0098] As a specific example, the DECO hash algorithm can be implemented according to the following formula:
[0099] Index = (ID z *(SL 2 )+ID y *(SL)+ID x )
[0100] Where ID x 、ID y and ID z are the x-coordinate values, y-coordinate values, and z-coordinate values associated with the object voxel, and SL is the side length variable. The side length variable SL can potentially be any value and can be selected to minimize conflicts in the resulting hash table. In some implementations, the SL value can be selected to correspond to the length of one side of the object volume (e.g., in voxels or voxel blocks). The hash table address can be generated from an index value calculated using modular arithmetic, such as according to the example formula:
[0101] Hash address (hash_addr) = index% N
[0102] Where N is the number of entries / addresses to be indexed in the hash table, among other example implementations.
[0103] In the example hash formula above, we can use the side length variable (SL) and the z coordinate value ID z The z-coordinate values are weighted most heavily by squaring the side length variables before multiplying. This can be done based on the assumption that the occupied space within the 3D volume is either less dense or less variable in the z-coordinate of the volume, or both. This weighting can be used to reduce the likelihood of collisions in hash addresses determined for corresponding volume data used in the hash table. In other implementations, the z-coordinate values can be weighted less heavily (e.g., multiplied by SL) in situations where the occupied space or 3D geometry is denser in the z-coordinate plane, but less dense in the x-coordinate or y-coordinate plane. 0 Not SL 2 ), while weighting other coordinate values (x-coordinate value and y-coordinate value) to a greater extent, and other examples. In fact, historical observations or predictions of density characteristics within the volume can be identified, and this information can be used to dynamically select the DECO hash formula to appropriately weight the corresponding coordinate values. Further, the SL value can also be dynamically determined based on assumptions about the determination of the object volume to encourage optimizations that limit the number of conflicts in the hash address determined using the DECO hash algorithm, and other example considerations and implementations.
[0104] As described herein, it may be advantageous for a single hash table entry to have volume data to simultaneously describe multiple voxels within a volume. Fig.15 As shown in the example of FIG. 4 , the hash table entries may allow volume data to be contained in a 4-dimensional array consisting of voxels. 3A set of 64 voxels within a subvolume defined by a block, or an entry within a block. In this example, rather than using the coordinates of a single, object-specific voxel to perform the hash, the algorithm uses the relative coordinates of the block of voxels within the geometry as the x-, y-, and z-coordinate values. For example, in Fig.15 In the example shown in , individual voxels in 3D space (e.g., 1505) can be logically grouped into sets (or "blocks") of 64 voxels representing 4×4×4 voxel blocks (e.g., 1510). When a particular voxel is identified, the coordinates of that voxel can be mapped to a reference such as Fig.15 For example, when it is determined that a voxel (e.g., 1505) is occupied and must be added to the hash table, it is first determined to which 4×4×4 block (e.g., 1510) the voxel belongs. 3 For example, in a voxel volume of 515 or an environment, there will be 16 3 4 3 For example, the identifier or coordinate values of the block can be taken as the coordinates of the corner nodes (e.g., voxels 1520) of the block, discretized relative to the size of the block. 3 In the case of blocks, the voxel block identifiers are discretized about 4. 3 The volume of the voxel is 1515 (e.g. Fig.15 In the example shown in ), the coordinates of these blocks, called identifier (ID) coordinates, would range from (x; y; z) = (0; 0; 0) to (x; y; z) = (63 / 4; 63 / 4; 63 / 4) = (15; 15; 15).
[0105] As introduced above, the side length (SL) variable can be adjusted and selected in the use of DECO hashing in an attempt to optimize the algorithm and achieve a minimum number or percentage of collisions during hashing. For example, in an implementation where information for a voxel block is stored in a single hash table entry, selecting a side length that corresponds to the number of voxel blocks on one side of the overall object volume can result in a minimized percentage of collisions. In one example, a hash table size of 32kB (2040 table entries) can be used to store information describing the volume of a Stanford Bunny. The bunny fits in 16 3 4 3 The volume is considered at a resolution within the volume of the voxel block. For this example, testing the DECO hash algorithm for varying SL values revealed that an SL value of 16 produces a minimal percentage of collisions (e.g., 0.79%). More generally, the optimal SL value may correspond to the cube root of the number of voxel blocks in the object volume. This is because, for example, at 64 3 In a voxel environment, there are up to 16 34 3 Thus, if 16 is used as the value of SL, no collision will occur when computing the index of the current block (i.e., using a DECO hash formula such as discussed above), but collisions may still occur when computing the hash table address.
[0106] In the DECO hashing implementation, once the occupied voxel is determined to belong to the 4 3 The coordinates of the block determine its equivalent to the other 4 3 The index of the block (in some examples, this can be derived directly from the coordinate values of the individual object voxels, for example, by removing one or more least significant bits from the binary representation of the voxel's coordinates to truncate the binary representation to identify the corresponding 4 3 voxel block). For example, in Fig.15 In the example of , each individual voxel coordinate may be represented using a 32-bit value, and each voxel in a given block may have an individual voxel coordinate value that shares the same 30 most significant bits. Thus, these shared 30 common bits may be used as the coordinate value for the block within that volume (and the 2 remaining least significant bits may uniquely identify each individual voxel within that block), as well as other examples.
[0107] Continuing with the above example, when the block coordinates of the block containing the particular voxel of interest are determined, these block coordinate values may be provided as (eg, in the above example) ID x 、ID y and ID z Further, if Fig.15 As shown in , the side length value can be based on 3 The length of the object volume represented in voxel blocks (e.g., 16 voxel blocks on each side, resulting in 4 3 Voxel block of 16 3 In practice, the size of the selected voxel block (e.g., 2 3 , 3 3 , 8 3 Similar principles apply to the size of voxel blocks, etc.), the size of hash tables and their constituent entries, and the size and dimensionality of object volumes, as well as other considerations.
[0108] Using the DECO hash function, an index can be derived from which a hash table address can be determined (e.g., using a modulo operation) to identify a particular entry within the hash table, which (if it has been measured) includes volume data for a corresponding block of voxels. Thus, the volume data for the entry can describe a corresponding occupancy state for each of the voxels within the block. The row of volume data can be read (or written) by a machine to identify within the row of volume data occupancy (and potentially other) information for a particular voxel within the identified block of voxels (as well as similar information for each of the other voxels in the block).
[0109] The DECO hash algorithm can achieve many advantages over conventional hashing algorithms (including hashing algorithms that utilize large prime numbers) for 3D data (i.e., data that represents and describes a 3D volume). For example, in some implementations, insertion into a hash table can be simplified using DECO hashing compared to conventional methods. Specifically, once a voxel is determined to be occupied (e.g., by a sensor on the machine performing a hash function or by the machine receiving data from a sensor on a remote machine, etc.) and should be inserted into the hash table, the 4-bit address to which the voxel belongs is calculated. 3 The hash address of the block. This calculation may depend on the selected hash function. If no collision occurs, the bit corresponding to the voxel in the hash entry is set to one. If a collision occurs, the voxel cannot be set, and the collision may be handled using a conflict management scheme provided in conjunction with the hash table (e.g., by storing the data to be inserted in the next available sequential entry, through the use of "degenerate addresses" (e.g., if a collision occurs in entry 2748, the voxel may be placed in entry 274, overflowing from entry 274 will be placed in entry 27, etc.), and other example schemes). For deletion, when it is determined that a voxel is to be deleted from the hash table, the 4 3 The hash address of the node. If no collision occurs, and the bit is already set, then the bit in the hash address corresponding to that voxel is simply unset. If no collision occurs, and the bit is not set, or the hash address is null, then an attempt is being made to delete a voxel that has never been set - once this is determined, no further calculations need to be done.
[0110] DECO hashing can outperform traditional 3D hashing algorithms by achieving a significant reduction in collisions. Figures 16A-16C 1600a-c in , the collision performance observed in the use of the example DECO hash algorithm is compared with the performance of traditional hash algorithms (such as the XOR hash algorithm, the Morton sort non-prime hash algorithm, and the traditional Morton sort hash algorithm). In these examples, each object hash algorithm utilizes a hash table of similar size. Fig.16A Results for datasets including the Stanford Rabbit dataset are shown, and the percentage of conflicts when using each of the algorithms is shown. Similarly, Fig. 16B A comparison of the percentage of collisions observed using each of the hashing algorithms in a volume defined by the Liffey Tile of the Dublin City dataset is shown. Fig. 16C 1 shows a comparison of the percentage of collisions observed for hash algorithms over the entire Dublin City dataset (eg, a #D map representing the city of Dublin, Ireland). As shown, the DECO hash algorithm performs better than a trusted traditional 3D hash algorithm.
[0111] In addition to choosing an appropriate hash algorithm, the hash table size can also affect the number of address conflicts, because the corresponding address results may vary greatly when using moduli with only slightly different numbers. However, the hash table size can represent a trade-off between resource usage and performance optimization. For example, the impact of changing the hash table size can be investigated across multiple competing hash algorithms for a specific data set. In one example, it was found that a collision rate of less than 1% could be achieved using DECO hashing for a specific data set using a hash table as small as 1.2MB. However, to achieve the same result using a different traditional hash algorithm (e.g., XOR hashing), a significantly larger hash table (e.g., having a size greater than 4MB) may be required. This result emphasizes that DECO hashing is superior to XOR hashing when hashing 3D volume data.
[0112] As another example advantage of DECO hashing over other traditional 3D hashing methods, the distribution of voxels stored in a hash table filled with DECO hashing can be significantly more compact than that achieved using traditional hashing methods. Although some traditional hashing methods (such as Morton sorting without primes) also store voxels in a compact manner in a hash table, such traditional methods tend to leave large gaps between occupied hash entries and unoccupied hash entries. By using the superior compactness achieved with DECO hashing, in some instances, the resulting hash table can be much more compact in some areas of the hash table and highly sparse in other areas. Therefore, when such instances are detected, the system can dynamically reallocate the more sparsely occupied areas in the table for other purposes, such as a secondary hash table that can more densely compress voxels. Such methods will free up memory from the main hash table for other purposes, which is an attractive proposition for embedded devices, mobile devices, and similarly memory-constrained devices.
[0113] Go to Fig.17, a flowchart 1700 is shown, as described above, which shows an example technique for inputting volume data describing one or more voxels into a hash table using a DECO hash algorithm. Volume data 1705 may be received (e.g., from a sensor) that describes at least a portion of a volume and identifies a geometric shape present within the volume. For example, the volume data may indicate whether a particular voxel within the volume is occupied by a geometric shape. Coordinates associated with a particular voxel may be determined 1710, expressed as an x-coordinate, a y-coordinate, and a z-coordinate within the volume. In some instances, the coordinates may be coordinates of a voxel block and the particular voxel may be included within the voxel block (i.e., rather than the coordinates being specific coordinates of a particular voxel). An index 1715 for a particular voxel may be determined using a DECO hash algorithm that takes as input the values of the x-coordinate, the y-coordinate, and the z-coordinate. The hash algorithm may generate an index by summing weighted values of the x-coordinate, the y-coordinate, and the z-coordinate, wherein the x-coordinate, the y-coordinate, and the z-coordinate are weighted to a power of 0, 1, or 2 by a weighting variable value (e.g., an edge length variable value). A hash table address 1720 can be determined from the index value (e.g., using modulo operations) to identify an entry within the hash table to be associated with the coordinates (and the volume data for a particular voxel). Before the volume data is written to or inserted into the entry, it can be determined 1725 whether the entry has already been written to and filled with volume data for other voxels, indicating a conflict. If a conflict exists, a conflict management scheme can still be employed to store the volume data describing the particular voxel (e.g., in an alternative entry of the hash table). If no conflict exists, the volume data can be inserted 1730 into the entry to store the volume data within the hash table to enable fast query and access to the volume data and the information it represents. In some implementations, the volume data can be stored in a VOLA-based format (e.g., a 4K-based format describing a particular voxel at a particular resolution). 3 occupancy of groups or blocks of voxels).
[0114] Go to Fig.18, another flowchart 1800 is shown that illustrates an example technique for querying and accessing volume data corresponding to a particular voxel in a 3D space (or volume). For example, a particular voxel may be identified (e.g., in conjunction with a volumetric operation or application (e.g., autonomous navigation, path finding, ray casting, etc.)) and the corresponding coordinates (i.e., x-coordinate, y-coordinate, and z-coordinate) of the particular voxel may be determined 1810. As in other examples, these coordinates may be the coordinates of a voxel block of the particular voxel, rather than the coordinates of the particular voxel itself (although, as discussed above, the coordinates of the voxel block may be determined directly from the specific coordinates of the constituent voxels). An index 1815 may be determined from the x-coordinate value, the y-coordinate value, and the z-coordinate value using a DECO hash algorithm, such as discussed herein, by calculating the sum of weighted values of the x-coordinate, the y-coordinate, and the z-coordinate (e.g., weighted using an edge length variable or other weighting variable). Further, a hash table address 1820 may be derived from the determined index value (e.g., by modulus of the index value). In the case where the address is determined, volume data can be read from the entry corresponding to the address determined in the hash table. In some instances, it can be determined that the entry is empty, so that volume data for a specific voxel is collected to fill the hash table. In other instances, if the entry corresponding to the determined address is filled with volume data of different voxel blocks and other example problems, it can be determined that there is a conflict in the hash table. However, in a conflict-free operation, the volume data within the hash table entry can be read 1825 and processed to determine 1830 whether the specific voxel is occupied by a geometric shape (e.g., from a specific bit in the volume data mapped to a specific voxel). Such a determination (at 1830) can be used to trigger additional actions (e.g., path finding, conflict avoidance, access to a multi-level VOLA structure to analyze voxel volumes at a higher resolution, and other example uses). In fact, the present disclosure includes multiple examples of the use of VOLA data in a computing system. It should be understood that in the applications and examples discussed herein, volume data accessed from a hash table (such as a hash table generated using DECO hashing) can be similarly utilized. Indeed, the following figures and description provide additional examples of use cases and hardware that may utilize volume data accessed from a hash table constructed using DECO hashing.
[0115] Fig.191 is a simplified block diagram of an example multi-slot vector processor (e.g., a very long pointer (VLIW) vector processor) according to some embodiments. In this example, the vector processor may include multiple (e.g., 9) functional units (e.g., 1903-1911), which may be fed by a multi-port memory system 1900, backed up by a vector register file (VRF) 1901 and a general register file (GRF) 1902. The processor includes an instruction decoder (IDEC) 1912, which decodes instructions and generates control signals for controlling the functional units 1903-1911. Functional units 1903-1911 are a speculative execution unit (PEU) 1903, a branch and repeat unit (BRU) 1904, a load-store port unit (e.g., LSU0 1905 and LSU1 1906), a vector arithmetic unit (VAU) 1907, a scalar arithmetic unit (SAU) 1910, a compare and move unit (CMU) 1908, an integer arithmetic unit (IAU) 1911, and a volume acceleration unit (VXU) 1909. In this particular implementation, the VXU 1909 can accelerate operations on volume data, including both store / retrieve operations, logical operations, and arithmetic operations. Although in Fig.19 In the example of FIG. 1 , the VXU circuit 1909 is shown as a single component, but it should be understood that the functionality of the VXU (and any of the other functional units 1903-1911) can be distributed among multiple circuits. Further, in some implementations, the functionality of the VXU 1909 can be distributed within one or more of the other functional units of the processor (e.g., 1903-1908, 1910, 1911), as well as other example implementations.
[0116] Fig. 202 is a simplified block diagram showing an example implementation of the VXU 2000 according to some embodiments. For example, the VXU 2000 may provide at least one 64-bit input port 2001 to accept input from a vector register file 1901 or a general register file 1902. The input may be connected to a plurality of functional units to operate on a 64-bit unsigned integer volume bitmap, including a register file 2003, an address generator 2004, a point addressing logic 2005, a point insertion logic 2006, a point deletion logic 2007, a 3D to 2D projection logic in the X dimension 2008, a 3D to 2D projection logic in the Y dimension 2009, a 3D to 2D projection logic in the X dimension 2010, a 2D histogram pyramid generator 2011, a 3D histogram pyramid generator 2012, a population counter 2013, a 2D path finding logic 2014, a 3D path finding logic 2015, and possibly additional functional units. The output from block 2002 may be written back to the vector register file VRF 1901 or general register file GRF 1902 register file.
[0117] Go to Fig.21 , showing a representation of the organization of a 4^3 voxel cube 2100. A second voxel cube 2101 is also shown. In this example, the voxel cube may be defined in data such as a 64-bit integer 2102, where each individual voxel within the cube is represented by a single corresponding bit in the 64-bit integer. For example, voxel 2012 at address {x,y,z}={3,0,3} may be set to "1" to indicate the presence of a geometric shape at those coordinates within the volumetric space represented by voxel cube 2101. Further, in this example, all other voxels (except voxel 2102) may correspond to "empty" space and may be set to "0" to indicate that no physical geometry exists at those coordinates, as well as other examples. Go to Fig. 22 , an example two-level sparse voxel tree 2200 is shown in accordance with some embodiments. In this example, only a single "occupied" voxel is included in the volume (e.g., at position {15,0,15}). In this case, the upper level 0 of the tree 2201 contains a single voxel entry {3,0,3}. This voxel in turn points to the next level of the tree 2202 which contains a single voxel in the element {3,0,3}. The entry in the data structure corresponding to level 0 of the sparse voxel tree is a 64-bit integer 2203 having one voxel set to occupied. This set voxel means that an array of 64-bit integers is subsequently allocated to level 1 of the tree corresponding to the voxel volume set in 2203. In the level 1 subarray 2204, only one voxel is set to occupied, while all other voxels are set to unoccupied. In this example, because the tree is a two-level tree, level 1 represents the bottom of the tree, so that the hierarchical structure ends here.
[0118] Fig.23 A two-level sparse voxel tree 2300 is shown containing occupied voxels in positions {15,0,3} and {15,0,15} of a particular volume in accordance with some embodiments. In this case (subdividing the particular volume into 64 upper level 0 voxels), the upper level 0 of the tree 2301 contains two voxel entries {3,0,0} and {3,0,3} with corresponding data 2304 showing that the two voxels are set (or occupied). The next level of the sparse voxel tree (SVT) is provided as an array of 64-bit integers containing two sub-cubes 2302 and 2303, one for each set of voxels in level 0. In the level 1 sub-array 2305, two voxels are set to occupied: v15 and v63, and all other voxels are set to unoccupied and the tree. This format is flexible because the 64 entries in the next level of the tree are always allocated corresponding to each set voxel in the upper level of the tree. This flexibility can allow dynamically changing scene geometry to be inserted into an existing volume data structure in a flexible manner (i.e., rather than in a fixed order, such as randomly), as long as the corresponding voxel in the upper layer has been set. If the corresponding voxel in the upper layer is not set, then either a table of pointers will be maintained, resulting in higher memory requirements, or the tree will require at least partial reconstruction in order to insert the unforeseen geometry.
[0119] Fig.24 A method for storing data from a Fig.23 In this example, the overall volume 2400 contains Fig.23 , stored at global coordinates {15,0,3} and {15,0,15}. In this approach, rather than allocating a 64-entry array to represent all subcubes in level 1 below level 0, only those elements that actually contain geometry in level 1 (e.g., as indicated by whether the corresponding level 0 voxel is occupied or unoccupied) are allocated as corresponding 64-bit level 1 records, in this example, so that level 1 has only two 64-bit entries instead of 64 entries (i.e., for each of the 64 level 1 voxels, whether occupied or unoccupied). Thus, in this example, the first level 0 2420 is equivalent to Fig.23 2304 in the middle, and the next layer 2405 is more memory-intensive than Fig.23 In some implementations, if there is no space already allocated in level 1 for a new geometry to be inserted into level 0, the tree must be copied and rearranged.
[0120] exist Fig.24In the example of , subvolumes can be derived by counting occupied voxels in the layer above the current layer. In this way, the system can determine where in the voxel data one higher layer ends and where the next lower layer begins. For example, if three level 0 voxels are occupied, the system can expect that three corresponding level 1 entries will follow in the voxel data, and (after these three) the next entry corresponds to the first entry in level 2, and so on. Such optimal compaction can be very useful in cases where some parts of the scene do not change over time, or in applications where volumetric data needs to be transmitted remotely (such as from a space probe scanning the surface of Pluto, where the transmission of each bit is expensive and time consuming).
[0121] Fig.25 A manner in which voxels may be inserted into a 4^3 cube represented as a 64-bit integer volume data structure entry to reflect changes in geometry within the corresponding volume is shown according to some embodiments. In one example, as shown in 2500, each voxel block may be organized as four logical 16-bit planes within a 64-bit integer. Each plane corresponds to a Z value of 0 to 3, and each y value within each plane is encoded for 4 logical 4-bit shifts 0 to 3, and finally each bit within each 4-bit y plane is encoded for 4 possible values (0 to 3) for x, as well as other example organizations. Thus, in this example, to insert a voxel into a 4^3 volume, the x value 0 to 3 may first be shifted one bit, then the value may be shifted 0 / 4 / 8 / 12 bits to encode the y value, and finally the z value may be represented by a shift of 0 / 16 / 32 / 48 bits as shown in the C code expression in 2051. Finally, because each 64-bit integer can be a combination of up to 64 voxels, each of which is written individually, the new bitmap must be logically combined with the old 64-bit value read from the sparse voxel tree by ORing the old bitmap value with the new bitmap value, as shown in 2502.
[0122] Go to Fig.26 , shows a representation according to some embodiments to illustrate how a 3D volumetric object stored in a 64-bit integer 2600 can be projected through a logical OR operation in the X direction to produce a 2D pattern 2601, projected through a logical OR operation in the Y direction to produce a 2D output 2602, and finally projected through a logical OR operation in the Z direction to produce the pattern shown in 2603. Fig. 272700 to produce an output projection in X, Y, and Z. In this example, table 2701 shows column by column which element indices from input vector 2700 are ORed to produce an x-projected output vector 2702. Table 2703 shows column by column which element indices from input vector 2700 are ORed to produce a y-projected output vector 2704. Finally table 2705 shows column by column which element indices from input vector 2700 are ORed to produce a z-projected output vector 2706.
[0123] The X projection logically ORs bits 0, 1, 2, and 3 from input data 2700 to produce bit 0 of X projection 2701. For example, bit 1 in 2701 may be produced by XORing bits 4, 5, 6, and 7 from 2700, and so on. Similarly, bit 0 in Y projection 2704 may be produced by ORing bits 0, 4, 8, and 12 of 2700 together. And bit 1 of 2704 may be produced by ORing bits 1, 5, 9, and 13 of 2700 together. Finally, bit 0 in Z projection 2706 may be produced by ORing bits 0, 16, 32, and 48 of 2700 together. And bit 1 of 2706 may be produced by ORing bits 1, 17, 33, and 49 of 2700 together, and so on.
[0124] Fig.28An example of how projection can be used to generate a simplified graph in accordance with some embodiments is shown. In this scenario, the goal can be to generate a compact 2D map of a path from a voxel volume 2802 along which a vehicle 2800 of height h 2810 and width w 2801 travels. Here, Y projection logic can be used to generate an initial coarse 2D map 2803 from the voxel volume 2802. In some implementations, the map can be processed to check whether a particular vehicle (e.g., a car (or autonomous car), a drone, etc.) of a particular dimension can traverse the width constraints 2801 and height constraints 2810 of the path. This can be performed by performing a projection in Z to check the width constraint 2801 and the projection in Y can be masked to limit the calculation of the vehicle height 2810 to ensure that the path is traversable. It can be seen through additional post-processing (e.g., in software) that for a path that is traversable and only X and Z satisfy width and height constraints, the coordinates of points A 2804, B 2805, C 2806, D 2807, E 2808, and F 2809 along the path can be stored or transmitted over the network to fully reconstruct a legal path that the vehicle can travel along. Given that the path can be parsed into such segmented fragments, it is possible to fully describe the path with only one or two bytes per segmented linear region of the path. This can facilitate rapid transmission and processing (e.g., by an autonomous vehicle) of such path data, as well as other examples.
[0125] Fig.29It is shown how volumetric 3D measurements or simple 2D measurements from embedded devices can be mathematically aggregated according to some embodiments to generate high-quality crowdsourced maps as an alternative to precision measurements using LIDAR or other expensive devices. In the proposed system, multiple embedded devices 2900, 2901, etc. can be equipped with various sensors capable of taking measurements, which can be sent to a central server 2910. Software running on the server performs aggregation 2902 of all measurements and numerically solves the result matrix by a nonlinear solver 2903 to produce a high-precision map, which can then be redistributed back to the embedded devices. In practice, data aggregation can also include high-precision survey data from satellites 2920, aerial LIDAR surveys 2921, and ground LIDAR measurements 2922 (where these high-fidelity data sets are available) to increase the accuracy of the resulting map. In some implementations, maps and / or recorded measurements may be generated in a sparse voxel data structure having a format such as that described herein, converted to a sparse voxel data structure having a format such as that described herein, or otherwise expressed using a sparse voxel data structure having a format such as that described herein, as well as other example implementations.
[0126] Fig.30 is a diagram showing how 2D pathfinding on a 2D 2×2 bitmap can be accelerated according to some embodiments. The principle of operation is that in order for connectivity to exist between points on the map of the same grid cells, the values of cells that are consecutively arranged in x or y or both x and y must all be set to a value. Therefore, a logical AND of the bits drawn from those cells can be instantiated to test whether there is a valid path in the bitmap in the grid, and a different AND gate can be instantiated for each valid path through the N×N grid. In some instances, this approach can introduce combinatorial complexity because even an 8×8 2D grid can contain 2 64-1 valid path. Therefore, in some improved implementations, the grid can be reduced to 2×2 or 4×4 tiles, which can be tested for connectivity hierarchically. The 2×2 bitmap 3000 contains 4 bits labeled b0, b1, b2, and b3. The 4 bits can take values from 0000 to 1111, with corresponding labels 3001 to 3017. Each of these bit patterns represents a different level of connectivity between the faces of the 2×2 grid labeled 3021 to 3030. For example, when the 2×2 grid 3000 contains bitmaps 1010 (3012), 1011 (3013), 1110 (3016), or 1111 (3017), there is 3021 or v0 representing vertical connectivity between x0 and y0 in 3000. The 2-input logical AND or b0 and b3 in 3000 as shown in row 1 of table 3018 generates v0 in a connectivity graph that can be used in higher level hardware or software to determine global connectivity through a global grid that has been subdivided into 2×2 subgrids. If the global graph contains an odd number of grid points on the x-axis or y-axis, the top grid will need to be padded to the next highest even number of grid points (e.g., such that an additional 1 row of zero values will be needed to be added to the x-axis and / or y-axis on the global grid). Fig.30An exemplary 7×7 grid 3050 is further shown, which shows how to fill to 8×8 by adding additional rows 3032 and columns 3034 filled with zero values. In order to speed up path finding compared to other techniques (e.g., depth-first search, breadth-first search, or Dijkstra's algorithm, or other graph-based methods), the present example can gradually subsample the N×N graph 3050 down to a 2×2 graph. For example, in this example, cell W in 3040 is filled by ORing the contents of cells A, B, C, and D in 3050, and so on. In turn, the bits in the 2×2 cells in 3040 are ORed to fill the cells in 3042. For path finding, the algorithm starts with the minimum 2×2 representation of the grid 3042 and tests each bit. Because we know that a bit with a zero value means that there is no corresponding 2×2 grid cell in 3040, only the portion of the 4×4 grid (composed of four 2×2 grids) in 3040 that corresponds to a bit in the 2×2 grid 3042 needs to be tested for connectivity. This method can also be used to search the 8×8 grid in 3020, for example, if cell W in 3040 contains a zero value, then we know that there is no path in ABCD in 3020, etc. This method prunes branches from the graph search algorithm used, whether the graph search algorithm used is A*, Dijkstra, DFS, BFS or a variant thereof. In addition to this, the use of a hardware-based pathfinder 3018 with a 2×2 organization can further limit the associated computations. In fact, the 4×4-based hardware element can be composed using 5 2×2 hardware blocks with the same arrangement as 3040 and 3042 to further limit the amount of graph search that needs to be performed. Furthermore, an 8x8 hardware based search engine may be constructed using 21 2x2 HW blocks (3018) with the same arrangement as 3042, 3040, 3000, etc. for potentially any NxN topology.
[0127] Fig.31is a simplified block diagram according to some embodiments, which shows how the proposed volumetric data structure can be used to accelerate collision detection. A 3D N×N×N map of geometry can be sub-sampled into a pyramid consisting of the lowest level of detail (LoD) 2×2×2 volume 3102, the next highest 4×4×4 volume 3101, the 8×8×8 volume 3100, and so on all the way to N×N×N. If the position of the drone, vehicle or robot 3105 is known in 3D space via a positioning method such as GPS, or via re-positioning from a 3D map, then this position can then be quickly used to test the presence or absence of geometry in the quadrant of the relevant 2×2×2 sub-volume by scaling the x, y and z positions of the drone / robot appropriately (dividing it by 2 for the number of correlations), and querying 3102 for the presence of the geometry (e.g., checking whether the corresponding bitmap bit is 1 indicating a possible collision). If there is a possible conflict (e.g., a "1" was found), then further checks can be performed in volumes 3101, 3100, etc. to confirm whether the drone / robot can move. However, if the voxel in 3102 is free (e.g., a "0"), then the robot / drone can interpret the same voxel as free space and manipulate directional control to move freely through most of the map.
[0128] Although some of the systems and solutions described and shown herein have been described as comprising or being associated with multiple elements, not all elements clearly shown or described are used in each alternative implementation of the present disclosure. In addition, one or more of the elements may be positioned outside the system, and in other instances, some elements may be included in one or more of the other elements described in other elements and other elements not described in the implementation shown, or as a part of one or more of the other elements described in other elements and other elements not described in the implementation shown. Further, some elements may be combined with other components and components for alternative purposes or additional purposes other than those described herein.
[0129] Further, it should be understood that the examples presented above are non-limiting examples provided only for the purpose of illustrating certain principles and features, and do not necessarily limit or constrain the possible embodiments of the concepts described herein. For example, various combinations of the features and components described herein (including combinations implemented by various implementations of the components described herein) may be utilized to implement various different embodiments. Other implementations, features, and details should be understood from the content of this specification.
[0130] Figure 32-37is a block diagram of an exemplary computer architecture that may be used in accordance with the embodiments disclosed herein. In practice, the computing devices, processors, and other logic and circuitry of the systems described herein may include all or a portion of the functionality and supporting software and / or hardware circuitry to implement such functionality. Further, other computer architecture designs for processors and computing systems known in the art may also be used beyond the examples shown herein. In general, computer architectures suitable for use with the embodiments disclosed herein may include, but are not limited to: Figure 32-37 The configuration shown in .
[0131] Fig.32 An example domain topology of a corresponding Internet of Things (IoT) network coupled to a corresponding gateway via a link is shown. The Internet of Things (IoT) is a concept in which a large number of computing devices are interconnected with each other and connected to the Internet to provide very low-level functions and data collection. Therefore, as used herein, an IoT device may include a semi-autonomous device that performs functions (such as sensing or control, etc.) to communicate with other IoT devices and a wider network (such as the Internet). Such IoT devices may be equipped with logic and memory to implement and use hash tables (such as those introduced above).
[0132] Typically, IoT devices are limited in memory, size, or functionality, allowing a larger number of IoT devices to be deployed at a similar cost to a smaller number of larger devices. However, IoT devices can be smartphones, laptops, tablets or PCs, or other larger devices. Further, IoT devices can be virtual devices, such as applications on smartphones or other computing devices. IoT devices can include IoT gateways for coupling IoT devices to other IoT devices and coupling IoT devices to cloud applications for data storage, process control, etc.
[0133] A network of IoT devices may include commercial and home automation devices, such as water systems, power distribution systems, plumbing control systems, factory control systems, light switches, thermostats, locks, cameras, alarms, motion sensors, etc. IoT devices may be accessed by a remote computer, server, or other system, for example, to control the system or access data.
[0134] The future growth of the Internet and similar networks is likely to involve a very large number of IoT devices. Therefore, in the context of the technology discussed in this article, many innovations for this future networking will address the need for unimpeded growth of all these layers, discovering connected resources and making them accessible, and supporting the ability to hide and partition connected resources. Any number of network protocols and communication standards can be used, each of which is designed to address specific goals. In addition, the protocols are part of the structure that supports human-accessible services that operate regardless of location, time, or space. The innovations include service delivery and associated infrastructure, such as hardware and software, security enhancements, and the provision of services based on quality of service (QoS) specified in service levels and service delivery agreements. As will be understood, IoT devices and networks (such as Fig.32 and 33 The use of ) presents many new challenges in heterogeneous connectivity networks that include a combination of wired and wireless technologies.
[0135] Fig.32 Specifically, a simplified diagram of a domain topology is provided, which can be used for multiple Internet of Things (IoT) networks including IoT devices 3204, wherein IoT networks 3256, IoT networks 3258, IoT networks 3260, and IoT networks 3262 are coupled to corresponding gateways 3254 via backbone links 3202. For example, multiple IoT devices 3204 can communicate with gateway 3254 and communicate with each other through gateway 3254. To simplify the diagram, not every IoT device 3204 or communication link (e.g., link 3216, 3222, 3228, or 3232) is labeled. Backbone link 3202 can include any number of wired or wireless technologies (including optical networks) and can be part of a local area network (LAN), a wide area network (WAN), or the Internet. In addition, such communication links facilitate optical signal paths between IoT devices 3204 and gateway 3254, including the use of multiplexing / demultiplexing (MUXing / deMUXing) components to facilitate the interconnection of various devices.
[0136] The network topology may include any number of types of IoT networks, such as a mesh network provided using a Bluetooth Low Energy (BLE) link 3222 in conjunction with a network 3256. Other types of IoT networks that may be present include a wireless local area network (WLAN) network 3258 for communicating over IEEE 802.11 (Wi-Fi). ) link 3228 for communicating with IoT device 3204; cellular network 3260 for communicating with IoT device 3204 via LTE / LTE-A (4G) or 5G cellular network; and low power wide area (LPWA) network 3262, for example, an LPWA network compatible with the LoRaWan specification promulgated by the LoRa Alliance, or IPv6 on a low power wide area network (LPWAN) network compatible with the specification promulgated by the Internet Engineering Task Force (IETF). In addition, the corresponding IoT network can communicate with an external network provider (e.g., a layer 2 or layer 3 provider) using any number of communication links, such as an LTE cellular link, an LPWA link, or a communication link based on the IEEE 802.15.4 standard (such as ). The corresponding IoT network may also operate using various network and Internet application protocols, such as Constrained Application Protocol (CoAP). The corresponding IoT network may also be integrated with a coordinator device that provides a chain of links that forms a cluster tree of linked devices and networks.
[0137] Each of these IoT networks can provide opportunities for new technical features (such as those described herein). Improved technology and networks can make devices and networks grow exponentially, including using IoT networks as fog devices or systems. With the growth of the use of these improved technologies, IoT networks can be developed for self-management, functional evolution and collaboration without direct human intervention. Improved technology can even enable IoT networks to work without a central control system. Therefore, the improved technology described herein can be used for automation and enhanced network management and operation functions far beyond the current implementation.
[0138] In the example, communications between IoT devices 3204, such as communications over backbone link 3202, can be protected by a decentralized system for authentication, authorization, and accounting (AAA). In a decentralized AAA system, distributed payment, loan, audit, authorization, and authentication systems can be implemented across interconnected heterogeneous network infrastructures. This allows systems and networks to move toward autonomous operations. In these types of autonomous operations, the system can even contract human resources and negotiate partnerships with other machine networks. This can allow for the achievement of common goals and the realization of balanced service delivery relative to outlined, planned service level agreements, as well as the implementation of solutions that provide metering, measurement, traceability, and traceability. Creating new supply chain structures and methods can create a large number of services without human involvement, tap the value of a large number of services, and collapse a large number of services.
[0139] Such IoT networks can be further enhanced by integrating sensing technologies such as sound, light, electronic traffic, facial and pattern recognition, smell, vibration, etc. into autonomous organizations between IoT devices. The integration of sensing systems can allow for systematic and autonomous communication and coordination of service delivery relative to contractual service goals, resource aggregation and convergence based on service orchestration and quality of service (QoS). Some of the various examples of network-based resource processing include the following.
[0140] For example, the mesh network 3256 can be enhanced by a system that performs inline data to information conversion. For example, a self-forming chain of processing resources including a multi-link network can distribute the conversion of raw data to information in an efficient manner, as well as having the ability to distinguish between assets and resources and the associated management of each asset and resource. In addition, appropriate components of the infrastructure and resource-based trust and service indexes can be inserted to improve data integrity, quality, assurance and provide data confidence metrics.
[0141] For example, WLAN network 3258 can provide multi-standard connectivity using a system that performs standard conversion, thereby enabling IoT devices 3204 to communicate using different protocols. Other systems can provide seamless interconnection across a multi-standard infrastructure that includes visible Internet resources and hidden Internet resources.
[0142] For example, communications in the cellular network 3260 may be enhanced by systems that offload data, extend communications to more remote devices, or offload data and extend communications to more remote devices. The LPWA network 3262 may include systems that perform non-Internet Protocol (IP) to IP interconnection, addressing, and routing. In addition, each IoT device 3204 may include a suitable transceiver for wide area communications with the device. Further, each IoT device 3204 may include other transceivers for communications using additional protocols and frequencies. Fig.34 and Fig.35 This is further discussed in the communication environment and hardware of IoT processing devices depicted in .
[0143] Finally, clusters of IoT devices can be equipped to communicate with other IoT devices as well as cloud networks. This can allow IoT devices to form ad-hoc networks between devices, allowing them to function as a single device, which can be referred to as a fog device. Fig.33 This configuration is discussed further.
[0144] Fig.33A cloud computing network is shown communicating with a mesh network of IoT devices (devices 3302) operating as fog devices at the edge of the cloud computing network. The mesh network of IoT devices may be referred to as fog 3320, operating at the edge of cloud 3300. To simplify the diagram, not every IoT device 3302 is labeled.
[0145] The fog 3320 can be considered as a massively interconnected network where several IoT devices 3302 communicate with each other, for example, via radio links 3322. As an example, the Open Connectivity Foundation TM The interconnection network is facilitated by the interconnection specification published by the Open Compute Foundation (OCF). The standard allows devices to discover each other and establish communications for interconnection. Other interconnection protocols may also be used, including, for example, the Optimized Link State Routing (OLSR) protocol, the Best Solution for Mobile Ad Hoc Networks (BATMAN) routing protocol, or the OMA Lightweight M2M (LWM2M) protocol, etc.
[0146] Although three types of IoT devices 3302 are shown in this example: gateway 3304, data aggregator 3326, and sensor 3328, any combination of IoT devices 3302 and functions can be used. Gateway 3304 can be an edge device that provides communication between cloud 3300 and fog 3320, and can also provide back-end processing functions for data obtained from sensor 3328 (such as motion data, traffic data, temperature data, etc.). Data aggregator 3326 can collect data from any number of sensors 3328 and perform back-end processing functions for analysis. Result data, raw data, or both can be passed to cloud 3300 through gateway 3304. Sensor 3328 can be a complete IoT device 3302, for example, capable of both collecting data and processing data. In some cases, sensor 3328 can be more limited in function, for example, collecting data and allowing data aggregator 3326 or gateway 3304 to process data.
[0147] Communications from any IoT device 3302 can be passed along a convenient path (e.g., the most convenient path) between any IoT device 3302 to reach the gateway 3304. In these networks, the number of interconnections provides a large amount of redundancy, which allows communications to be maintained even in the event of the loss of several IoT devices 3302. Further, the use of a mesh network can allow the use of IoT devices 3302 that are very low power or located far from the infrastructure, because the distance to connect to another IoT device 3302 can be much less than the distance to connect to the gateway 3304.
[0148] The fog 3320 provided from these IoT devices 3302 may be presented to devices in the cloud 3300 (such as server 3306) as a single device, e.g., a fog device, located at the edge of the cloud 3300. In this example, alerts from the fog device may be sent without being identified as coming from a specific IoT device 3302 within the fog 3320. In this manner, the fog 3320 may be considered a distributed platform that provides computing and storage resources to perform processing or data-intensive tasks, such as data analysis, data aggregation, and machine learning.
[0149] In some examples, the IoT devices 3302 may be configured using an imperative programming style, for example, each IoT device 3302 has specific functionality and communication partners. However, the IoT devices 3302 that form the fog devices may be configured in a declarative programming style, which allows the IoT devices 3302 to reconfigure their operations and communications, such as determining required resources in response to conditions, queries, and device failures. As an example, a query from a user located at a server 3306 related to the operation of a subset of devices monitored by the IoT device 3302 may cause the fog 3320 device to select the IoT device 3302 (such as a specific sensor 3328) required to answer the query. The data from these sensors 3328 may then be aggregated and analyzed by any combination of the sensor 3328, the data aggregator 3326, or the gateway 3304 before being sent by the fog 3320 device to the server 3306 to answer the query. In this example, the IoT devices 3302 in the fog 3320 may select the sensors 3328 used based on a query (such as adding data from a flow sensor or a temperature sensor). Furthermore, if some of the IoT devices 3302 are inoperable, other IoT devices 3302 in the fog 3320 devices may provide similar data if available.
[0150] In other examples, the operations and functions described above may be embodied by an IoT device machine in the form of an electronic processing system, in which an instruction set or sequence of instructions may be executed to cause the electronic processing system to perform any of the methods discussed herein, according to an example embodiment. The machine may be an IoT device or an IoT gateway, including a machine embodied by aspects of a personal computer (PC), a tablet PC, a personal digital assistant (PDA), a mobile phone or a smart phone, or any machine capable of (sequentially or otherwise) executing instructions specifying actions to be taken by the machine. In addition, although only a single machine is described and referenced in the above examples, such machines should also be considered to include any set of machines that execute a set (or multiple sets) of instructions individually or jointly to perform any one or more of the methods discussed herein. In addition, these examples and examples similar to processor-based systems should be considered to include any set of one or more machines controlled or operated by a processor (e.g., a computer) to execute instructions individually or jointly to perform any one or more of the methodologies discussed herein. In some implementations, one or more devices may be operated collaboratively to implement functions and perform tasks described herein. In some cases, one or more host devices may supply data, provide instructions, aggregate results, or otherwise facilitate joint operations and functionality provided by multiple devices. When a function is implemented by a single device, it can be considered a function local to the device; in an implementation where multiple devices operate as a single machine, the function can be considered to be local to the device collectively, and the collection of devices can provide or consume results provided by other remote machines (implemented as a single device or a collection of devices), as well as other example implementations.
[0151] For example, Fig.34A diagram of a cloud computing network or cloud 3400 in communication with multiple Internet of Things (IoT) devices is shown. Cloud 3400 may represent the Internet, or may be a local area network (LAN), or a wide area network (WAN), such as a company's proprietary network. IoT devices may include any number of different types of devices, grouped in various combinations. For example, a traffic control group 3406 may include IoT devices along streets in a city. These IoT devices may include traffic lights, traffic flow monitors, cameras, weather sensors, etc. Traffic control group 3406 or other subgroups may communicate with cloud 3400 via a wired or wireless link 3408 (such as an LPWA link, an optical link, etc.). Further, a wired or wireless subnetwork 3412 may allow IoT devices to communicate with each other (such as via a local area network, a wireless local area network, etc.). IoT devices may use another device (such as gateway 3410 or gateway 3428) to communicate with a remote location (such as cloud 3400); IoT devices may also use one or more servers 3430 to facilitate communication with cloud 3400 or with gateway 3410. For example, one or more servers 3430 can operate as intermediate network nodes to support local edge cloud or fog implementations between local area networks. In addition, the depicted gateway 3428 can operate in a cloud-to-gateway-to-many edge devices configuration (such as various IoT devices 3414, 3420, 3424 for the allocation and use of resources in the cloud 3400 is limited or dynamic).
[0152] Other example groups of Internet of Things (IoT) devices may include a remote weather station 3414, a local information terminal 3416, an alarm system 3418, an ATM 3420, an alarm panel 3422, or a mobile vehicle (such as an emergency vehicle 3424 or other vehicle 3426, etc.). Each of these IoT devices may be connected to other IoT devices, to the server 3404, to another IoT fog device or system (not shown, but Fig.33 ), or a combination thereof. The group of IoT devices can be deployed in various residential settings, commercial settings, and industrial settings (including both in private environments or public environments).
[0153] As from Fig.34As can be seen in , a large number of IoT devices can communicate through the cloud 3400. This can allow different IoT devices to autonomously request or provide information to other devices. For example, a group of IoT devices (e.g., traffic control group 3406) can request the current weather forecast from a group of remote weather stations 3414, which can provide the forecast without human intervention. In addition, the emergency vehicle 3424 can be warned by the ATM 3420 that the theft is in progress. When the emergency vehicle 3424 moves toward the ATM 3420, it can access the traffic control group 3406 to request permission to pass to the location, for example, by turning the signal light to red to block cross traffic at the intersection for a sufficient time to allow the emergency vehicle 3424 to enter the intersection unimpeded.
[0154] A cluster of IoT devices (such as a remote weather station 3414 or a traffic control group 3406) can be equipped to communicate with other IoT devices as well as the cloud 3400. This can allow the IoT devices to form an ad hoc network between the devices, allowing them to function as a single device, which can be referred to as a fog device or system (e.g., as described above with reference to Fig.33 described above).
[0155] Fig.35 3550 for implementing the techniques described herein. The IoT device 3550 may include any combination of the components shown in the examples or referenced in the above disclosure. These components may be implemented as ICs, portions of ICs, discrete electronic devices or other modules, logic, hardware, software, firmware, or a combination thereof suitable for use in the IoT device 3550, or as components otherwise incorporated into a chassis of a larger system. Additionally, Fig.35 The block diagram is intended to depict a high-level view of the components of the IoT device 3550. However, some of the components shown may be omitted, additional components may be present, and different arrangements of the components shown may occur in other implementations.
[0156] IoT device 3550 may include processor 3552, which may be a microprocessor, a multi-core processor, a multi-threaded processor, an ultra-low voltage processor, an embedded processor, or other known processing element. Processor 3552 may be part of a system on a chip (SoC), where processor 3552 and other components are formed as a single integrated circuit, or a single package (such as Edison from Intel). TM ) or Galileo TM )SoC board). As an example, the processor 3552 may include an Intel architecture core ( Architecture CoreTM ) processors (such as Quark TM 、Atom TM , i3, i5, i7 or MCU-class processors, or can be purchased from Intel Corporation in Santa Clara, California. Corporation). However, any number of other processors may be used, such as a processor from Advanced Micro Devices, Inc. (AMD) of Sunnyvale, California, a processor based on a MIPS design from MIPS Technologies, Inc. of Sunnyvale, California, a processor based on an ARM design from ARM Holdings, Ltd. or its customers or licensees or adopters thereof. The processor may include a processor such as a processor from Apple Inc. Inc)'s A5-A10 processors from Qualcomm Technologies Inc. Snapdragon by Technologies, Inc. TM Processor or OMAP from Texas Instruments, Inc. TM The unit of the processor.
[0157] The processor 3552 can communicate with the system memory 3554 via an interconnect 3556 (e.g., a bus). Any number of memory devices can be used to provide a quantitative system memory. As an example, the memory can be a random access memory (RAM) designed according to the Joint Electron Devices Engineering Council (JEDEC), such as a DDR or mobile DDR standard (e.g., LPDDR, LPDDR2, LPDDR3, or LPDDR4). In various implementations, the individual memory devices can be any number of different package types, such as a single die package (SDP), a dual die package (DDP), or a quad die package (Q17P). In some examples, these devices can be directly soldered to the motherboard to provide a low-profile solution, while in other examples, the device is configured as one or more memory modules, which are coupled to the motherboard through a given connector. Any number of other memory implementations can be used, such as other types of memory modules, for example, different types of dual in-line memory modules (DIMMs), including but not limited to microDIMMs or MiniDIMMs.
[0158] In order to provide persistent storage of information such as data, applications, operating systems, etc., storage 3558 may also be coupled to processor 3552 via interconnect 3556. In an example, storage 3558 may be implemented via a solid-state hard drive (SSDD). Other devices that may be used for storage 3558 include flash memory cards (such as SD cards, microSD cards, xD graphics cards, etc.), and USB flash drives. In a low-power implementation, storage 3558 may be an on-die memory or on-die register associated with processor 3552. However, in some examples, storage 3558 may be implemented using a micro hard drive (HDD). Further, in addition to or in lieu of the described techniques, any number of new technologies may be used for storage 3558, such as resistive change memory, phase change memory, holographic memory, or chemical memory, etc.
[0159] Components can communicate via interconnect 3556. Interconnect 3556 can include any number of technologies, including Industry Standard Architecture (ISA), Extended ISA (EISA), Peripheral Component Interconnect (PCI), Extended Peripheral Component Interconnect (PCIx), PCI Express (PCIe), or any number of other technologies. Interconnect 3556 can be a dedicated bus, such as a dedicated bus used in a SoC-based system. Other bus systems such as I2C interfaces, SPI interfaces, point-to-point interfaces, and power buses can be included.
[0160] The interconnect 3556 may couple the processor 3552 to a mesh transceiver 3562 for communication with other mesh devices 3564. The mesh transceiver 3562 may use any number of frequencies and protocols (such as 2.4 gigahertz (GHz) transmissions under the IEEE 802.15.4 standard, using the Bluetooth SIG-defined protocol (BLE) developed by the Bluetooth Special Interest Group (BSIG). The Bluetooth Low Energy (BLE) standard defined by the Bluetooth Special Interest Group, or Standards, etc.). Any number of radios configured for a particular wireless communication protocol may be used for connection to mesh device 3564. For example, a WLAN unit may be used to implement Wi-Fi in accordance with the Institute of Electrical and Electronics Engineers (IEEE) 802.11 standard. TM Additionally, wireless wide area communications (eg, according to a cellular or other wireless wide area protocol) may occur via a WWAN unit.
[0161] The mesh transceiver 3562 can communicate using multiple standards or radios for different ranges of communication. For example, the IoT device 3550 can communicate with close-range devices (e.g., within about 10 meters) using a BLE-based local transceiver or another low-power radio to save power. Further mesh devices 3564 (e.g., within about 50 meters) can be reached via ZigBee or other intermediate power radios. The two communication technologies can occur on a single radio at different power levels, or can occur on separate transceivers, for example, a local transceiver using BLE and a separate mesh transceiver using ZigBee.
[0162] A wireless network transceiver 3566 may be included to communicate with devices or services in the cloud 3500 via a local or wide area network protocol. The wireless network transceiver 3566 may be a LPWA transceiver that complies with the IEEE 802.15.4 or IEEE 802.15.4g standard, etc. The IoT device 3550 may use LoRaWAN developed by Semtech and the LoRa Alliance. TM (Long Range Wide Area Network) to communicate over a wide area. The techniques described herein are not limited to these techniques, but can be used with any number of other cloud transceivers that enable long-range, low-bandwidth communications, such as Sigfox and other technologies. Further, other communication techniques described in the IEEE 802.15.4e specification, such as time-slotted channel hopping, can be used.
[0163] In addition to the systems mentioned for mesh transceiver 3562 and wireless network transceiver 3566, any number of other radio communications and protocols may be used, as described herein. For example, radio transceivers 3562 and 3566 may include LTE or other cellular transceivers that use spread spectrum (SPA / SAS) communications to achieve high-speed communications. Further, any number of other protocols (such as Wi-Fi) may be used. Network) is used for medium-speed communication and to provide network communication.
[0164] The radio transceivers 3562 and 3566 may include radios compatible with any number of 3GPP (Third Generation Partnership Project) specifications, particularly Long Term Evolution (LTE), Long Term Evolution-Advanced (LTE-A), and Long Term Evolution-Advanced Pro (LTE-A Pro). It may be noted that radios compatible with any number of other fixed communication technologies and standards, mobile communication technologies and standards, or satellite communication technologies and standards may be selected. These may include, for example, any cellular wide area radio communication technology, which may include, for example, the fifth generation (5G) communication system, the global system for mobile communications (GSM) wireless communication technology, the general packet radio service (GPRS) wireless communication technology, or the enhanced data rates for GSM evolution (EDGE) wireless communication technology, the universal mobile telecommunications system (UMTS) communication technology, in addition to the above standards, any number of satellite uplink technologies may be used for the wireless network transceiver 3566, including, for example, radios that comply with standards published by the International Telecommunication Union (ITU) or the European Telecommunications Standards Institute (ETSI), etc. The examples provided herein are therefore understood to be applicable to various other communication technologies, both existing and yet to be developed.
[0165] A network interface controller (NIC) 3568 may be included to provide wired communications to the cloud 3500 or other devices such as mesh devices 3564. The wired communications may provide an Ethernet connection, or may be based on another type of network such as a controller area network (CAN), a local interconnect network (LIN), a device network, a control network, a data highway+, PROFIBUS, or PROFINET, etc. Additional NICs 3568 may be included to allow connection to a second network, for example, one NIC 3568 providing communications to the cloud via Ethernet, and a second NIC 3568 providing communications to other devices via another type of network.
[0166] The interconnect 3556 may couple the processor 3552 to an external interface 3570 for connecting external devices or subsystems. The external devices may include sensors 3572 such as accelerometers, level sensors, flow sensors, optical light sensors, camera sensors, temperature sensors, global positioning system (GPS) sensors, pressure sensors, barometric pressure sensors, etc. The external interface 3570 may further be used to connect the IoT device 3550 to an actuator 3574 such as a power switch, a valve actuator, an audible sound generator, a visual warning device, etc.
[0167] In some optional examples, various input / output (I / O) devices may be present within or connected to the IoT device 3550. For example, a display or other output device 3584 may be included to display information, such as sensor readings or actuator positions. An input device 3586 such as a touch screen or keypad may be included to accept input. The output device 3584 may include any number of multiple forms of audio or visual display, including simple visual outputs such as binary status indicators (e.g., LEDs) and multi-character visual outputs, or more complex outputs such as display screens (e.g., LCD screens), where the output of characters, graphics, multimedia objects, etc. is generated or produced by the operation of the IoT device 3550.
[0168] Battery 3576 can power IoT device 3550, although in examples where IoT device 3550 is mounted in a fixed location, it can have a power source coupled to the grid. Battery 3576 can be a lithium-ion battery or a metal-air battery (such as a zinc-air battery, an aluminum-air battery, a lithium-air battery, etc.).
[0169] A battery monitor / charger 3578 may be included in the IoT device 3550 to track the state of charge (SoCh) of the battery 3576. The battery monitor / charger 3578 may be used to monitor other parameters of the battery 3576, such as the state of health (SoH) and state of function (SoF) of the battery 3576, to provide failure prediction. The battery monitor / charger 3578 may include a battery monitoring integrated circuit (such as, for example, the LTC4020 or LTC2990 from Linear Technologies, the ADT7488A from ON Semiconductor in Phoenix, Arizona, or the UCD90xxx series of ICs from Texas Instruments in Dallas, Texas. The battery monitor / charger 3578 can communicate information about the battery 3576 to the processor 3552 via the interconnect 3556. The battery monitor / charger 3578 can also include an analog-to-digital (ADC) converter that allows the processor 3552 to directly monitor the voltage of the battery 3576 or the current from the battery 3576. The battery parameters can be used to determine actions that the IoT device 3550 can perform, such as transmission frequency, mesh network operation, sensing frequency, etc.
[0170] The power block 3580 or other power source coupled to the grid can be coupled to the battery monitor / charger 3578 to charge the battery 3576. In some examples, the power block 3580 can be replaced with a wireless power receiver to obtain power wirelessly (e.g., through a loop antenna in the IoT device 3550). The battery monitor / charger 3578 can include a wireless battery charging circuit (such as the LTC4020 chip from Linear Technologies of Milpitas, California). The specific charging circuit selected depends on the size of the battery 3576 and, therefore, on the current required. Charging can be performed using the air fuel standard promulgated by the Airfuel Alliance, the Qi wireless charging standard promulgated by the WirelessPower Consortium, or the Rezence charging standard promulgated by the Alliance for WirelessPower, etc.
[0171] Storage 3558 may include instructions 3582 in the form of software, firmware, or hardware commands to implement the techniques described herein. Although these instructions 3582 are shown as code blocks included in memory 3554 and storage 3558, it is understood that any code block can be replaced by a hardwired circuit, for example, built into an application specific integrated circuit (ASIC).
[0172] In an example, the instructions 3582 provided via the memory 3554, the storage 3558, or the processor 3552 may be embodied as a non-transitory, machine-readable medium 3560, which includes code for directing the processor 3552 to perform electronic operations in the IoT device 3550. The processor 3552 may access the non-transitory, machine-readable medium 3560 via the interconnect 3556. For example, the non-transitory, machine-readable medium 3560 may be provided by Fig.35 The storage 3558 described device may be embodied, or may include a specific storage unit (such as an optical disk, a flash drive, or any number of other hardware devices). The non-transitory, machine-readable medium 3560 may include instructions that direct the processor 3552 to perform a specific sequence of actions or processes, for example, as described in the (multiple) flow charts and (multiple) block diagrams regarding the operations and functions described above.
[0173] Fig.36 3600 is an example of a processor according to an embodiment. Processor 3600 is an example of a hardware device that can be used in conjunction with the above implementation. Processor 3600 can be any type of processor, such as a microprocessor, an embedded processor, a digital signal processor (DSP), a network processor, a multi-core processor, a single-core processor, or other device for executing code. Although Fig.36 Only one processor 3600 is shown, but the processing element may alternatively include more than one Fig.36 . The processor 3600 may be a single-threaded core, or for at least one embodiment, the processor 3600 may be multi-threaded in that the processor may include multiple hardware thread contexts (or "logical processors") per core.
[0174] Fig.36 Also shown is a memory 3602 coupled to the processor 3600 according to an embodiment. The memory 3602 can be any of a wide variety of memories (including different layers of a memory hierarchy) as known or otherwise available to those skilled in the art. Such memory elements can include, but are not limited to, random access memory (RAM), read-only memory (ROM), logic blocks of a field programmable gate array (FPGA), erasable programmable read-only memory (EPROM), and electrically erasable programmable ROM (EEPROM).
[0175] The processor 3600 may execute any type of instructions associated with the algorithms, processes, or operations described in detail herein.In general, the processor 3600 is capable of transforming an element or item (eg, data) from one state or thing to another state or thing.
[0176] The code 3604 (which may be one or more instructions to be executed by the processor 3600) may be stored in the memory 3602, or the code 3604 may be stored in software, hardware, firmware, or any suitable combination thereof, or in any other internal or external component, device, element, or object that is suitable and based on specific needs. In one example, the processor 3600 may follow a program sequence of instructions indicated by the code 3604. Each instruction enters the front-end logic 3606 and is processed by one or more decoders 3608. The decoder may generate micro-operations such as fixed-width micro-operations of a predetermined format as its output, or may generate other instructions, micro-instructions, or control signals that reflect the original code instructions. The front-end logic 3606 also includes register renaming logic 3610 and scheduling logic 3612, which generally allocates resources and queues operations corresponding to instructions for execution.
[0177] The processor 3600 may also include an execution logic 3614 having a set of execution units 3616a, 3616b, 3616n, etc. Some embodiments may include several execution units dedicated to a specific function or group of functions. Other embodiments may include only one execution unit or an execution unit that can perform a specific function. The execution logic 3614 performs the operations specified by the code instructions.
[0178] After the execution of the operations specified by the code instructions is completed, the back-end logic 3618 can retire the instructions of the code 3604. In one embodiment, the processor 3600 allows out-of-order execution, but requires in-order retirement of instructions. The retirement logic 3620 can take various known forms (e.g., a reorder buffer, etc.). In this way, the processor 3600 can be converted during the execution of the code 3604, at least in terms of the output generated by the decoder, the hardware registers and tables utilized by the register renaming logic 3610, and any registers (not shown) modified by the execution logic 3614.
[0179] although Fig.36 Not shown, but the processing element may include other elements on the chip with processor 3600. For example, the processing element may include memory control logic together with processor 3600. The processing element may include I / O control logic, and / or may include I / O control logic integrated with memory control logic. The processing element may also include one or more caches. In some embodiments, non-volatile memory (such as flash memory or fuses) may also be included on the chip with processor 3600.
[0180] Fig.37 A computing system 3700 arranged in a point-to-point (PtP) configuration according to an embodiment is shown. Specifically, Fig.37A system is shown in which processors, memory, and input / output devices are interconnected by a number of point-to-point interfaces. In general, one or more of the computing systems described herein may be configured in the same or similar manner as computing system 3700.
[0181] The processors 3770 and 3780 may also each include integrated memory controller logic (MC) 3772 and 3782 for communicating with the memory elements 3732 and 3734. In alternative embodiments, the memory controller logic 3772 and 3782 may be discrete logic separate from the processors 3770 and 3780. The memory elements 3732 and / or 3734 may store various data to be used by the processors 3770 and 3780 in obtaining operations and functions outlined herein.
[0182] Processors 3770 and 3780 may be any type of processor, such as those discussed in connection with other figures. Processors 3770 and 3780 may exchange data via a point-to-point (PtP) interface 3750 using point-to-point (PtP) interface circuits 3778 and 3788, respectively. Processors 3770 and 3780 may each exchange data with a chipset 3790 using point-to-point interface circuits 3776, 3786, 3794, and 3798 via separate point-to-point interfaces 3752 and 3754. Chipset 3790 may also exchange data with a high-performance graphics circuit 3738 using interface circuit 3792 (which may be a PtP interface circuit) via a high-performance graphics interface 3739. In an alternative embodiment, the chipset 3790 may be configured to communicate with a high-performance graphics circuit 3738 via a high-performance graphics interface 3739. Fig.37 Any or all of the PtP links shown in FIG. 5 are implemented as multi-drop buses rather than as PtP links.
[0183] Chipset 3790 may communicate with bus 3720 via interface circuit 3796. Bus 3720 may have one or more devices communicating therethrough, such as bus bridge 3718 and I / O devices 3716. Via bus 3710, bus bridge 3718 may communicate with other devices, such as user interface 3712 (such as a keyboard, mouse, touch screen, or other input device), communication device 3726 (such as a modem, network interface device, or other type of communication device that may communicate via computer network 3760), audio I / O device 3714, and / or data storage device 3728. Data storage device 3728 may store code 3730, which may be executed by processor 3770 and / or 3780. In alternative embodiments, any portion of the bus architecture may be implemented using one or more PtP links.
[0184] Fig.37The computer system depicted in is a schematic illustration of an embodiment of a computing system that can be used to implement the various embodiments discussed herein. It will be understood that Fig.37 The various components depicted in the EMBODIMENTS 2000 and 2003 may be combined in a system-on-chip (SoC) architecture or in any other suitable configuration that can achieve the functionality and features of the examples and implementations provided herein.
[0185] In a further example, a machine-readable medium also includes any tangible medium capable of storing, encoding or carrying instructions for execution by the machine and causing the machine to perform any one or more of the methods of the present disclosure, or capable of storing, encoding or carrying data structures utilized by such instructions or associated with such instruction sets. Therefore, "machine-readable media" may include, but are not limited to, solid-state memory, and optical and magnetic media. Specific examples of machine-readable media include non-volatile memory, including, but not limited to, as examples, semiconductor memory devices (e.g., electrically programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM)) and flash memory devices; magnetic disks (such as internal hard disks and removable disks); magneto-optical disks; and CD-ROM and DVD-ROM disks. The instructions embodied by the machine-readable medium may be further transmitted or received over a communication network using a transmission medium, via a network interface device, using any of several transmission protocols (e.g., HTTP).
[0186] It should be understood that the functional units or capabilities described in this specification may be referred to or labeled as "components" or "modules" in order to more specifically emphasize their implementation independence. These components may be embodied in any number of software or hardware forms. For example, a component or module may be implemented as a hardware circuit including a customized very large scale integration (VLSI) circuit or gate array, or an off-the-shelf semiconductor (e.g., a logic chip, a transistor, or other discrete components). A component or module may also be implemented in a programmable hardware device such as a field programmable gate array, a programmable array logic, a programmable logic device, etc. A component or module may also be implemented in software executed by various types of processors. For example, an identified component or module of an executable code may include, for example, one or more physical or logical blocks of computer instructions organized as an object, a process, or a function. However, the executable files of the identified components or modules do not need to be physically located together, but may include different instructions stored in different locations, which include the components or modules when these executable files are logically connected together and achieve the specified purpose of the components or modules.
[0187] In fact, the component or module of executable code can be a single instruction or many instructions, and can even be distributed on several different code segments, between different programs, and across several memory devices or processing systems. In particular, some aspects of the described process (such as code rewriting and code analysis) can occur on a processing system (for example, in a computer in a data center) different from the processing system (for example, in a computer embedded in a sensor or robot) of the deployment code. Similarly, operational data can be identified and described in a component or module herein, and can be embodied in any suitable form and organized in a data structure of any suitable type. Similarly, operational data can be identified and described in a component or module herein, and can be embodied in any suitable form and organized in a data structure of any suitable type. Components or modules can be passive or active, including agents that can be operated to perform desired functions.
[0188] Additional examples of the presently described method, system, and device embodiments include the following non-limiting configurations. Each of the following non-limiting examples may exist independently, or may be combined in any permutation or combination with any one or more other examples provided below or throughout this disclosure.
[0189] Although the present disclosure has been described in terms of certain implementations and generally associated methods, changes and permutations of these implementations and methods will be apparent to those skilled in the art. For example, the actions described herein may be performed in an order different from the order described, and still obtain the desired results. As an example, the processes depicted in the accompanying drawings do not necessarily require the particular order or sequential order shown to achieve the desired results. In certain implementations, multitasking and parallel processing may be advantageous. In addition, other user interface layouts and functions may be supported. Other variations are within the scope of the following claims.
[0190] Although this specification includes many specific implementation details, these details should not be interpreted as limitations on the scope of any invention or content that may be claimed, but should be interpreted as descriptions of features that are peculiar to specific embodiments of specific inventions. Certain features described in the context of separate embodiments in this specification may also be implemented in combination in a single embodiment. On the contrary, the individual features described in the context of a single embodiment may also be implemented in multiple embodiments individually or in any suitable sub-combination. Moreover, although features may be described above as acting in certain combinations and even initially claimed as such, one or more features from the claimed combination may be separated from the combination in some cases, and the claimed combination may be directed to a sub-combination or a change in the sub-combination.
[0191] Similarly, although the operations are depicted in a specific order in the accompanying drawings, this should not be understood as requiring such operations to be performed in the specific order shown or in an ordered order, or that all of the operations shown can be performed to achieve the desired results. In some cases, multitasking and parallel processing may be advantageous. Moreover, the separation of different system components in the above-described embodiments should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product or packaged into multiple software products.
[0192] The following examples are related to embodiments according to the present specification. Example 1 is a non-transient machine-accessible storage medium having instructions stored thereon, which, when executed on a machine, cause the machine to: generate volume data to represent a three-dimensional (3D) volume, wherein the volume includes a set of voxels, at least one of which is occupied by a 3D geometric shape, and the volume data identifies, for each voxel in the voxel set, whether the corresponding voxel is occupied; generate an index value for the volume data according to a hash algorithm, wherein the index value for a specific portion of the volume data representing a specific subset of the voxels in the voxel set is generated based on a combination of values of an x-coordinate, a y-coordinate, and a z-coordinate associated with the specific subset of the voxels, and the index value for the specific portion is further generated based on a side length value corresponding to the volume; and store the specific portion of the volume data in an entry of a hash table, wherein the entry has an address based on the index value for the specific portion.
[0193] Example 2 includes the subject matter of Example 1, wherein the combination of the values of the x-coordinate, y-coordinate, and z-coordinate comprises a weighted sum of the values of the x-coordinate, y-coordinate, and z-coordinate, and one or more of the x-coordinate, y-coordinate, and z-coordinate are weighted based on the edge length value.
[0194] Example 3 includes the subject matter of Example 2, wherein the index value is generated according to the formula: Index = (ID z *(SL 2 )+ID y *(SL)+ID x ), where ID z is the value of the z coordinate, ID y is the value of the y coordinate, ID x is the value of the x-coordinate, and SL is the side length value.
[0195] Example 4 includes the subject matter of any of Examples 2-3, wherein the instructions, when executed, further cause the machine to determine, using the edge length values, a weight to apply to the x-coordinate, the y-coordinate, and the z-coordinate based on a relative density of the occupied volume within each of the x-coordinate, the y-coordinate, and the z-coordinate of the volume.
[0196] Example 5 includes the subject matter of any of Examples 1-4, wherein the volume is logically subdivided into a set of voxel blocks, each voxel block comprising a subvolume of a corresponding subset of voxels, and the particular subset of voxels comprises a particular one of the set of voxel blocks.
[0197] Example 6 includes the subject matter of Example 5, wherein each entry in the hash table is sized to accommodate the volume data to describe each voxel in a corresponding one of the set of voxel blocks.
[0198] Example 7 includes the subject matter of Example 6, wherein each voxel block includes a plurality of voxels and each hash table entry includes at least one bit for each voxel in the voxel block to identify whether the corresponding voxel is occupied.
[0199] Example 8 includes the subject matter of Example 7, wherein each hash table entry is sized to include 2 bits for each voxel in the corresponding voxel block.
[0200] Example 9 includes the subject matter of any of Examples 1-8, wherein the instructions, when executed, further cause the machine to calculate an address of the entry, and the address of the entry in the hash table is calculated based on a modulus of the index value.
[0201] Example 10 includes the subject matter of any of Examples 1-9, wherein the instructions, when executed, further cause the machine to: detect whether there is a conflict with an entry in the hash table; and when a conflict is detected, utilize a conflict management scheme associated with the hash table.
[0202] Example 11 includes the subject matter of any of Examples 1-10, wherein the hashing algorithm does not utilize large prime numbers.
[0203] Example 12 is a non-transitory machine-accessible storage medium having instructions stored thereon that, when executed on a machine, cause the machine to: identify a specific voxel within a volume; access a hash table stored in a computer memory; determine an x-coordinate, a y-coordinate, and a z-coordinate associated with the specific voxel in the volume; determine an index value associated with the specific voxel based on the x-coordinate, the y-coordinate, and the z-coordinate according to a hash algorithm, wherein the index value is determined by summing weighted values of the x-coordinate, the y-coordinate, and the z-coordinate according to the hash algorithm, and the weighted value is based on a side length value corresponding to the volume; identify a specific entry in the hash table based on the index value, wherein the specific entry includes volume data, and the volume data identifies, for a specific subset of voxels in a specific portion of the volume, whether the voxels in the subset of voxels are occupied by 3D geometric shapes, wherein the subset of voxels includes the specific voxel; and determine from the specific entry whether the specific voxel is occupied by the 3D geometric shape.
[0204] Example 13 includes the subject matter of Example 12, wherein the instructions, when executed, further cause the machine to determine a navigation action within the volume based on determining whether a particular voxel is occupied.
[0205] Example 14 includes the subject matter of any of Examples 12-13, wherein the index value is generated according to the formula: Index=(ID z *(SL 2 )+ID y *(SL)+ID x ), where ID z is the value of the z coordinate, ID y is the value of the y coordinate, ID x is the value of the x-coordinate, and SL is the side length value.
[0206] Example 15 includes the subject matter of any of Examples 12-14, wherein the x-coordinate, y-coordinate, and z-coordinate associated with a particular voxel comprise coordinates of a block of voxels in the volume, and the block of voxels comprises a subset of voxels.
[0207] Example 16 includes the subject matter of Example 15, wherein the volume comprises a plurality of voxel blocks, and the edge length value is equal to the cube root of the number of voxel blocks in the volume.
[0208] Example 17 includes the subject matter of any of Examples 15-16, wherein each entry in the hash table is sized to accommodate the volume data to describe each voxel in a corresponding one of the set of voxel blocks.
[0209] Example 18 includes the subject matter of Example 17, wherein each voxel block includes a plurality of voxels and each hash table entry includes at least one bit for each voxel in the voxel block to identify whether the corresponding voxel is occupied.
[0210] Example 19 includes the subject matter of Example 18, wherein each hash table entry is sized to include 2 bits for each voxel in the corresponding voxel block.
[0211] Example 20 includes the subject matter of any of Examples 12-19, wherein the instructions, when executed, further cause the machine to calculate an address of a particular entry, and the address of the entry in the hash table is calculated based on a modulus of the index value.
[0212] Example 21 includes the subject matter of any of Examples 12-20, wherein the instructions, when executed, further cause the machine to: detect whether there is a conflict with a particular entry in the hash table; and when a conflict is detected, utilize a conflict management scheme associated with the hash table.
[0213] Example 22 includes the subject matter of any of Examples 12-21, wherein the hashing algorithm does not utilize large prime numbers.
[0214] Example 23 includes the subject matter of any of Examples 12-22, wherein the instructions, when executed, further cause the machine to determine an autonomous navigation path of the device within the volume based on whether a particular voxel is occupied.
[0215] Example 24 is a method comprising: generating volumetric data to represent a three-dimensional (3D) volume, wherein the volume includes a set of voxels, at least one of the voxels is occupied by a 3D geometric shape, and the volumetric data identifies, for each voxel in the voxel set, whether the corresponding voxel is occupied; generating an index value for the volumetric data according to a hash algorithm, wherein the index value for a specific portion of the volumetric data representing a specific subset of the voxels in the voxel set is generated based on a combination of values of x-coordinates, y-coordinates, and z-coordinates associated with the specific subset of voxels, and the index value for the specific portion is further generated based on a side length value corresponding to the volume; and storing the specific portion of the volumetric data in an entry of a hash table, wherein the entry has an address based on the index value for the specific portion.
[0216] Example 25 includes the subject matter of Example 24, wherein the combination of the values of the x-coordinate, the y-coordinate, and the z-coordinate comprises a weighted sum of the values of the x-coordinate, the y-coordinate, and the z-coordinate, and one or more of the x-coordinate, the y-coordinate, and the z-coordinate are weighted based on the edge length value.
[0217] Example 26 includes the subject matter of Example 25, wherein the index value is generated according to the formula: Index = (ID z *(SL 2 )+ID y *(SL)+ID x ), where ID z is the value of the z coordinate, ID y is the value of the y coordinate, ID x is the value of the x-coordinate, and SL is the side length value.
[0218] Example 27 includes the subject matter of any of Examples 25-26, wherein the instructions, when executed, further cause the machine to determine, using the edge length values, a weight to apply to the x-coordinate, the y-coordinate, and the z-coordinate based on a relative density of occupied volume within each of the x-coordinate, the y-coordinate, and the z-coordinate of the volume.
[0219] Example 28 includes a state of any of Examples 24-27, wherein the volume is logically subdivided into a set of voxel blocks, each voxel block comprising a subvolume of a corresponding subset of voxels, and the particular subset of voxels comprises a particular one of the voxel blocks in the set of voxel blocks.
[0220] Example 29 includes the subject matter of Example 28, wherein each entry in the hash table is sized to accommodate the volume data to describe each voxel in a corresponding one of the set of voxel blocks.
[0221] Example 30 includes the subject matter of Example 29, wherein each voxel block comprises a plurality of voxels and each hash table entry comprises at least one bit for each voxel in the voxel block to identify whether the corresponding voxel is occupied.
[0222] Example 31 includes the subject matter of Example 30, wherein each hash table entry is sized to include 2 bits for each voxel in the corresponding voxel block.
[0223] Example 32 includes the subject matter of any of Examples 24-31, wherein the instructions, when executed, further cause the machine to calculate an address of the entry, and the address of the entry in the hash table is calculated based on a modulus of the index value.
[0224] Example 33 includes the subject matter of any of Examples 24-32, wherein the instructions, when executed, further cause the machine to: detect whether there is a conflict with an entry in the hash table; and when a conflict is detected, utilize a conflict management scheme associated with the hash table.
[0225] Example 34 includes the subject matter of any of Examples 24-33, wherein the hashing algorithm does not utilize large prime numbers.
[0226] Example 35 is a method comprising: identifying a specific voxel within a volume; accessing a hash table stored in a computer memory; determining an x-coordinate, a y-coordinate, and a z-coordinate associated with the specific voxel in the volume; determining an index value associated with the specific voxel based on a hash algorithm, wherein determining the index value based on the hash algorithm includes summing weighted values of the x-coordinate, the y-coordinate, and the z-coordinate, and the weighted value is based on an edge length value corresponding to a dimension of the volume; and identifying a specific entry in the hash table based on the index value, wherein the specific entry includes volume data, and the volume data identifies, for a specific voxel, whether the specific voxel is occupied by a 3D geometric shape.
[0227] Example 36 includes the subject matter of Example 35, wherein the instructions, when executed, further cause the machine to determine a navigation action within the volume based on determining whether a particular voxel is occupied.
[0228] Example 37 includes the subject matter of any of Examples 35-36, wherein the index value is generated according to the formula: Index=(ID z *(SL 2 )+ID y *(SL)+ID x ), where ID z is the value of the z coordinate, ID y is the value of the y coordinate, ID x is the value of the x-coordinate, and SL is the side length value.
[0229] Example 38 includes the subject matter of any of Examples 35-37, wherein the x-coordinate, y-coordinate, and z-coordinate associated with a particular voxel comprise coordinates of a block of voxels in the volume, and the block of voxels comprises a subset of voxels.
[0230] Example 39 includes the subject matter of Example 38, wherein the volume comprises a plurality of voxel blocks, and the edge length value is equal to the cube root of the number of voxel blocks in the volume.
[0231] Example 40 includes the subject matter of any of Examples 38-39, wherein each entry in the hash table is sized to accommodate the volume data to describe each voxel in a corresponding one of the set of voxel blocks.
[0232] Example 41 includes the subject matter of Example 40, wherein each voxel block comprises a plurality of voxels and each hash table entry comprises at least one bit for each voxel in the voxel block to identify whether the corresponding voxel is occupied.
[0233] Example 42 includes the subject matter of Example 41, wherein each hash table entry is sized to include 2 bits for each voxel in the corresponding voxel block.
[0234] Example 43 includes the subject matter of any of Examples 35-42, wherein the instructions, when executed, further cause the machine to calculate an address of a particular entry, and the address of the entry in the hash table is calculated based on a modulus of the index value.
[0235] Example 44 includes the subject matter of any of Examples 35-43, wherein the instructions, when executed, further cause the machine to: detect whether there is a conflict with a particular entry in the hash table; and when a conflict is detected, utilize a conflict management scheme associated with the hash table.
[0236] Example 45 includes the subject matter of any of Examples 35-44, wherein the hashing algorithm does not utilize large prime numbers.
[0237] Example 46 includes the subject matter of any of Examples 35-45, wherein the instructions, when executed, further cause the machine to determine an autonomous navigation path of the device within the volume based on whether a particular voxel is occupied.
[0238] Example 47 is a system comprising: a data processing device; a memory including a hash table; a sensor that generates volume data to identify a geometric shape within at least a portion of the volume; and volume processing logic. The volume processing logic is executable to: determine a specific portion of the volume data corresponding to a specific subvolume of the volume; determine an x-coordinate, a y-coordinate, and a z-coordinate of a specific subvolume within the volume, wherein the specific subvolume includes a set of one or more voxels; for the specific portion of the volume data, determine its index value based on a hash algorithm, wherein the index value is determined from a sum of weighted values of the x-coordinate, y-coordinate, and z-coordinate of the specific subvolume, wherein one or more of the values of the x-coordinate, y-coordinate, and z-coordinate are weighted based on an edge length variable; determine an address within the hash table from the index value; determine whether there is a conflict at the address; and based on determining that there is no conflict at the address, cause the specific portion of the volume data to be written to the entry of the hash table associated with the address.
[0239] Example 48 includes the subject matter of Example 47, wherein the volume processing logic is further executable to: identify a specific voxel within the volume; determine that a sub-volume of the volume includes the specific voxel; identify an x-coordinate, a y-coordinate, and a z-coordinate for the sub-volume of the specific voxel; calculate an index value associated with the specific voxel from the x-coordinate, y-coordinate, and z-coordinate of the sub-volume for the specific voxel and based on a hash algorithm; access an entry in the hash table corresponding to the index associated with the specific voxel to access volume data associated with the specific voxel, wherein the volume data associated with the specific voxel identifies whether the specific voxel is occupied by a geometric shape; and trigger autonomous movement within the volume based on whether the specific voxel is occupied by the geometric shape.
[0240] Example 49 includes the subject matter of any of Examples 47-48, including one of a drone, a robot, or an autonomous vehicle.
[0241] Example 50 includes the subject matter of any of Examples 47-49, wherein the index value is generated according to the formula: Index=(ID z *(SL 2 )+ID y *(SL)+ID x ), where ID z is the value of the z coordinate, ID y is the value of the y coordinate, ID x is the value of the x-coordinate, and SL is the side length value.
[0242] Thus, specific embodiments of the subject matter have been described. Other embodiments are within the scope of the following claims. In some cases, the actions listed in the claims can be performed in different orders and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the particular order or sequential order shown to achieve the desired results.
Claims
1. A method for generating volume data, the method comprising: generating volumetric data to represent a three-dimensional (3D) volume, wherein the volume comprises a set of voxels, at least one of the voxels being occupied by a 3D geometric shape, and for each voxel in the set of voxels, the volumetric data identifies whether the corresponding voxel is occupied; generating index values for the volume data according to a hashing algorithm, wherein the index value for a particular portion of the volume data representing a particular subset of the voxels in the set of voxels is generated based on a combination of values of an x-coordinate, a y-coordinate, and a z-coordinate associated with the particular subset of voxels, and the index value for the particular portion is further generated based on a side length value corresponding to the volume; as well as The particular portion of the volume data is stored in an entry of a hash table, wherein the entry has an address based on the index value of the particular portion.
2. The method of claim 1 , wherein the combination of the values of the x-coordinate, the y-coordinate, and the z-coordinate comprises a weighted sum of the values of the x-coordinate, the y-coordinate, and the z-coordinate, and one or more of the x-coordinate, the y-coordinate, and the z-coordinate are weighted based on the side length value.
3. The method according to claim 2, wherein the index value is generated according to the following formula: Index = (ID z *(SL 2 )+ID y *(SL)+ID x ), where ID z is the value of the z coordinate, ID y is the value of the y coordinate, ID x is the value of the x-coordinate, and SL is the side length value.
4. The method of any one of claims 2-3, further comprising using the edge length value to determine a weight to be applied to the x-coordinate, y-coordinate, and z-coordinate based on a relative density of occupied volume within each of the x-coordinate, y-coordinate, and z-coordinate of the volume.
5. A method according to any one of claims 1-3, wherein the volume is logically subdivided into a set of voxel blocks, each of the voxel blocks includes a sub-volume of a corresponding subset of voxels, and the voxels of the specific subset include a specific one of the voxel blocks in the set of voxel blocks. 6 . The method of claim 5 , wherein each entry in the hash table is sized to accommodate volumetric data describing each voxel in a corresponding one of the set of voxel blocks. 7 . The method of claim 6 , wherein each voxel block comprises a plurality of voxels, and each of the hash table entries comprises at least one bit for each voxel in the voxel block to identify whether the corresponding voxel is occupied.
8. The method of claim 7, wherein each hash table entry is sized to include 2 bits for each voxel in the corresponding voxel block.
9. The method according to any one of claims 1-3, further comprising calculating the address of the entry, and the address of the entry in the hash table is calculated based on a modulus of the index value.
10. The method according to any one of claims 1 to 3, further comprising: detecting whether there is a conflict with the entry in the hash table; as well as When a collision is detected, a collision management scheme associated with the hash table is utilized.
11. The method of any one of claims 1-3, wherein the hashing algorithm does not utilize large prime numbers.
12. A system comprising means for performing the method according to any one of claims 1 to 11.
13. The system of claim 12, wherein the apparatus comprises a machine-readable storage device having instructions stored thereon, and the instructions are executable by a machine to cause the machine to perform the method of any one of claims 1-11.
14. A method for using volume data, the method comprising: Identify specific voxels within a volume; accessing a hash table stored in a computer memory; determining an x-coordinate, a y-coordinate, and a z-coordinate associated with the particular voxel in the volume; determining an index value associated with the particular voxel based on the x-coordinate, the y-coordinate, and the z-coordinate according to a hashing algorithm, wherein the index value is determined by summing weighted values of the x-coordinate, the y-coordinate, and the z-coordinate according to the hashing algorithm, and the weighted value is based on a side length value corresponding to the volume; identifying a particular entry in a hash table based on the index value, wherein the particular entry includes volume data, and the volume data identifies, for a particular subset of voxels in a particular portion of the volume, whether a voxel in the subset of voxels is occupied, wherein the subset of voxels includes the particular voxel; as well as A determination is made from the particular entry as to whether the particular voxel is occupied.
15. The method of claim 14, further comprising determining a navigation action within the volume based on determining whether the particular voxel is occupied.
16. The method according to any one of claims 14-15, wherein the index value is determined according to the following formula: Index = (ID z *(SL 2 )+ID y *(SL)+ID x ), where ID z is the value of the z coordinate, ID y is the value of the y coordinate, ID x is the value of the x-coordinate, and SL is the side length value.
17. The method of any of claims 14-15, wherein the x-coordinate, y-coordinate, and z-coordinate associated with the particular voxel comprise coordinates of a block of voxels in the volume, and the block of voxels comprises the subset of voxels.
18. The method of claim 17, wherein the volume comprises a plurality of voxel blocks, and the edge length value is equal to the cube root of the number of voxel blocks in the volume.
19. The method according to claim 17, wherein Each entry in the hash table is sized to accommodate volume data describing each voxel in a corresponding one of the set of voxel blocks.
20. The method of claim 19, wherein each voxel block comprises a plurality of voxels, and each of the hash table entries comprises at least one bit for each voxel in the voxel block to identify whether the corresponding voxel is occupied.
21. The method of claim 20, wherein each hash table entry is sized to include 2 bits for each voxel in the corresponding voxel block.
22. The method of any one of claims 14-15, further comprising calculating the address of the particular entry, and the address of the entry in the hash table is calculated based on a modulus of the index value.
23. The method according to any one of claims 14-15, further comprising: detecting whether there is a conflict with the particular entry in the hash table; as well as When a collision is detected, a collision management scheme associated with the hash table is utilized.
24. The method of any one of claims 14-15, wherein the hashing algorithm does not utilize large prime numbers.
25. The method of any one of claims 14-15, further comprising determining an autonomous navigation path of a device within the volume based on whether the particular voxel is occupied.
26. A system comprising means for performing the method of any one of claims 14-25.
27. The system of claim 26, wherein the apparatus comprises a machine-readable storage device having instructions stored thereon, and the instructions are executable by a machine to cause the machine to perform the method of any one of claims 14-25.
28. A system for using volume data, the system comprising: Data processing equipment; a memory, the memory comprising a hash table; a sensor that generates volumetric data to identify a geometric shape within at least a portion of the volume; as well as Volume processing logic executable to: determining a particular portion of the volume data corresponding to a particular subvolume of the volume; determining an x-coordinate, a y-coordinate, and a z-coordinate of the particular subvolume within the volume, wherein the particular subvolume comprises a set of one or more voxels; determining, for the particular portion of the volume data, an index value based on a hashing algorithm, wherein the index value is determined from a sum of weighted values of the x-coordinate, y-coordinate, and z-coordinate of the particular subvolume, wherein one or more of the values of the x-coordinate, y-coordinate, and z-coordinate are weighted based on an edge length variable; determining an address within the hash table from the index value; determining whether there is a conflict at the address; as well as Based on determining that there is no conflict at the address, causing the particular portion of the volume data to be written to an entry of the hash table associated with the address.
29. The system of claim 28, wherein the volume processing logic is further executable to: identify specific voxels within the volume; determining a sub-volume of the volume that includes the particular voxel; for the subvolume of the particular voxel, identifying an x-coordinate, a y-coordinate, and a z-coordinate; calculating an index value associated with the particular voxel from the x-coordinate, y-coordinate, and z-coordinate of the subvolume for the particular voxel and based on the hashing algorithm; accessing an entry in the hash table corresponding to the index associated with the particular voxel to access volume data associated with the particular voxel, wherein the volume data associated with the particular voxel identifies whether the particular voxel is occupied by a geometric shape; and Autonomous movement within the volume is triggered based on whether the particular voxel is occupied by a geometric shape.
30. A system according to any of claims 28-29, comprising one of a drone, a robot or an autonomous vehicle.
31. The system according to any one of claims 28-29, wherein the index value is determined according to the formula: Index = (ID z *(SL 2 )+ID y *(SL)+ID x ), where ID z is the value of the z coordinate, ID y is the value of the y coordinate, ID x is the value of the x-coordinate, and SL is the value of the side length corresponding to the volume.
