COMPASS  5.4.4
End-to-end AO simulation tool using GPU acceleration
sutra_target_brahma.h
Go to the documentation of this file.
1 // -----------------------------------------------------------------------------
2 // This file is part of COMPASS <https://anr-compass.github.io/compass/>
3 //
4 // Copyright (C) 2011-2023 COMPASS Team <https://github.com/ANR-COMPASS>
5 // All rights reserved.
6 
7 // -----------------------------------------------------------------------------
8 
16 
17 #ifndef SUTRA_TARGET_BRAHMA_H_
18 #define SUTRA_TARGET_BRAHMA_H_
19 
20 #include <BRAHMA_context.h>
21 #include <sutra_target.h>
23 
25  private:
26  DDS::Subscriber_var sub;
27  DDS::Publisher_var pub;
28  DDS::DataReaderListener_var cmd_listener;
29  SutraTargetBrahmaListenerImpl *cmd_listener_servant;
30  DDS::DataReader_var cmd_dr;
31  DDS::DataWriter_var frame_base_dw;
32  BRAHMA::FrameDataWriter_var frame_dw;
33  DDS::InstanceHandle_t frame_handle;
34 
35  CORBA::Octet *buff_pixels;
36 
37  CORBA::ULong *dims_pixels;
38 
39  long framecounter;
40  long samplecounter;
41  int subsample;
42  ACE_Mutex lock_;
43 
44  int is_initialised;
45 
46  public:
47  SutraTargetBrahma(CarmaContext *context, ACE_TCHAR *name,
48  SutraTelescope *d_tel, int subsample, int ntargets,
49  float *xpos, float *ypos, float *lambda, float *mag,
50  float zerop, long *sizes, int Npts, int device);
52 
53  void set_subsample(int ntarget, int subsample);
54  void publish();
55 
56  private:
57  void allocate_buffers();
58 };
59 
60 #endif /* SUTRA_TARGET_BRAHMA_H_ */
this class provides the context in which CarmaObj are created
Definition: carma_context.h:79
this class provides the target_brahma features to COMPASS
void set_subsample(int ntarget, int subsample)
SutraTargetBrahma(CarmaContext *context, ACE_TCHAR *name, SutraTelescope *d_tel, int subsample, int ntargets, float *xpos, float *ypos, float *lambda, float *mag, float zerop, long *sizes, int Npts, int device)
this class provides the target_brahmaListenerImpl features to COMPASS
this class provides the target features to COMPASS
Definition: sutra_target.h:29
this class provides the telescope features to COMPASS