Dynamixel
2.9.5
RoadNarrows Robotics Dynamixel Package
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
botsensetest.cxx
1
#include "
Dynamixel/Dynamixel.h
"
2
#include "
Dynamixel/DynaCommBotSense.h
"
3
#include "
Dynamixel/DynaChain.h
"
4
#include "botsense/libBotSense.h"
5
#include "botsense/BotSense.h"
6
7
int
main
()
8
{
9
BsClient_P bsClient;
10
DynaCommBotSense
* com;
11
com =
new
DynaCommBotSense
(
"/dev/ttyUSB0"
,1000000,
"localhost"
,9195);
12
//com = DynaComm::New("botsense://localhost:9195:/dev/ttyUSB0",1000000);
13
DynaChain
* chain;
14
15
bsClient = com->
GetProxyClient
();
16
printf(
"client: %s\n"
,bsClientAttrGetName(bsClient));
17
chain =
new
DynaChain
(*com);
18
19
20
//int rc = com->Open();
21
22
printf(
"chain size: %d\n"
,chain->
GetNumberInChain
());
23
chain->
AddNewServosByScan
();
24
printf(
"chain size: %d\n"
,chain->
GetNumberInChain
());
25
26
com->
Close
();
27
}
DynaChain.h
RoadNarrows Dynamixel Servo Chain Container Base Class Interface.
main
int main(int argc, char *argv[])
Example main.
Definition:
dynashell_main.cxx:291
DynaChain::GetNumberInChain
virtual uint_t GetNumberInChain() const
Get the number of servos currently in chain.
Definition:
DynaChain.h:140
DynaChain::AddNewServosByScan
virtual int AddNewServosByScan()
Scan and add all discovered and created servos to the Dynamixel chain.
Definition:
DynaChain.cxx:229
DynaCommBotSense::GetProxyClient
const BsClient_P GetProxyClient() const
Get this BotSense proxy client.
Definition:
DynaCommBotSense.h:142
DynaChain
Dynamixel Chain Container Base Class.
Definition:
DynaChain.h:75
DynaCommBotSense
BotSense IP Proxied Dynamixel Bus Communications Class.
Definition:
DynaCommBotSense.h:77
Dynamixel.h
RoadNarrows Dynamixel Top-Level Package Header File.
DynaCommBotSense::Close
virtual int Close()
Close serial communication to dynamixel bus and connection to BotSense proxy server.
Definition:
DynaCommBotSense.cxx:219
DynaCommBotSense.h
RoadNarrows Botsene IP Proxied Dynamixel Bus Communication Class Interface.
examples
botsensetest
botsensetest.cxx
Generated on Fri Aug 10 2018 13:55:26 for Dynamixel by
1.8.11
©2018 RoadNarrows LLC
www.roadnarrows.com