Replies: 1 comment
-
The python web playground is for interfacing with Create 3 and Root robots over their BLE connection. If you want to use Python and Ethernet, you'll need to use ROS 2 and rclpy. Create 3 does not present a serial link over USB; the code you linked out to is taking advantage of forwarding a USB serial device over a wireless network in order to communicate with that device remotely. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How are you connecting to your Create 3?
USB Ethernet (ROS 2)
Computer(s) Model(s) and Operating System(s)
Raspberry Pi 3B/ Raspberry Pi OS (Bullseye)
Which version of ROS 2 is installed on your computer?
I am unable to install ROS 2
Which firmware version is installed on your robot?
G.5.2
Which RMW is your robot running?
I don't know
Does your robot have an assigned namespace? If so, please share.
No response
Is the robot connected to a network? If so, what is the network type?
Yes, home network
Are there multiple Create 3 robots connected to your network?
No
Is multicast enabled?
No
What is the Adapter Board's USB/BLE Toggle currently switched to?
USB
Describe your question.
I am attempting to connect to the Create 3 using a USB-C to Ethernet adapter and connecting over Ethernet between that and the Pi 3B. I have been able to set up a static IP in
/etc/network/interfaces
using the snippet below and ping the Create's IP with no issues.I am trying to use the irobot-edu-python-sdk to send commands to the create but I have not been able to get it to connect yet.
My original thought was to try and use the serial option but so far I haven't had any luck with that, which may be due to the Pi 3B only using
/dev/serial0
for serial connections rather thantty
options.The other option I have been attempting is to connect using a a TCP socket with the Pi as a client over port 8883 and matching it to the Backend class in the SDK. I saw something with similarities in this community submission and was using it as a reference for this method. The code below is what I have been attempting to make work for this method:
TCP Class:
Test Code:
I receive the error below when trying to connect:
My question essentially is, how can connect over Ethernet while also using the SDK? We are avoiding using ROS because of how large it is and the SD card we use for our controllers is only 8 GB.
Beta Was this translation helpful? Give feedback.
All reactions