Skip to content

Sensor with high RPM creates an intractable action space #1089

Answered by akenyon
iwishiwasaneagle asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @iwishiwasaneagle thanks for raising this.

This may be something we'd want to add as a feature in the future, but as a quick workaround you could create a slightly modified subclass of the DwellActionsGenerator. You could overwrite the angle_delta property to restrict the actions generated to those within a single rotation of the sensor.

import numpy as np

from stonesoup.sensor.action.dwell_action import DwellActionsGenerator
from stonesoup.types.angle import Angle

class CustomDwellActionsGenerator(DwellActionsGenerator):
    @property
    def angle_delta(self):
        angle = Angle(self.duration.total_seconds() * self.rps * 2 * np.pi)
        return angle if angle < np.pi else np.pi

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@iwishiwasaneagle
Comment options

Answer selected by iwishiwasaneagle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants