7 #include "RbMovableItem.h"
10 #include "RbMotorizedJoint.h"
11 #include "RbHingeLimit.h"
13 #include "RbRigidBody.h"
15 #include "RbFirmataPart.h"
16 #include "RbFirmataDigitalOutput.h"
17 #include "RbFirmataController.h"
23 namespace RobotIOControls
32 RbFirmataDigitalOutput::RbFirmataDigitalOutput()
36 RbFirmataDigitalOutput::~RbFirmataDigitalOutput()
55 std::cout <<
"Turning pin " << m_iIOComponentID <<
" OFF." <<
"\r\n";
57 m_lpFirmata->sendDigital(m_iIOComponentID,
m_iIOValue);
64 RobotPartInterface::StepSimulation();
69 if(m_lpProperty &&
m_lpGain && m_lpFirmata)
virtual void StepSimulation()
Step the simulation for this object.
virtual bool InSimulation()
Used to determine if we are running in a simulation, or in a real control mode.
virtual void StepIO(int iPartIdx)
This method is used to send/recieve the actual IO. This will often be in a seperate thread than the S...
Simulator * m_lpSim
The pointer to a Simulation.
Declares the vortex structure class.
virtual void SetupIO()
This method is called after all connections to whatever control board have been made. It is meant to be used to setup connection information specific to this part. For example, We connect to a Firmata microcontroller like an Arduino, and then do a setup that could take some time. We should not attempt to setup any of the pins until after the board itself has been setup. After that we need to loop through and setup all the parts. That is what this method is for.
Declares the vortex hinge class.
Gain * m_lpGain
Pointer to the Gain that will be used to convert the source value into the target value...
int m_iIOValue
This stores the temporary IO value to be used later in IO calculations.
Classes for implementing the cm-labs vortex physics engine for AnimatLab.