52 #ifndef _DYNA_COMM_BOTSENSE_H 53 #define _DYNA_COMM_BOTSENSE_H 55 #include "rnr/rnrconfig.h" 58 #include "botsense/BotSense.h" 59 #include "botsense/libBotSense.h" 99 const char *sBsProxyHostName = BSPROXY_URI_HOSTNAME_DFT,
100 int nBsProxyIPPort = BSPROXY_LISTEN_PORT_DFT);
168 virtual int Open(
const char *sSerialDevName,
int nBaudRate)
171 BSPROXY_LISTEN_PORT_DFT);
189 virtual int Open(
const char *sSerialDevName,
191 const char *sBsProxyHostName = BSPROXY_URI_HOSTNAME_DFT,
192 int nBsProxyIPPort = BSPROXY_LISTEN_PORT_DFT);
254 virtual int Read8(
int nServoId, uint_t uAddr, byte_t *pVal);
265 virtual int Write8(
int nServoId, uint_t uAddr, byte_t byVal);
276 virtual int Read16(
int nServoId, uint_t uAddr, ushort_t *pVal);
287 virtual int Write16(
int nServoId, uint_t uAddr, ushort_t uhVal);
311 virtual bool Ping(
int nServoId);
322 virtual int Reset(
int nServoId);
334 #endif // _DYNA_COMM_BOTSENSE_H RoadNarrows Dynamixel Bus Communications Abstract Base Class Interface.
virtual int Open(const char *sSerialDevName, int nBaudRate)
Open serial communication to dynamixel bus.
virtual int GetResourceId() const
Get System-unique resource identifier.
virtual int SetMsgTracing(bool bEnabled)
char * m_sSerialDevName
proxied serial device name
virtual int Read8(int nServoId, uint_t uAddr, byte_t *pVal)
Read an 8-bit value from Dynamixel servo control table.
const int GetProxyServerPort() const
Get the BotSense proxy server port.
virtual bool Ping(int nServoId)
Ping the servo.
BsClient_P m_pBsClient
BotSense client.
BsVConnHnd_T m_hndBsVConn
virtual connection to proxied device
virtual int SetBaudRate(int nNewBaudRate)
virtual ~DynaCommBotSense()
Destructor.
const BsClient_P GetProxyClient() const
Get this BotSense proxy client.
char * m_sBsProxyHostName
BotSense proxy server domain/IP address.
int m_nBsProxyIPPort
BotSense proxy server IP port number.
void(* HalfDuplexRxFunc_T)(void *pArg, size_t uNumTxBytes)
Half-duplex control receive function type.
virtual int Reset(int nServoId)
Reset a servo back to default values.
void(* HalfDuplexTxFunc_T)(void *pArg)
Half-duplex control transmit function type.
virtual int Open()
(Re)Open serial communication to dynamixel bus.
bool m_bBsTrace
do [not] trace messaging
const char * GetProxyServerHostName()
Get the BotSense proxy server host name.
virtual int Write8(int nServoId, uint_t uAddr, byte_t byVal)
Write an 8-bit value to Dynamixel servo control table.
DynaCommBotSense()
Default constructor.
BotSense IP Proxied Dynamixel Bus Communications Class.
RoadNarrows Dynamixel Top-Level Package Header File.
virtual int Close()
Close serial communication to dynamixel bus and connection to BotSense proxy server.
const char * GetSerialDeviceName()
Get the Dynamixel Bus serial device name.
virtual int SyncWrite(uint_t uAddr, uint_t uValSize, DynaSyncWriteTuple_T tuples[], uint_t uCount)
Synchronous Write 8/16-bit values to a list of Dynamixel servos.
virtual int Read16(int nServoId, uint_t uAddr, ushort_t *pVal)
Read a 16-bit value from Dynamixel servo control table.
virtual int SetHalfDuplexCtl(int nSignal, HalfDuplexTxFunc_T fnEnableTx=NULL, HalfDuplexRxFunc_T fnEnableRx=NULL)
virtual int Write16(int nServoId, uint_t uAddr, ushort_t uhVal)
Write a 16-bit value to Dynamixel servo control table.
RoadNarrows Dynamixel Library Error and Logging Routines.
Dynamixel Bus Communications Abstract Base Class.