Instructions:
The project focuses on the use of FMCW radar.
It is used for data collection, point detection, tracking and other functions.
The project is broken down into several modules.
The aim of this division is to decouple as much as possible the functionalities present in each module, and make the development of new functionalities more flexible and rapid.

Some information will be presented to you in json format:
- module: the name of the module
- module_structure: the structure of the module (the files making up the module and their hierarchy)
- module_files_already_generated_doc: the documentation of the module's files if already generated
- other_modules_doc: the documentation of the other modules on which the module depends (possibly none at all)
- gen_doc_of_file: the file you will be given to generate the documentation of. If no file is given, the documentation of the entire module must be generated.
Your goal is to create a markdown documentation of the file you will be given, or the entire module if no file is given.
This documentation is intended to guide a developer who is new to the project, you can therefore add whatever you feel is relevant for this task.


Informations:
{"module": "radar_area_detection", "module_structure": "radar_area_detection/detection.py;radar_area_detection/display.py;radar_area_detection/live_area_detection.py;radar_area_detection\\comm/camera_alert.py;radar_area_detection\\comm/rabbitmq.py;radar_area_detection\\conf/6432_ti_config.cfg;radar_area_detection\\conf/6843_ti_config.cfg;radar_area_detection\\conf/detection_conf.json;radar_area_detection\\conf/live_area_detection.json;radar_area_detection\\conf/rabbitmq_conf.json;radar_area_detection\\conf/tracking_conf.json;", "module_files_already_generated_doc": [{"file": "docs\\radar_area_detection\\detection.md", "doc": "# radar_area_detection/detection.py Documentation\n\n## Overview\n\nThe detection.py script is part of the [radar_area_detection](radar_area_detection.md) module, which is responsible for the area detection functionality using FMCW radar technology. This module aids in the detection of points, tracking, and implementation of alert systems for certain areas within the radar\u00e2\u20ac\u2122s detection range.\n\n## File Structure\n\n`detection.py` includes the following classes:\n\n- `Area`: A simple data structure representing a rectangular detection area.\n- `Alert`: An abstract base class that defines the structure for raising and clearing alerts.\n- `AreaDetector`: The primary class that manages detection areas and processes radar data to trigger alerts.\n\n### Area Class\n\nThe Area class serves as a representation of a detection zone, defined by its boundaries in Cartesian coordinates.\n\n#### Attributes\n\n- `xl`: Float. Represents the x-coordinate of the left boundary of the area.\n- `xr`: Float. Represents the x-coordinate of the right boundary of the area.\n- `yb`: Float. Represents the y-coordinate of the bottom boundary of the area.\n- `yt`: Float. Represents the y-coordinate of the top boundary of the area.\n\n#### Methods\n\n- `serialize`: Serializes area\u00e2\u20ac\u2122s attributes into a dictionary format.\n\n### Alert Abstract Class\n\nThe `Alert` class provides a blueprint for implementing the alert system that will respond to detection events.\n\n#### Methods (Abstract)\n\n- `RaiseAlert`: Abstract method to be defined to specify the actions required when an alert is raised.\n- `ClearAlert`: Abstract method to be defined to specify the actions required when an alert is cleared.\n\n### AreaDetector Class\n\n`AreaDetector` is the central class that orchestrates the area detection and alerting process.\n\n#### Constructor\n\n- `__init__(areas, alerts=None)`: Initializes the detector with a list of areas and optional alert mechanisms.\n\n#### Attributes\n\n- `alerts`: List of Alert objects. Used to handle alerts when a tracked object enters a detection area.\n- `areas`: List of Area objects. These define the detection areas within the radar\u00e2\u20ac\u2122s field of view.\n- `ok_areas`: List of Area objects that are considered clear of tracked objects.\n- `alert_areas`: List of Area objects where alerts have been triggered due to the presence of tracked objects.\n- `alert_triggered`: Boolean indicating if an alert has been triggered.\n\n#### Methods\n\n- `update(clusters_up_to_date)`: Updates the state of each detection area based on the latest tracked clusters information.\n- `serialize`: Serializes the status of ok_areas and alert_areas into a dictionary format.\n\n## Integration with Other Modules\n\nThe `detection.py` script in the [radar_area_detection](radar_area_detection.md) module works in coordination with the [radar_tracking](../radar_tracking/radar_tracking.md) module (tracks objects detected by the radar) and may utilize the alerting infrastructure provided by the `radar_area_detection\\comm` submodule (for example, sending messages via [RabbitMQ](comm/rabbitmq.md)).\n\n## Usage\n\nDevelopers can use this script to define detection areas, integrate tracking data, and manage alert systems based on their specific needs in the context of FMCW radar applications.\n\n## Developer Notes\n\nThe AreaDetector class initializes with predefined detection areas and has the capability to receive real-time tracking data. Upon receipt of new cluster information, the update method reevaluates and categorizes each area as clear or under alert, triggering the appropriate alert mechanisms if any are in place.  \n- When creating new Area instances, ensure that the coordinates correctly reflect the detection zone intended for monitoring.\n- When implementing concrete alert classes, define clear procedures for both RaiseAlert and ClearAlert methods.\n- During the update process, ensure that the centroid of clusters is being correctly obtained from the tracking data.\n- It is crucial to manage ok_areas and alert_areas accurately, reflecting the radar\u00e2\u20ac\u2122s real-time assessment of the monitored areas.\n\n[Radar Area Detection](radar_area_detection.md)"}, {"file": "docs\\radar_area_detection\\display.md", "doc": "# radar_area_detection/display.py Documentation\n\n## Overview\n\nThe `display.py` script is part of the [radar_area_detection](radar_area_detection.md) module, which integrates with the area detection and object tracking functionalities. This script specifically provides visualization capabilities, extending the `TrackingDisplay2D` class from the radar_tracking module to represent detection areas and the status of those areas (either as \"ok\" or under \"alert\").\n\n## File Structure\n\ndisplay.py includes the following class:\n\n- `AreasDisplay2D`: Extends the `TrackingDisplay2D` class to display detection areas and denote their status on a 2D plot.\n\n### AreasDisplay2D Class\n\nThe `AreasDisplay2D` class is responsible for visualizing areas on a 2D display, differentiating between areas that are clear (ok) and those that have an active alert. It allows real-time updates of the visualization as the status of the areas changes according to the radar data.\n\n#### Constructor\n\n- **\\_\\_init__(self, *args, \\*\\*kwargs)**: Initializes the `AreasDisplay2D` class with arguments passed to its superclass and initializes an empty list for patches.\n\n#### Attributes\n\n- **patches**: List. Stores the drawing patches corresponding to areas on the display.\n\n#### Methods\n\n- **_prepare_draw(self, clusters, ok_areas: List[Area], alert_areas: List[Area])**: Internally prepares the drawing of the clusters and areas. It removes any existing patches and re-adds them according to the updated area states.\n- **show(self, clusters, area_detector: AreaDetector)**: Public method to display the radar clusters and areas. This method calls _prepare_draw with the ok_areas and alert_areas from an AreaDetector instance and then proceeds to draw the updated visualization.\n\n### Integration with Other Modules\n\nThe detect.py script in the [radar_area_detection](radar_area_detection.md) module interacts with the AreasDisplay2D class to visualize active areas and alerts. Moreover, the AreasDisplay2D class uses functionality from the radar_tracking module\u00e2\u20ac\u2122s visualization utilities, signifying how various modules within the system come together to fulfill the project\u00e2\u20ac\u2122s overall objectives.\n\n## Usage\n\nDevelopers can instantiate the `AreasDisplay2D` class to visualise the area detection results in the context of FMCW radar applications. This enables a graphical representation of which areas are clear (ok) and which are under alert.\n\n## Data Flow\n\n1. An instance of `AreasDisplay2D` is created with appropriate arguments.\n2. Radar data (clusters) and area statuses are processed by an `AreaDetector`.\n3. Area statuses and clusters are passed to the `AreasDisplay2D` instance\u00e2\u20ac\u2122s show method.\n4. The show method updates the visual representation according to the current state of detection areas and tracked clusters.\n\n## Developer Notes\n\n- Use the `AreasDisplay2D` class to create a visual feedback loop for area detection and alert visualization in real-time radar applications.\n- Ensure active areas and their statuses are correctly updated and reflected in the visualization to provide continuous situational awareness.\n- The visual representation is crucial for debugging and monitoring the radar area detection functionality, hence strive for clear visual distinction between different states for better readability and interpretation.\n\n## Conclusion\n\n`display.py` within the [radar_area_detection](radar_area_detection.md) module serves a pivotal role in visually representing the status of detection areas in real-time. The AreasDisplay2D class demonstrates an effective integration of visualization techniques with radar detection and tracking capabilities. It contributes to the wider goal of creating a modular and adaptable system for FMCW radar applications.\n\n[Radar Area Detection](radar_area_detection.md)"}, {"file": "docs\\radar_area_detection\\live_area_detection.md", "doc": "# radar_area_detection/live_area_detection.py Documentation\n\n## Overview\n\nThe `live_area_detection.py` script is part of the [radar_area_detection](radar_area_detection.md) module. It orchestrates live area detection leveraging data from mmWave radar hardware. Using configuration files, this script setups the radar system, executes detection and tracking algorithms, and detects intrusions within predefined areas. If configured, it sends alert notifications and visualizes the detection areas.\n\n## Usage\n\nThis script should be run with a parameter to indicate the configuration file to use:\n\n```bash\npython live_area_detection.py --conf=conf/area_detection/[config file]\n```\n\n### Parameters\n- `--conf`: Path to the configuration file (JSON format) that contains the necessary parameters for script execution.\n\n## File Structure\n\n`live_area_detection.py` script integrates various components from the project:\n\n- Core radar data processing utilities from the radar_toolbox module.\n- Area detection and alerting classes from the radar_area_detection.detection submodule.\n- Camera alerts managed by radar_area_detection.comm.camera_alert.\n- Tracking and clustering algorithms from the radar_tracking module.\n- Visualization components from both the radar_visuals and radar_area_detection modules for local display.\n- Communication handling through RabbitMQ from radar_area_detection.comm.rabbitmq.\n\n## Key Components\n\n- RadarModel: Enum from radar_toolbox.fmcw_utils to identify radar hardware models.\n- configure_argument_parser_for_conf_file, load_conf, get_reader_from_config: Functions from radar_toolbox.utils for parsing configuration files.\n- AreaDetector: Class from radar_area_detection.detection that detects when a tracked object enters a detection area.\n- CameraAlert: Class from radar_area_detection.comm.camera_alert that handles camera-triggered alerting.\n- RabbitMQSender: Class from radar_area_detection.comm.rabbitmq for sending messages via RabbitMQ.\n\n## Workflow\n\n1. Parse command line arguments for configuration.\n2. Load configuration settings including radar model, area detection, and tracking config.\n3. Setup radar device reader and configure it using the specified parameters.\n4. Instantiate area detection and alerting mechanisms.\n5. Connect to RabbitMQ if configured.\n6. Start radar data acquisition loop:\n   - Parse incoming radar data stream for detected points.\n   - Apply velocity and inclination corrections.\n   - Perform clustering and tracking of points.\n   - Update area detection status based on tracked clusters.\n   - Visualize detection areas if local display is enabled.\n   - Send serialized area and cluster data via [RabbitMQ](comm/rabbitmq.md).\n7. Handle shutdown on interrupt with cleanup for reader and any active displays or connections.\n\n## Error Handling\n\nThe script includes a try-except block to handle a KeyboardInterrupt exception, ensuring that resources are properly released upon exiting the application using Ctrl + C.\n\n## Developer Notes\n\n- Developers should ensure correct orientation of the radar device with respect to the detected areas, which may be vital for correct inclination corrections.\n- When integrating additional alert mechanisms or customizing the tracking workflow, thorough testing is essential to verify the accuracy of detection and alerting.\n- Additional error handling may be implemented to ensure robustness in a live environment where network issues or hardware failures can occur.\n\n## Integration with Other Modules\n\n- The `radar_area_detection.detection` submodule for area detection logic.\n- The [radar_toolbox](../radar_toolbox/radar_toolbox.md) module for radar hardware communication and setup.\n- The [radar_tracking](../radar_tracking/radar_tracking.md) module for object tracking algorithms.\n- The `radar_area_detection.comm` submodule for executing [alert actions](comm/camera_alert.md) and [RabbitMQ messaging](comm/rabbitmq.md).\n- Optionally, the [radar_visuals](../radar_visuals/radar_visuals.md) module for displaying local live visualization.\n\n## Conclusion\n\nlive_area_detection.py is a complex script that integrates multiple components to perform real-time area detection using an FMCW radar system. By decoupling functionalities into specific modules, it enhances maintainability and allows for flexible expansion of the project\u00e2\u20ac\u2122s capabilities. Developers can modify and add new functionality by following the structured approach illustrated by the components of this script.\n\n[Radar Area Detection](radar_area_detection.md)"}, {"file": "docs\\radar_area_detection\\comm\\camera_alert.md", "doc": "# radar_area_detection/comm/camera_alert.py Documentation\n\n## Overview\n\nThe `camera_alert.py` script resides within the radar_area_detection.comm submodule of the [radar_area_detection](../radar_area_detection.md) module. This script defines a concrete implementation of an alert system based on camera activation, which integrates with the radar area detection system to respond to specific detection events using web requests.\n\n## File Structure\n\n`camera_alert.py` contains the following class:\n\n- `CameraAlert`: This class extends the abstract base Alert class, specifying actions to perform when an alert must be raised or cleared via camera control.\n\n### CameraAlert Class\n\nThe `CameraAlert` class is designed to send commands to a networked camera to start or stop recording based on area detection alerts.\n\n#### Constructor\n\n- `__init__(self, ip, port)`: Initializes the CameraAlert with network configurations.\n\n#### Attributes\n\n- `ip`: String. The IP address of the camera.\n- `port`: Integer. The port number to access the camera.\n\n#### Methods\n\n- `RaiseAlert`: Sends an HTTP POST request to the camera\u00e2\u20ac\u2122s server to start recording when an alert is raised.\n- `ClearAlert`: Sends an HTTP POST request to the camera\u00e2\u20ac\u2122s server to stop recording when an alert is cleared.\n\n## Integration with Other Modules\n\nCameraAlert extends the Alert class from [radar_area_detection.detection](../detection.md), linking camera control to the area detection logic using polymorphism.\n\n## Usage\n\nThe `CameraAlert` class may be instantiated and passed to AreaDetector instances within detection.py to specify that the camera should react to detection events.\n\nDevelopers can use this script as follows:\n\n1. Instantiate the `CameraAlert` with the appropriate IP and port for the camera.\n2. Integrate the instance with the area detection system so the camera actions are triggered during alert conditions.\n\n## Error Handling\n\nThis script catches exceptions during the HTTP request process and prints an error message, which helps to identify network or camera accessibility issues.\n\n## External Dependence\n\n`camera_alert.py` depends on the requests library to perform HTTP requests. Make sure that requests is installed and available in the project\u00e2\u20ac\u2122s environment.\n\n## Data Flow\n\n1. The area detection system determines that an alert condition is met.\n2. AreaDetector triggers the RaiseAlert method on the CameraAlert instance.\n3. CameraAlert sends an HTTP request to the camera to start or stop recording based on the state of the alert.\n\n## Developer Notes\n\nDevelopers looking to further customize behavior or add features should consider:\n\n- Expanding the CameraAlert class to handle more sophisticated network protocols or add authentication as needed.\n- Implementing retry logic or asynchronous requests if the synchronous POST request model proves to be a bottleneck or if the timeout parameter needs adjustment.\n- Adding logging mechanisms to capture successful interactions and failed attempts for better operational visibility.\n\n## Conclusion\n\nThe `camera_alert.py` script effectively bridges the gap between radar area detection and physical security measures, empowering the system to take real-world, automated actions in response to detection events. By following the robust design principle of extending an abstract base class, this module enhances the flexibility and scalability of the overall radar area detection mechanism.\n\n[Radar Area Detection](../radar_area_detection.md)"}], "other_modules_doc": [{"module": "radar_visuals", "doc": "# radar_visuals Module Documentation\n\n## Overview\n\nThe `radar_visuals` module is a dedicated visualization package within a project focused on the use of Frequency Modulated Continuous Wave (FMCW) radar. It is designed to provide tools and utilities for the rendering of radar data in various visual formats, supporting functionalities like data collection, point detection, and tracking analysis. The module aims to facilitate rapid development and integration of new visualization features through a decoupled and flexible structure.\n\n## Module Structure\n\nThe `radar_visuals` module currently contains the following file:\n\n- [display.py](display.md): A Python script offering a suite of classes and functions for creating dynamic and static displays for radar data visualization.\n\n## Module Files Documentation\n\n### [display.py](display.md)\n\nThe [display.py](display.md) file within the radar_visuals package encompasses multiple visualization methods and is central to the module. Below is a summary of the provided documentation:\n\n#### Overview\nThe script is essential for visualizing radar data and includes capabilities for 2D, 3D, and polar plotting. It is versatile enough to accommodate both real-time and static data presentations.\n\n#### Components\nEnums such as **PlayingMode**, **Projection**, and **GraphType** allow the user to define the display behavior, the plot\u00e2\u20ac\u2122s projection type, and the graph style, respectively. Along with utility functions like color_from_id and plot_signal, the script provides two main classes:\n\n- `UpdatableDisplay`: The abstract base class for displays that can be updated, initializing the figure, axes, and other graphical elements.\n- `SimpleUpdatableDisplay`: A concrete implementation of UpdatableDisplay that prepares and updates displays with new data points.\n\n#### Functionalities\nThe primary functionalities include creating interactive graphs to visualize radar data, updating them according to predefined playing modes, and ensuring compatibility with different data types and visual projections.\n\n#### Data Flow\nThe typical workflow involves:\n1. Initializing a display object with the required properties.\n2. Accumulating or simulating radar data points.\n3. Updating the display as new data arrives through the show() method.\n4. Presenting the visual representation of the radar data to users based on the set playing mode.\n\n#### Developer Notes\nDevelopers are advised to match data dimensions with graph types and projections, manage update rates effectively, and assign unique colors to data sources using UUIDs for better data distinction.\n\n#### Integration\nDespite being part of the radar_visuals package, [display.py](display.md) operates independently from other components, specifically focusing on visualization purposes and not on signal processing.\n\n## Usage\n\nThe module can be employed to:\n\n- Visualize FMCW radar-related data points, signals, and more complex datasets.\n- Develop new visualization tools tailored to the specifics of radar data.\n- Enhance the interpretation of radar data through graphically rich plots.\n\n## Conclusion\n\n`radar_visuals` is a crucial module for the graphical representation and analysis of radar data within a larger FMCW radar-focused project. The modular structure accommodates efficient development, enabling users and developers to easily integrate new visualization techniques suited to their specific needs. The module\u00e2\u20ac\u2122s design streamlines the translation of complex data into understandable and insightful visual formats, supporting a wide range of functionalities from debugging to presentation.\n\n[Radar SDK](../../README.md)"}, {"module": "radar_toolbox", "doc": "# radar_toolbox Module Documentation\n\n## Overview\n\nThe radar_toolbox module is a collection of tools designed for interfacing with Frequency Modulated Continuous Wave (FMCW) radar systems. It is utilized for various purposes such as data collection, point detection, and other radar signal processing functions.  \nThe module serves as the foundational toolset for FMCW radar systems, streamlining the process from initial data capture to data preparation for analytics.  \nThe module is structured to decouple functionalities into distinct units to promote flexibility and rapid development of new features.  \n\n## Module Files Documentation\n\nDevelopers new to radar_toolbox will find documentation for several key files within the module. An outline of this documentation includes:\n\n- [fmcw_utils](fmcw_utils.md)\n  - Detailed information on handling FMCW radar systems, managing configurations, processing radar signals, and transforming them into analyzable forms.\n- [utils](utils.md)\n  - A comprehensive overview of utility functions that aid in loading configurations, preprocessing radar data, and assisting with model training and coordinate adjustments.\n- [raw_data/adc](raw_data/adc.md)\n  - Documentation of the adc.py script which serves as an interface to ADC hardware, allowing for the capture and real-time processing of radar data streams.\n- [raw_data/raw_bin_to_numpy](raw_data/raw_bin_to_numpy.md)\n  - Explains the process of converting raw binary radar data into a NumPy array and the steps involved in ensuring data integrity during conversion.\n- [raw_data/record_raw_data](raw_data/record_raw_data.md)\n  - A guide to a script focused on raw data recording, detailing the initiation of data capture and subsequent data stream management.\n- [TI_data/record_ti_data](TI_data/record_ti_data.md)\n  - Documentation for a script specific to TI radar hardware, describing real-time data capture and CSV data storage functionality.\n- [TI_data/sensor_com](TI_data/sensor_com.md)\n  - Communication protocols and data structure parsing methods for TI mmWave radar boards are outlined for managing interactions with these devices.\n\n## Usage\n\nDevelopers can use the radar_toolbox module to:\n\n- Set up FMCW radar data capture sessions.\n- Record and process raw radar data.\n- Convert binary radar data captures into formats suitable for analysis, such as NumPy arrays.\n- Interact and configure TI mmWave radars for data acquisition.\n\n## Data Flow Summary\n\nThe data flow within the radar_toolbox module follows these general steps:\n\n1. Configuration is set up using JSON files and configuration profiles for the specific radar models.\n2. Data recording sessions are initiated, capturing the radar data and storing it in binary format.\n3. Raw binary data is processed, filtered, and organized into structured data arrays.\n4. Data is made ready for analysis, transformed into point clouds or other representations necessary for further processing and interpretation.\n\n## External Dependencies\n\nWhile the module works as an independent toolkit within the project scope, it interfaces with radar hardware and other software modules that handle advanced data analysis, visualization, and machine learning applications.\n\n[Radar SDK](../../README.md)"}, {"module": "radar_tracking", "doc": "# FMCW Radar Tracking Project Documentation\n\n## radar_tracking Module\n\nThe `radar_tracking` module sits at the heart of the FMCW radar project, providing algorithms and utilities focused on the tracking of objects detected by the radar system.\n\n### Module Structure\n\nThe module is composed of several scripts and a configuration file organized as follows:\n\n- [tracking_utils.py](tracking_utils.md): Utilities for configuring and initializing tracking components.\n- [conf/tracking.json](conf/tracking.md): A JSON-formatted configuration file specifying parameters for the tracking system.\n- inference/:\n  - `example_kalman_filter.py`: Perform inference using Kalman filters.\n  - `example_tracking.py`: An example script demonstrating the tracking process.\n- models/:\n  - [kalman.py](models/kalman.md): Implementations of Kalman filter for state estimation.\n  - [tracking.py](models/tracking.md): The main tracking algorithm handling the temporal correlation of clusters.\n  - clustering/:\n    - [cluster.py](models/clustering/cluster.md): Data structure for managing clusters of points.\n    - [cluster_predictor.py](models/clustering/cluster_predictor.md): Class for predicting clustering behavior based on certain algorithms.\n    - `optimizer.py`: utilities for searching best hyperparameters for clustering algorithms.\n    - algos/:\n      - `clustering_algorithm.py`: Abstract base algorithms for clustering.\n      - `dbscan.py`: DBSCAN clustering algorithm implementation.\n      - `gaussian_mixture.py`: Gaussian Mixture Model clustering implementation.\n      - `meanshift.py`: Mean Shift clustering algorithm implementation.\n- [visuals/display.py](visuals/display.md): Visualization classes for displaying the tracking data.\n\n### Dependencies\n\nThe `radar_tracking` module relies on other parts of the FMCW radar project:\n\n- [radar_toolbox](../radar_toolbox/radar_toolbox.md):\nA toolkit for interacting with the radar hardware and processing raw radar data.\n\n- [radar_visuals](../radar_visuals/radar_visuals.md):\nProvides dynamic and static displays to visualize radar data, which can be helpful to show tracking results in an accessible form.\n\n## Development Notes\n \nThe radar_tracking module integrates sophisticated algorithms and diverse data sets to track objects with high precision.  \nFor practical understanding, developers are encouraged to interact with example scripts inside the inference subdirectory. They illustrate how the various components come together to achieve object tracking.\n\n[Radar SDK](../../README.md)"}], "gen_doc_of_file": {"path": "radar_area_detection\\comm\\rabbitmq.py", "content": "import pika\n\n\nclass RabbitMQSender:\n    def __init__(self, host, port, queue, exchange):\n        self.host = host\n        self.port = port\n        self.queue = queue\n        self.exchange = exchange\n\n    def connect(self):\n        self.connection = pika.BlockingConnection(pika.ConnectionParameters(host=self.host, port=self.port))\n        self.channel = self.connection.channel()\n        self.channel.queue_declare(queue=self.queue)\n\n    def send_json(self, data):\n        self.channel.basic_publish(exchange=self.exchange, routing_key=self.queue, body=data)\n\n    def disconnect(self):\n        self.connection.close()\n\n    @staticmethod\n    def configure_rabbitmq(rabbitmq_conf):\n        if rabbitmq_conf[\"enable\"]:\n            rabbitmq_sender = RabbitMQSender(host=rabbitmq_conf[\"host\"], port=rabbitmq_conf[\"port\"],\n                                             queue=rabbitmq_conf[\"queue\"], exchange=rabbitmq_conf[\"exchange\"])\n            rabbitmq_sender.connect()\n            return rabbitmq_sender\n        return None\n"}}