Comments (3)
@esteve, do you have any idea about this? A naive guess is that it has something to do with the ability to pass different kinds of callbacks to the create_service
method.
from rmw_connext.
@wjwwood this should fix it, but it's too verbose IMO:
node->create_service<userland_msgs::AddTwoInts>(
"service_name",
static_cast<rclcpp::service::Service<userland_msgs::AddTwoInts>::CallbackWithHeaderType>(add));
from rmw_connext.
I'm not sure why I created this issue here, probably should be on rclcpp
.
Anyways, your suggestion works, but I agree that it's too verbose:
diff --git a/userland/src/add_two_ints_server.cpp b/userland/src/add_two_ints_server.cpp
index 72a3573..377f5b8 100644
--- a/userland/src/add_two_ints_server.cpp
+++ b/userland/src/add_two_ints_server.cpp
@@ -47,7 +47,8 @@ int main(int argc, char ** argv)
auto node = rclcpp::Node::make_shared("add_two_ints_server");
- node->create_service<userland_msgs::AddTwoInts>("add_two_ints", add);
+ node->create_service<userland_msgs::AddTwoInts>("add_two_ints",
+ static_cast<rclcpp::service::Service<userland_msgs::AddTwoInts>::CallbackWithHeaderType>(add));
rclcpp::spin(node);
diff --git a/userland/test/test_server.cpp b/userland/test/test_server.cpp
index 612e449..8190fdf 100644
--- a/userland/test/test_server.cpp
+++ b/userland/test/test_server.cpp
@@ -33,7 +33,8 @@ int main(int argc, char ** argv)
auto node = rclcpp::Node::make_shared("test_server");
- node->create_service<userland_msgs::AddTwoInts>("service_name", add);
+ node->create_service<userland_msgs::AddTwoInts>("service_name",
+ static_cast<rclcpp::service::Service<userland_msgs::AddTwoInts>::CallbackWithHeaderType>(add));
rclcpp::spin(node);
I'm going to try and resolve it some other way.
from rmw_connext.
Related Issues (20)
- Patching of RTI generated headers/sources very risky HOT 5
- Use RCUTILS_LOG_ERROR_NAMED instead of fprintf HOT 2
- Implement RMW Preallocate HOT 1
- received WStrings messages from FastRTPS incorrect HOT 2
- Gazebo ros plugins fail to create topic when using rmw_connext HOT 1
- Support for Connext 6 HOT 9
- Images coming in bursts using reliable QoS HOT 1
- Implement the rmw_get_publishers_info_by_topic and rmw_get_subscriptions_info_by_topic methods HOT 5
- Refactor code to use one Participant per Context HOT 1
- ROS2 expects RTI on hard-coded installation path HOT 7
- Unable to build overlays when connext not installed HOT 2
- rti-connext-dds package requires user interaction during installation HOT 4
- Fill rmw's new message-info and service-info timestamp fields HOT 1
- Build error in Windows CI HOT 2
- Trying RTI DDS TCP in ROS 2, but failed HOT 3
- Error getting RMW implementation identifier HOT 1
- Flaky Test: rcl_action TestAction HOT 11
- a subscriber of RTI native application can't receive messages from ros2 publisher HOT 2
- [Requesting Help] Support ContentFilteredTopic on rmw_connext HOT 6
- 👩🌾 Test regressions on Linux repeated nightly HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rmw_connext.