Dear Junchuan,
first of all check that the Bluetooth connection is actually working.
Use a terminal program (e.g. teraterm for Windows or miniterm for Linux)
and open the connection with the robot, put selector in position 3 and
asks for some sensors data (e.g. n+enter will return the proximity
values). If it works then the Bluetooth communication and the robot
firmware are ok, otherwise try uploading the standard firmware to the
e-puck (http://www.gctronic.com/doc/index.php/E-Puck#Standard_firmware)
and try again.
To control the robot from the computer the "asercom protocol" is used,
have a look at this page
http://www.gctronic.com/doc/index.php/Advanced_sercom_protocol.
An example application is the "monitor application", have a look here
http://www.gctronic.com/doc/index.php/E-Puck#PC_interface
If you are looking for a good simulator you can rely on Webots
(http://www.cyberbotics.com/webots.php) that supports the e-puck robot.
With this simulator you have the option of simulating the code and
simultaneously send commands to the robot (what you are asking for).
Best reagards,
Stefano
Il 29.07.2016 01:42, Junchuan Zhang ha scritto:
Dear all,
Is there a tutorial or a brief way I can control e-puck directly from
the computer?
Here's my goal: I hope I can control the motion of the robot in
real-time with a simulation running on.
I have already tried the library for communicating with Matlab, but it
failed. No commands would go into the e-puck, neither any data can be
read from the e-puck. When I wanted to read the data, (with the
function [data] = EpuckGetData() in Matlab library), there was always
a warning: The specified amount of data was not returned within the
Timeout period.
If anyone can help me that would be very great. I've been stuck here
for a month.
Thank you very much!
Regards,
Junchuan
--
张峻川
JUNCHUAN ZHANG
Northeastern University
Mechanical Engineering
Personal Pages:
http://www.collegefeed.com/profile/junchuanzhang
https://www.linkedin.com/pub/junchuan-zhang/3a/5b6/795
_______________________________________________
E-puck-user mailing list
E-puck-user@gna.org
https://mail.gna.org/listinfo/e-puck-user
---
Questa e-mail è stata controllata per individuare virus con Avast antivirus.
https://www.avast.com/antivirus
_______________________________________________
E-puck-user mailing list
E-puck-user@gna.org
https://mail.gna.org/listinfo/e-puck-user