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
8
9#include <yarp/os/LogStream.h>
10#include <yarp/os/ResourceFinder.h>
11
12int 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
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}
int main(int argc, char **argv)
Definition main.cpp:12
Calibration utility: home all CiA-402 drives on the bus and persist the result to flash.
bool run(yarp::os::ResourceFinder &rf)
Run the full homing and persistence procedure on all slaves, then write encoder data.