mirror of
https://github.com/nasa/trick.git
synced 2024-12-25 07:41:08 +00:00
21 lines
466 B
Plaintext
21 lines
466 B
Plaintext
|
|
||
|
#include "sim_objects/default_trick_sys.sm"
|
||
|
|
||
|
##include "ros_comm/ros_framework.hh"
|
||
|
##include "ros_comm/ros_publish.hh"
|
||
|
|
||
|
class RosPublishSimObject : public Trick::SimObject {
|
||
|
|
||
|
public:
|
||
|
RosFramework rf ;
|
||
|
RosPublish rp ;
|
||
|
|
||
|
RosPublishSimObject() : rf("talker") , rp() {
|
||
|
("initialization") rp.init() ;
|
||
|
(0.5, "scheduled") rp.publish() ;
|
||
|
("shutdown") rf.shutdown() ;
|
||
|
}
|
||
|
} ;
|
||
|
|
||
|
RosPublishSimObject rp_so ;
|