by javi » Sun May 08, 2005 2:58 am
by javi
Sun May 08, 2005 2:58 am
Thanks to the OCX provided by iñaki, I've updated the simulator to
talk to the RCB. You can download the new (VERY BETA) simulator from
here.
USE IT AT YOUR OWN RISK! YOU CAN DAMAGE THE ROBOT OR HURT YOURSELF.
You also need
iñaki's library, and have to register the ocx (with
regsvr32) for the simulator to work. The use of the connection with the
RCB is currently very simple:
To connect to the RCB click the "Open" button. The RCB has to be
connected to COM1 (will be fixed in a future version, if you need to change
it edit the file RCB.VBS and change line 9,const Port=1, to the port number
you need).
The "Test connection" button gets the Id of the RCB. It's used
only to check the communication with the RCB.
The "Synchronize" check box toggles synching the simulator positions
with the robot positions. When checked, any change in the simulator is
sent to the RCB (also when replaying movements)
The "Sync" button synchronizes the robot with the simulator position,
regardless of the "Synchronize" check box value.
The "Read motors" button synchronizes the simulator with the robot
position.
The "Home Pos" button reads the home position of the robot and synchronizes
it in the simulator.
As a beta, there are still some issues:
- Sometimes the ocx hangs the explorer window when talking to
the RCB for the first time. Just close the explorer and load it again.
(iñaki could you take a look at it?, it also happens using the
vbs example that's in the docs)
- There is no direct match between robot position and simulator position
(the robot position is adjusted to match the simulator, although it works,
it has to be checked more carefully)
- When you position a servo out of range, the simulator warns you,
but you can choose to ignore it, USE IT AT YOUR OWN RISK!
- When in sync mode, due to the delay in sending each position,
the forces acting on the KHR1 robot surely will be different than
if the movement was done as a pre-recorded scenario, so probably the
robot will fall down when moving the legs or feet more than a few degrees.
- Right now it's not possible to record the movements as motions
or scenarios directly from the simulator. Save the movement file and
use Hearttoheart software to download it to the RCB.
Future improvements (no deadline, but will be done when I have time):
- Get the COM port from a text box
- Add a "teaching" mode
- Manage motions in the RCB
- Manage scenarios in the RCB
Thanks to the OCX provided by iñaki, I've updated the simulator to
talk to the RCB. You can download the new (VERY BETA) simulator from
here.
USE IT AT YOUR OWN RISK! YOU CAN DAMAGE THE ROBOT OR HURT YOURSELF.
You also need
iñaki's library, and have to register the ocx (with
regsvr32) for the simulator to work. The use of the connection with the
RCB is currently very simple:
To connect to the RCB click the "Open" button. The RCB has to be
connected to COM1 (will be fixed in a future version, if you need to change
it edit the file RCB.VBS and change line 9,const Port=1, to the port number
you need).
The "Test connection" button gets the Id of the RCB. It's used
only to check the communication with the RCB.
The "Synchronize" check box toggles synching the simulator positions
with the robot positions. When checked, any change in the simulator is
sent to the RCB (also when replaying movements)
The "Sync" button synchronizes the robot with the simulator position,
regardless of the "Synchronize" check box value.
The "Read motors" button synchronizes the simulator with the robot
position.
The "Home Pos" button reads the home position of the robot and synchronizes
it in the simulator.
As a beta, there are still some issues:
- Sometimes the ocx hangs the explorer window when talking to
the RCB for the first time. Just close the explorer and load it again.
(iñaki could you take a look at it?, it also happens using the
vbs example that's in the docs)
- There is no direct match between robot position and simulator position
(the robot position is adjusted to match the simulator, although it works,
it has to be checked more carefully)
- When you position a servo out of range, the simulator warns you,
but you can choose to ignore it, USE IT AT YOUR OWN RISK!
- When in sync mode, due to the delay in sending each position,
the forces acting on the KHR1 robot surely will be different than
if the movement was done as a pre-recorded scenario, so probably the
robot will fall down when moving the legs or feet more than a few degrees.
- Right now it's not possible to record the movements as motions
or scenarios directly from the simulator. Save the movement file and
use Hearttoheart software to download it to the RCB.
Future improvements (no deadline, but will be done when I have time):
- Get the COM port from a text box
- Add a "teaching" mode
- Manage motions in the RCB
- Manage scenarios in the RCB