YARP CiA-402 EtherCAT Device
0.6.0
YARP device plugin for EtherCAT CiA-402 drives
Loading...
Searching...
No Matches
main.cpp
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Fondazione Istituto Italiano di Tecnologia (IIT)
2
// SPDX-License-Identifier: BSD-3-Clause
3
4
#include <string>
5
6
#include <
CiA402/LogComponent.h
>
7
#include <
StoreHomePosition/StoreHomePosition.h
>
8
9
#include <yarp/os/LogStream.h>
10
#include <yarp/os/ResourceFinder.h>
11
12
int
main
(
int
argc,
char
** argv)
13
{
14
// prepare and configure the resource finder
15
yarp::os::ResourceFinder& rf = yarp::os::ResourceFinder::getResourceFinderSingleton();
16
rf.setDefaultConfigFile(
"yarp-cia420-store-home.ini"
);
17
rf.configure(argc, argv);
18
19
CiA402::StoreHome37
app;
20
const
bool
ok = app.
run
(rf);
21
if
(!ok)
22
{
23
yCError(CIA402,
"StoreHome37: FAILED"
);
24
return
1;
25
}
26
yCInfo(CIA402,
"StoreHome37: DONE"
);
27
return
0;
28
}
main
int main(int argc, char **argv)
Definition
main.cpp:12
LogComponent.h
StoreHomePosition.h
CiA402::StoreHome37
Calibration utility: home all CiA-402 drives on the bus and persist the result to flash.
Definition
StoreHomePosition.h:55
CiA402::StoreHome37::run
bool run(yarp::os::ResourceFinder &rf)
Run the full homing and persistence procedure on all slaves, then write encoder data.
Definition
StoreHomePosition.cpp:319
utils
StoreHomePosition
src
main.cpp
Generated by
1.13.2