mirror of
https://github.com/nasa/trick.git
synced 2024-12-25 15:51:05 +00:00
21 lines
487 B
Plaintext
21 lines
487 B
Plaintext
|
|
||
|
#include "sim_objects/default_trick_sys.sm"
|
||
|
|
||
|
##include "ros_comm/ros_framework.hh"
|
||
|
##include "ros_comm/ros_subscribe.hh"
|
||
|
|
||
|
class RosSubscribeSimObject : public Trick::SimObject {
|
||
|
|
||
|
public:
|
||
|
RosFramework rf ;
|
||
|
RosSubscribe rp ;
|
||
|
|
||
|
RosSubscribeSimObject() : rf("trick_listener") , rp() {
|
||
|
("initialization") rp.init() ;
|
||
|
C1 (0.5, "scheduled") rp.process() ;
|
||
|
("shutdown") rf.shutdown() ;
|
||
|
}
|
||
|
} ;
|
||
|
|
||
|
RosSubscribeSimObject rs_so ;
|