![]() |
Dynamixel
2.9.5
RoadNarrows Robotics Dynamixel Package
|
RoadNarrows simple Dynamixel shell using the RoadNarrows Dynamixel library. More...
#include <sys/select.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <libgen.h>
#include <ctype.h>
#include <errno.h>
#include "rnr/rnrconfig.h"
#include "rnr/opts.h"
#include "rnr/log.h"
#include "Dynamixel/Dynamixel.h"
#include "version.h"
#include "dynashell.h"
#include "dynashell_cmd.h"
#include "dynashell_util.h"
Go to the source code of this file.
Functions | |
static void | MainInitArgs (DynaShell &shell, int argc, char *argv[]) |
Main command-line argument initialization. More... | |
static void | MainInit (DynaShell &shell, int argc, char *argv[]) |
Main initialization. More... | |
static void | MainFini (DynaShell &shell) |
Main clean-up on exiting. More... | |
int | main (int argc, char *argv[]) |
Example main. More... | |
Variables | |
static char * | Argv0 |
the command | |
static char * | OptsSerDevUri = NULL |
the serial device URI | |
static int | OptsBaudRate = 1000000 |
serial baudrate | |
static char * | OptsScript = NULL |
script file | |
static bool | OptsXTrace = false |
trace script | |
static bool | OptsSilent = false |
silence output | |
static OptsPgmInfo_T | AppPgmInfo |
Program information. More... | |
static OptsInfo_T | AppOptsInfo [] |
Command line options information. | |
RoadNarrows simple Dynamixel shell using the RoadNarrows Dynamixel library.
Definition in file dynashell_main.cxx.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Example main.
argc | Command-line argument count. |
argv | Command-line argument list. |
Definition at line 291 of file dynashell_main.cxx.
References DYNA_OK, MainFini(), MainInit(), and DynaShell::Run().
|
static |
Main clean-up on exiting.
shell | Dynamixel shell. |
Definition at line 278 of file dynashell_main.cxx.
Referenced by main().
|
static |
Main initialization.
shell | Dynamixel shell. |
argc | Command-line argument count. |
argv | Command-line argument list. |
Definition at line 252 of file dynashell_main.cxx.
References MainInitArgs(), DynaShell::PublishMap(), PublishShellCoreCommands(), PublishShellInterfaceCommands(), and PublishShellServoCommands().
Referenced by main().
|
static |
Main command-line argument initialization.
shell | Dynamixel shell. |
argc | Command-line argument count. |
argv | Command-line argument list. |
Definition at line 190 of file dynashell_main.cxx.
References AppOptsInfo, AppPgmInfo, Argv0, DynaShell::m_bIsInteractive, DynaShell::m_bSilent, DynaShell::m_bXTrace, DynaShell::m_pDynaBgThread, DynaShell::m_pDynaChain, DynaShell::m_pDynaComm, DynaComm::New(), OptsBaudRate, OptsScript, OptsSerDevUri, OptsSilent, OptsXTrace, PkgInfo, DynaBgThread::RegisterChainAgent(), and DynaShell::ScriptPush().
Referenced by MainInit().
|
static |
Program information.
Definition at line 86 of file dynashell_main.cxx.
Referenced by MainInitArgs().