thuir/memorybench/data-radar-self

Claude Code and agent skill by thuir/memorybench

Trust tier 3
  • community
  • ext:[{"type":"config","description":"Configuration overrides"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

General SOP for common requests related to data, radar, self.

Install

npx vskill@latest install thuir/memorybench/data-radar-self

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as ecnu-icalk/autoskill/data-radar-self.

data / radar / self

General SOP for common requests related to data, radar, self.

Prompt

Follow this SOP (replace specifics with placeholders like <PROJECT>/<ENV>/<VERSION>): 1) a2fdf42e0ad0be2f6a734526bebf98a0.json#conv_1 2) Use the user questions below as the PRIMARY extraction evidence 3) Use the full conversation below as SECONDARY context reference 4) In the full conversation section, assistant/model replies are reference-only and not skill evidence 5) Primary User Questions (main evidence 6) module": "radar_toolbox", "module_structure": "radar_toolbox\\conf/capture_conf.json;radar_toolbox\\conf/profile_vs1642_exp.cfg;radar_toolbox\\conf/raw_bin_to_numpy.json;radar_toolbox\\TI_data/sensor_com.py;", "module_files_already_generated_doc": [{"file": "radar_toolbox\\fmcw_utils.md", "doc": "# radar_toolbox/fmcw_utils.py Documentation\n\n## Overview\nfmcw_utils.py is a part of the radar_toolbox module and provides utility functions, classes, and constants specifically for frequency modulated continuous wave (FMCW) radar systems. This file is crucial for managing radar models, loading and processing radar data, and preparing captured raw data for analysis.\n\n## Classes\n\n### RadarModel (Enum)\nAn enumeration for the supported radar models.\n\n- IWR1642\n- IWR6843AOP\n- IWRL6432\n- get_model_from_str(string): Static method that takes a string identifier and returns the corresponding RadarModel enum. Raises NotImplementedError if the radar model is not implemented.\n\n### PointsAttributes (Enum)\nEnumeration of possible point cloud attributes\n\n- RANGE\n- AZIMUTH\n- ELEVATION\n- VELOCITY\n- points_attributes_abs(points, attribute_idx): Modifies the given points array by taking the absolute value of the specified attribute.\n\n### AntennaDataSaver\nA helper class for storing calculated FFT data.\n\n- __init__(save_abs_1D_FFTs, save_abs_2D_FFTs): Constructor specifying whether to save FFT data.\n- add_abs_1D_FFTs(FFTs_1D): Stores one-dimensional FFT results.\n- add_abs_2D_FFTs(FFTs_2D): Stores two-dimensional FFT results.\n\n### RadarDataSaver\nDesigned to store common detection matrices for further analysis.\n\n- __init__(save_common_detection_matrices): Constructor specifying whether to save common detection matrices.\n- add_common_detection_matrices(common_detection_matrices): Adds a new common detection matrix.\n\n## Functions\n\n### get_phase_compensation_for_radar_model(model)\nReturns the phase compensation array for a specific radar model. Raises NotImplementedError if the radar model is not handled.\n\n### load_IQ_file(path, is_complex, nb_samples, nb_chirps)\nLoads interleaved I/Q data from a file and returns a numpy array reshaped for chirps and samples. Accommodates complex data if is_complex is True.\n\n### load_IQ_data(path_prefix, is_complex, nb_antennas, nb_samples, nb_chirps)\nLoads interleaved I/Q data across multiple antennas and returns a combined numpy array for further processing.\n\n### raw_capture_bin_preparation(capture_bin_file_path, cfg_file_path, radar, output_bin_file_path, verbose)\nProcesses a binary capture file and prepares it in a structured format suitable for analysis, including handling of missing packets.\n\n### prepared_bin_to_numpy(bin_file_path, cfg_file_path, radar, nb_lanes)\nConverts a prepared binary radar data file to numpy format, taking into account missing packets and ensures only complete frames are returned.\n\n### coordinates_from_range_and_angles(azimuths, elevations, ranges)\nCalculates Cartesian coordinates from radar data specified by ranges, azimuths, and elevation angles.\n\n### read_cfg_file(path, radar_model, verbose)\nReads a .cfg file and returns a configuration dictionary with key parameters for the radar operation. Handles different radar models.\n\n### describe_config(config)\nPrints the configuration dictionary in a readable format for better understanding of the radar setup.\n\n### safe_memmap(filename, mode, dtype, shape)\nCreates a memory-mapped file for large arrays ensuring compatibility with the numpy .npy format.\n\n### Frame\nA class managing the construction of radar frames from raw data, handling cross-frame packet scenarios.\n\n- __init__( ...): Initializes the Frame object, which holds data for a single radar frame.\n- is_complete(): Returns whether the frame is complete.\n- add_values(data_to_append): Appends new data to the current frame.\n- get_frame_values(): Retrieves the final frame values.\n- get_next_frame(): Builds and returns a new frame with the remaining data if the current frame is complete.\n- get_frame_index(): Returns the index of the current frame.\n- get_nb_values_in_frame(): Returns the number of values in a frame.\n- order_frame(flat_unordered_frame): Orders a flat unordered frame into a structured numpy array.\n\n### AntennaConfig\nRepresents the configuration of an FMCW radar antenna, with attributes like start frequency, sampling rate, etc.\n\n- __init__( ...): Initializes the AntennaConfig instance with radar parameters.\n- get_antenna_parameters_from_config_file(config): Static method that creates an instance of AntennaConfig from radar configuration parameters.\n\n## Data Flow\nThe individual functions and classes deal with various stages of data acquisition, preprocessing, and transformation into formats that can be utilized for subsequent analysis. It goes from reading radar configurations, capturing raw binary data, preprocessing the data, extracting I/Q samples, organizing data into frames, and finally converting into coordinates relevant for point cloud generation.\n\n## Usage\nA developer would typically use these utilities to interface with FMCW radar hardware, manage radar configurations, process captured radar signals, and transform them into more analytical forms for further tasks such as object detection or tracking.\n"}, {"file": "radar_toolbox\\utils.md", "doc": "# radar_toolbox/utils.py Documentation\n\n## Overview\nutils.py is a module within the radar_toolbox that houses utility functions and classes essential for various aspects of the FMCW radar project. These utilities include configuration file handling, data loading, configuration parsing, and more.\n\n## Classes\n\n### GridSize\nA data class representing the size of a grid in three dimensions - x, y, and z.\n\n- x: Number of grid elements along the x-axis.\n- y: Number of grid elements along the y-axis.\n- z: Number of grid elements along the z-axis.\n\n#### Methods\n\n- get_shape(): Returns the shape of the grid as a tuple (x, y, z).\n\n### CaptureBoundaries\nA data class representing the boundaries of a capture session in three dimensions - x, y, and z.\n\n- x_min: Minimum value along the x-axis.\n- x_max: Maximum value along the x-axis.\n- y_min: Minimum value along the y-axis.\n- y_max: Maximum value along the y-axis.\n- z_min: Minimum value along the z-axis.\n- z_max: Maximum value along the z-axis.\n\n### Other Utility Functions\n\n- chunks(lst, n): Yields successive n-sized chunks from a list.\n- configure_argument_parser_for_conf_file(): Configures an argument parser for handling configuration files.\n- dict_deepmerge(x, y): Deep merges two dictionaries.\n- load_conf(config_file): Loads a configuration file, merging it with additional configurations if specified.\n- get_class(cls): Dynamically loads a class from a module.\n- load_data_from_conf(config_dataloader): Loads data from a specified data loader configuration.\n- create_pytorch_estimator(...): Creates a PyTorch estimator for model training.\n- create_custom_estimator(...): Creates a custom estimator for model training.\n- get_image_uri(...): Constructs the URI for a Docker image.\n- parse_extra_args(args, extra_args): Parses extra arguments and adds them to the argument dictionary.\n- csv_capture_player(config): Generator function for reading a CSV file of a capture session.\n- get_callbacks_from_params(callbacks_params): Constructs callbacks for model training based on specified parameters.\n- get_reader_from_config(config): Retrieves a radar data reader based on the radar model specified in the configuration.\n- coord_rotation(first_axis_values, second_axis_values, theta): Rotates coordinates anti-clockwise through an angle theta about the origin.\n- points_inclination_correction(points, horizontal_inclination, vertical_inclination): Corrects inclinations in the width-depth and height-depth planes for given XYZ coordinates.\n\n## Data Flow\nThe utility functions and classes in utils.py contribute to the broader data flow within the FMCW radar project. They handle configuration loading, data preprocessing, model training, and coordinate transformations. The data flow generally involves reading configuration files, loading and processing radar data, and preparing it for analysis or model training.\n\n## Usage\nDevelopers can leverage utils.py to streamline various aspects of the FMCW radar project. This includes handling configuration files, loading and preprocessing radar data, training machine learning models, and correcting coordinate inclinations."}, {"file": "radar_toolbox\\capture_session\\main.md", "doc": "# radar_toolbox/capture_session/main.py Documentation\n\n## Overview\nmain.py is a crucial component of the radar_toolbox module, specifically within the capture_session submodule. This module is responsible for recording raw radar captures and serves as the entry point for capturing data from the FMCW radar system. The file contains functionalities for configuring the radar, initiating recording sessions, and handling raw data acquisition.\n\n## Functionality\n\n### get_record_file_path(data_folder, person, session_type)\nThis function generates the file path for saving raw radar data based on the provided parameters. It ensures proper organization of data by creating folders for each person and session type, and it increments the session index to avoid overwriting existing sessions.\n\n### Main Execution\nThe main part of the script is executed when the file is run. It performs the following steps:\n\n1. Argument Parsing: Parses command line arguments, specifically the configuration file path.\n2. Configuration Loading: Loads configuration settings from the specified file.\n3. File Path Generation: Calls get_record_file_path to determine the file path for saving the raw radar data.\n4. Radar Configuration: Reads the radar model and configuration from the specified configuration file.\n5. Data Reader Initialization: Initializes the data reader based on the radar model and connects to the radar system.\n6. Recording Setup: Configures the radar system for recording, including sending the configuration file.\n7. Data Capture: Initiates the recording process, capturing raw data packets and saving them to the specified file.\n\n### Interrupt Handling\nThe script is designed to handle keyboard interrupts (e.g., user pressing Ctrl+C) gracefully. It ensures that the recording is stopped, and the data reader is disconnected before exiting.\n\n## Dependencies\n- Modules from radar_toolbox:\n - fmcw_utils: Utilized for radar model enumeration, reading configuration files, and handling radar configurations.\n - raw_data.adc: Imports the DCA1000 class for configuring and interacting with the ADC (Analog-to-Digital Converter).\n - utils: Utilizes utility functions for configuration file handling and data loading.\n\n## Usage\nTo use main.py, run the script with the necessary command line arguments, such as the path to the configuration file. For example:\n``bash\npython main.py --conf=conf/capture_conf.json\n`\n\nThis script is essential for initiating and managing radar data recording sessions. Developers can customize recording settings, handle configuration files, and interact with the radar system through this module.\n\n## Data Flow\nThe data flow within main.py` involves configuring the radar system, initiatin

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
92
Repository forks
7
7-day trend score
23

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Extension points

  • configConfiguration overrides

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/thuir/memorybench/data-radar-self/badge)](https://verified-skill.com/skills/thuir/memorybench/data-radar-self)

Something wrong with this skill or its page? Tell us.