Skip to content

Commit

Permalink
Corrected indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitsalem committed Apr 3, 2018
1 parent 3608349 commit 0a516ea
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 30 deletions.
18 changes: 8 additions & 10 deletions rmw_fastrtps_cpp/src/rmw_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,23 +122,21 @@ rmw_create_client(
subscriberParam.topic.topicKind = NO_KEY;
subscriberParam.topic.topicDataType = response_type_name;
subscriberParam.historyMemoryPolicy = PREALLOCATED_WITH_REALLOC_MEMORY_MODE;
if (!qos_policies->avoid_ros_namespace_conventions){
subscriberParam.topic.topicName = std::string(ros_service_response_prefix) + service_name;
}
else{
subscriberParam.topic.topicName = service_name;
if (!qos_policies->avoid_ros_namespace_conventions) {
subscriberParam.topic.topicName = std::string(ros_service_response_prefix) + service_name;
} else {
subscriberParam.topic.topicName = service_name;
}
subscriberParam.topic.topicName += "Reply";

publisherParam.topic.topicKind = NO_KEY;
publisherParam.topic.topicDataType = request_type_name;
publisherParam.qos.m_publishMode.kind = ASYNCHRONOUS_PUBLISH_MODE;
publisherParam.historyMemoryPolicy = PREALLOCATED_WITH_REALLOC_MEMORY_MODE;
if (!qos_policies->avoid_ros_namespace_conventions){
publisherParam.topic.topicName = std::string(ros_service_requester_prefix) + service_name;
}
else{
publisherParam.topic.topicName = service_name;
if (!qos_policies->avoid_ros_namespace_conventions) {
publisherParam.topic.topicName = std::string(ros_service_requester_prefix) + service_name;
} else {
publisherParam.topic.topicName = service_name;
}
publisherParam.topic.topicName += "Request";

Expand Down
9 changes: 4 additions & 5 deletions rmw_fastrtps_cpp/src/rmw_publisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,10 @@ rmw_create_publisher(
publisherParam.historyMemoryPolicy = PREALLOCATED_WITH_REALLOC_MEMORY_MODE;
publisherParam.topic.topicKind = NO_KEY;
publisherParam.topic.topicDataType = type_name;
if (!qos_policies->avoid_ros_namespace_conventions){
publisherParam.topic.topicName = std::string(ros_topic_prefix) + topic_name;
}
else{
publisherParam.topic.topicName = topic_name;
if (!qos_policies->avoid_ros_namespace_conventions) {
publisherParam.topic.topicName = std::string(ros_topic_prefix) + topic_name;
} else {
publisherParam.topic.topicName = topic_name;
}

#if HAVE_SECURITY
Expand Down
18 changes: 8 additions & 10 deletions rmw_fastrtps_cpp/src/rmw_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,23 +133,21 @@ rmw_create_service(
subscriberParam.topic.topicKind = NO_KEY;
subscriberParam.historyMemoryPolicy = PREALLOCATED_WITH_REALLOC_MEMORY_MODE;
subscriberParam.topic.topicDataType = request_type_name;
if (!qos_policies->avoid_ros_namespace_conventions){
subscriberParam.topic.topicName = std::string(ros_service_requester_prefix) + service_name;
}
else{
subscriberParam.topic.topicName = service_name;
if (!qos_policies->avoid_ros_namespace_conventions) {
subscriberParam.topic.topicName = std::string(ros_service_requester_prefix) + service_name;
} else {
subscriberParam.topic.topicName = service_name;
}
subscriberParam.topic.topicName += "Request";

publisherParam.topic.topicKind = NO_KEY;
publisherParam.topic.topicDataType = response_type_name;
publisherParam.qos.m_publishMode.kind = ASYNCHRONOUS_PUBLISH_MODE;
publisherParam.historyMemoryPolicy = PREALLOCATED_WITH_REALLOC_MEMORY_MODE;
if (!qos_policies->avoid_ros_namespace_conventions){
publisherParam.topic.topicName = std::string(ros_service_response_prefix) + service_name;
}
else{
publisherParam.topic.topicName = service_name;
if (!qos_policies->avoid_ros_namespace_conventions) {
publisherParam.topic.topicName = std::string(ros_service_response_prefix) + service_name;
} else {
publisherParam.topic.topicName = service_name;
}
publisherParam.topic.topicName += "Reply";

Expand Down
9 changes: 4 additions & 5 deletions rmw_fastrtps_cpp/src/rmw_subscription.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,10 @@ rmw_create_subscription(
subscriberParam.historyMemoryPolicy = PREALLOCATED_WITH_REALLOC_MEMORY_MODE;
subscriberParam.topic.topicKind = NO_KEY;
subscriberParam.topic.topicDataType = type_name;
if (!qos_policies->avoid_ros_namespace_conventions){
subscriberParam.topic.topicName = std::string(ros_topic_prefix) + topic_name;
}
else{
subscriberParam.topic.topicName = topic_name;
if (!qos_policies->avoid_ros_namespace_conventions) {
subscriberParam.topic.topicName = std::string(ros_topic_prefix) + topic_name;
} else {
subscriberParam.topic.topicName = topic_name;
}

#if HAVE_SECURITY
Expand Down

0 comments on commit 0a516ea

Please sign in to comment.