57 rth_->insertOrUpdateSCDSPSOValue(key, data);
59 gsdf_msgs::SCDSPSOPut scds_put;
61 scds_put.pos = data.
pos;
62 scds_put.val = data.
val;
64 scds_put.gen = data.
gen;
68 gsdf_msgs::CommPacket p;
69 p.header.source =
rth_->getRobotID();
71 p.header.data_len = scds_put_vec.size();
73 p.header.checksum = 0;
74 p.content.buf = scds_put_vec;
76 mqm_->getOutMsgQueue(
"scds_pso")->push(msg_data);
82 if (!
rth_->getSCDSPSOValue(key, data)) {
83 std::cout<<
"scds pso tuple, "<<key<<
" is not exist."<<std::endl;
87 gsdf_msgs::SCDSPSOGet scds_get;
89 scds_get.pos = data.
pos;
90 scds_get.val = data.
val;
92 scds_get.gen = data.
gen;
96 gsdf_msgs::CommPacket p;
97 p.header.source =
rth_->getRobotID();
99 p.header.data_len = scds_get_vec.size();
100 p.header.version = 1;
101 p.header.checksum = 0;
102 p.content.buf = scds_get_vec;
104 mqm_->getOutMsgQueue(
"scds_pso")->push(msg_data);
SCDSPSODataTuple get(const std::string &key)
SCDSPSOTuple & operator=(const SCDSPSOTuple &t)
std::vector< uint8_t > serialize_ros(T t)
static boost::shared_ptr< T > getSingleton()
void put(const std::string &key, const SCDSPSODataTuple &data)
boost::shared_ptr< RuntimeHandle > rth_
boost::shared_ptr< MsgQueueManager > mqm_