-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't teleoperate TB4 with remote PC #494
Comments
Hi, First thing I noticed in your bashrc file is you are sourcing two setup.bash. One is for simple discovery and other is for discovery server. Comment out "source /etc/turtlebot4_discovery/setup.bash " and restart your ros2 daemon using
For simple discovery, only source /etc/turtlebot4/setup.bash . |
Hello @PrakritTyagi, Thank you for your advice, I will suggest this to my customer. |
Hello, My customer modified his bashrc file, he is using "Simple Discovery" and now at the end of his file, he has: CYCLONEDDS_URI='true</></></></>' Now in SSH he sees all topics of the robot:
But the output of same command in his PC machine is:
What can he do to correct this? Is it really a sourcing problem? Thanks in advance for your help. |
Hello ClearPath. Is it possible to have a response for this ? |
Hey @ValentinLeglise! This sounds like the same network issues I encountered as well, this was how I eventually resolved it along with all my other networking issues, without fiddling with my router. I hope this helps.
This should enable all DDS related messages between the Create3 and Raspberry pi, so while SSH'ed, teleop, and docking/undocking commands should work. # Teleop
ros2 run teleop_twist_keyboard ^Cleop_twist_keyboard
# Dock
ros2 action send_goal /dock irobot_create_msgs/action/Dock '{}'
# Undock
ros2 action send_goal /undock irobot_create_msgs/action/Undock '{}' Then for establishing connections with PC, I used
zenohd
./zenoh-bridge-ros2dds -c bridge.yaml
# The host machine must have `zenohd` running already
source /opt/ros/humble/setup.bash
export ROS_DOMAIN_ID=0
export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp
./zenoh-bridge-ros2dds -c bridge.yaml
source /opt/ros/humble/setup.bash
export ROS_DOMAIN_ID=0
export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp
ros2 topic echo |
Hi @aaronchongth is that no need to modify any XML file for the cyclonedds_uri.. |
Hey @pvg6, yeah in my case, I just left |
@aaronchongth PI to Create3 communication is but host to PI is not there how can i connect to PI.. |
@pvg6 yup that will only resolve the connection between the Create3 and Raspberry Pi, but not guaranteed with the host because it only bridges domain 0 and 1 internally. My method sets both the Create3 and the Raspberry pi to use domain 0 and cyclonedds with default configurations. This should already allow SSH into the raspberry pi to teleop, dock/undock. Then set up bridges between the raspberry pi and host PC, so we can teleop from host PC without SSH. |
@aaronchongth the solution you provided will solve the memory issues ( Full red light) caused by create3.. please how can i solve the comple red light issue... |
@pvg6 according to https://iroboteducation.github.io/create3_docs/hw/face/, solid red light ring means a robot error and not related to networking. Looks like you will need to cycle power, or debug further |
Robot Model
Turtlebot4 Lite
ROS distro
Humble
Networking Configuration
Simple Discovery
OS
Ubuntu 22.04
Built from source or installed?
Installed
Package version
Type of issue
Networking
Expected behaviour
After connected the robot to the remote PC, the robot of my customer should be able to move after running "ros2 run teleop_twist_keyboard teleop_twist_keyboard", and should see all the TB4 topics with the command "ros2 topic list".
Actual behaviour
My customer can't drive his robot remotely with his PC. When he uses "ros2 run teleop_twist_keyboard teleop_twist_keyboard", or "ros2 topic pub /cmd_vel geometry_msgs/msg/Twist
"linear:
x: 0.0
y: 0.0
z: 0.0
angular:
x: 0.0
y: 0.0
z: 0.0" " , the robot doesn't respond. But, when he is in SSH into the robot, "ros2 topic pub /cmd_vel" works, but "ros2 run teleop_twist_keyboard" doesn't.
When he runs "ros2 topic list" on its PC, my customer only see 2 topic /rosout and /parameter_events.
Its probably a sourcing issue but, his .bashrc file and /etc/turtlebot4/setup.bash seems to be good:
.bashrc file:
/etc/turtlebot4/setup.bash
Error messages
No response
To Reproduce
Other notes
No response
The text was updated successfully, but these errors were encountered: