Comments (10)
Two things you can try here:
- Run
ros2 doctor
, which may give you some feedback about network configuration. - In galactic, try running both the talker and the listener using
rmw_fastrtps_cpp
. That is, run the commands like this:
RMW_IMPLEMENTATION=rmw_fastrtps_cpp ros2 run demo_nodes_cpp talker
That will tell us whether the problem you are having is generically in Galactic, or specifically in the default DDS vendor (which is CycloneDDS in Galactic).
from demos.
Thanks, Chris!
I still have some confusion with regard to your reply. In step 2, what should be the command I should run for the listener? Do you mean I should run the below 2 commands in the terminal?
1.run the talker RMW_IMPLEMENTATION=rmw_fastrtps_cpp ros2 run demo_nodes_cpp talker
2.run the listener RMW_IMPLEMENTATION=rmw_fastrtps_cpp ros2 run demo_nodes_cpp listener
Or should I run the listener with the command RMW_IMPLEMENTATION=rmw_fastrtps_cpp ros2 run demo_nodes_py listener
?
from demos.
Either one will do. The important bit is that you are using rmw_fastrtps_cpp
as the DDS vendor.
from demos.
Hello, Chris,
I use the commands you gave me. Now it works normally. Could you please elaborate on what is the reason here? Is it because the default vendor in Galactic(i.e. CycloneDDS) has some bug? What is the DDS vendor we are using with the rmw_fastrtps_cpp
?
//talker terminal, print out messages normally
//listener terminal, can print out messages telling that it is receiving messages from talker now.
//run the listener py script, can also print out messages normally.
from demos.
I use the commands you gave me. Now it works normally. Could you please elaborate on what is the reason here? Is it because the default vendor in Galactic(i.e. CycloneDDS) has some bug?
I'm not sure what's going on here. But at least we know it has something to do with CycloneDDS. Ping @eboasson to take a look and maybe get some relevant information.
What is the DDS vendor we are using with the
rmw_fastrtps_cpp
?
It's using Fast-DDS instead.
from demos.
I use the commands you gave me. Now it works normally. Could you please elaborate on what is the reason here? Is it because the default vendor in Galactic(i.e. CycloneDDS) has some bug?
I'm not sure what's going on here. But at least we know it has something to do with CycloneDDS. Ping @eboasson to take a look and maybe get some relevant information.
What is the DDS vendor we are using with the
rmw_fastrtps_cpp
?It's using Fast-DDS instead.
Thanks Chris for your prompt reply. I have one more question. What is the default DDS vendor used by foxy BTW? Is it the same as Galactic(i.e. Cyclone DDS)?
from demos.
Thanks Chris for your prompt reply. I have one more question. What is the default DDS vendor used by foxy BTW? Is it the same as Galactic(i.e. Cyclone DDS)?
No, Foxy, uses rmw_fastrtps_cpp
by default.
from demos.
I
Thanks Chris for your prompt reply. I have one more question. What is the default DDS vendor used by foxy BTW? Is it the same as Galactic(i.e. Cyclone DDS)?
No, Foxy, uses
rmw_fastrtps_cpp
by default.
I see, thank you so much Chris!
from demos.
Hi @yang-yuke, I would guess it has something to the with a networking configuration, but let's make sure by looking at the debugging traces that Cyclone can write. (There are other steps one might take to narrow down the problem, but if it is something simple where the other methods also work, it can usually be found in the traces as well; and if it is something totally weird, then one usually ends up needing the the traces anyway.)
Those traces are not the easiest thing to read, not even with a document describing them (and I only have a draft anyway), but I am happy to look at them for you. Would you be willing to share the logs with me? If you're not comfortable sharing internal internal IP address in GitHub attachments, email me directly. My address is pretty easy to find from the commit log of Cyclone 🙂
To get the traces, please run it with CYCLONEDDS_URI="$CYCLONEDDS_URI,<Tr><C>trace</><Out>cdds.log.\${CYCLONEDDS_PID}</></>"
in the evironment? (This is abbreviated XML that one would normally write out in full and put in the configuration file.) This should get you one file for each process, cdds.log.PID
where PID
is the process id.
from demos.
Hi @yang-yuke, I would guess it has something to the with a networking configuration, but let's make sure by looking at the debugging traces that Cyclone can write. (There are other steps one might take to narrow down the problem, but if it is something simple where the other methods also work, it can usually be found in the traces as well; and if it is something totally weird, then one usually ends up needing the the traces anyway.)
Those traces are not the easiest thing to read, not even with a document describing them (and I only have a draft anyway), but I am happy to look at them for you. Would you be willing to share the logs with me? If you're not comfortable sharing internal internal IP address in GitHub attachments, email me directly. My address is pretty easy to find from the commit log of Cyclone 🙂
To get the traces, please run it with
CYCLONEDDS_URI="$CYCLONEDDS_URI,<Tr><C>trace</><Out>cdds.log.\${CYCLONEDDS_PID}</></>"
in the evironment? (This is abbreviated XML that one would normally write out in full and put in the configuration file.) This should get you one file for each process,cdds.log.PID
wherePID
is the process id.
Dear Mr. Erik,
I really appreciate your willingness to help me out. Can we sync up offline once? There are a lot of things I cannot make clear here. I have sent an email to you. My email address is [email protected]. Hope you receive it.
I will update the thread here once the problems are resolved.
from demos.
Related Issues (20)
- vexing parse problem leads to compile error
- Bad order of node.destroy_node() and rclpy.try_shutdown() in demos/demo_nodes_py/demo_nodes_py/topics/listener.py HOT 5
- Launch composable nodes (how-to): The program 'burgerimage' received an XWindow System error. HOT 2
- ``image_tools``: Use type adapter for cv::Mat from cv_bridge HOT 7
- How to load parameters in component? HOT 1
- pinned memory HOT 1
- Typo: It should be self._timer not self._timer_ HOT 1
- RGB order flipped when using cam2image with showimage HOT 2
- pendulum_control executables not available via ros2 run
- Do not use "off" for client_configure_introspection param in service introspection client HOT 3
- Long sleep time for the execution of each demo test case
- Quality of service demo interactive_{publisher,subscriber} doesn't quit properly
- Add py versions of nodes from logging_demo pkg
- When does CycloneDDS trigger message lost event? HOT 2
- [allocator_tutorial] Adding polymorphic allocators HOT 1
- Bug: rclcpp lifecycle node crashes when using mulithreaded executor and callback groups HOT 1
- Component Container process has died ROS2 galactic RCLCPP HOT 1
- Exception in get_state: std::future_error: No associated state HOT 2
- :farmer: Flaky test `demo_nodes_cpp.TestExecutablesTutorial.test_processes_output` failing variations from connextdds HOT 3
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 demos.