0
$\begingroup$

I teach a university sophomore level MATLAB programming class for engineers, and I am planning on using the create2 for their final project. There is a nice simulator and MATLAB toolbox for the Create, but the toolbox utilizes some of the commands that no longer exist on the Create 2, thus it doesn't work correctly. And of course is doesn't support any of the newer commands. In addition, I want to be able to "cut the cord" so I am using a Raspberry Pi on the Create to pipe data to the serial port, and TCPIP sockets to send the data from a remote computer running MATLAB to the Pi/Create. If anyone is working on a similar configuration, I'd love to trade notes and share the pain.

$\endgroup$
2
$\begingroup$

The API hasn't changed that much. An overview of the changes can be found on the last page of the OI Spec. I am confused as to what might be causing the toolbox to break. Can you elaborate?

Using a RasPI to pipe serial data over TCP/IP to a desktop sounds like an expensive and error-prone way to "cut the cord". Using a serial to bluetooth or XBee module will be much easier.

$\endgroup$
  • $\begingroup$ Just as a note, there is a Bluetooth-to-Create 2 project that can be found here: irobot.com/~/media/MainSite/PDFs/About/STEM/Create/… The robot will show up as a serial port (once you pair with its module). $\endgroup$ – Steve Mar 27 '15 at 14:38
  • $\begingroup$ The logic for the choice of the WIFI/Pi is mainly to give us more flexibility. In addition to a 'dumb' network to serial converter, we can also: * control the robot via an onboard program on the pi * incorporate a camera * access from any network device * avoid bluetooth pairing issues The cost for a bluetooth adapter and cable is approx $30. The cost for a pi with wifi and cable is around $45. $\endgroup$ – Will Schleter Mar 30 '15 at 15:40
  • $\begingroup$ You are right that the API hasn't changed that much, but the the MATLAB toolbox relied on the "wait" commands that were removed. So now we have to change that so that the wait logic is on the controller side, which means more two-way communication. It also used the scripting commands which were removed. Again, there are workarounds, but it certainly doesn't work 'as is' $\endgroup$ – Will Schleter Mar 30 '15 at 15:49
  • $\begingroup$ sorry about the formatting of the first comment. The editing capability times out after 5 minutes or I would have fixed it... $\endgroup$ – Will Schleter Mar 30 '15 at 15:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.