Make ROS Service Topic Generation compatible with Cyclone DDS
Cyclone DDS appends "Reply" (instead of "Response") to the Response Message Topic.
This commit is contained in:
parent
39b7e6960a
commit
6524ad6c0d
@ -135,7 +135,7 @@ package body user_config is
|
||||
ret(index).TYPENAME := ROS_SERVICES(i).TYPENAME;
|
||||
tmp := gen_fqn(ROS_NODES(ROS_SERVICES(i).node_id).namespace, ROS_NODES(ROS_SERVICES(i).node_id).name, ROS_SERVICES(i).SERVICENAME);
|
||||
if (ROS_SERVICES(i).is_client) then
|
||||
ret(index).TOPICNAME := concat("rr",concat(tmp,"Response"));
|
||||
ret(index).TOPICNAME := concat("rr",concat(tmp,"Reply"));
|
||||
ret(index).MAX_PAYLOAD_SIZE := ROS_SERVICES(i).MAX_RR_SIZE;
|
||||
else
|
||||
ret(index).TOPICNAME := concat("rq",concat(tmp,"Request"));
|
||||
@ -169,7 +169,7 @@ package body user_config is
|
||||
ret(index).TOPICNAME := concat("rq",concat(tmp,"Request"));
|
||||
ret(index).MAX_PAYLOAD_SIZE := ROS_SERVICES(i).MAX_RQ_SIZE;
|
||||
else
|
||||
ret(index).TOPICNAME := concat("rr",concat(tmp,"Response"));
|
||||
ret(index).TOPICNAME := concat("rr",concat(tmp,"Reply"));
|
||||
ret(index).MAX_PAYLOAD_SIZE := ROS_SERVICES(i).MAX_RR_SIZE;
|
||||
end if;
|
||||
index := index + 1;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user