-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
40 lines (33 loc) · 1.19 KB
/
main.cpp
File metadata and controls
40 lines (33 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
* Author: luoqi
* Created Date: 2025-11-27 00:42:42
* Last Modified: 2025-12-12 15:52:52
* Modified By: luoqi at <**@****>
* Copyright (c) 2025 <*****>
* Description:
*/
#include "qshell/qshell.h"
#include "utils/autocrlf.hpp"
#include "utils/cmdmgr.hpp"
#include "robospace/robolink.hpp"
#include "xbot.h"
static QShell &cli = QShellObj::obj();
namespace rbs = robospace;
std::vector<rbs::RoboLink<double>> links = {
/* name, alpha(i-1), a(i-1), d, theta, offset, qlim, type */
{"L1", 0.0, 0.0, 100.0, 0.0, 0.0, {-360, 360}, rbs::JointType::REVOLUTE},
{"L2", 90.0, 0.0, 0.0, 0.0, 0.0, {-360, 360}, rbs::JointType::REVOLUTE},
{"L3", -90.0, 0.0, 300.0, 0.0, 0.0, {-360, 360}, rbs::JointType::REVOLUTE},
{"L4", 90.0, 0.0, 0.0, 0.0, 0.0, {-360, 360}, rbs::JointType::REVOLUTE},
{"L5", -90.0, 0.0, 250.0, 0.0, 0.0, {-360, 360}, rbs::JointType::REVOLUTE},
{"L6", 90.0, 0.0, 0.0, 0.0, 0.0, {-360, 360}, rbs::JointType::REVOLUTE},
{"L7", -90.0, 0.0, 150.0, 0.0, 0.0, {-360, 360}, rbs::JointType::REVOLUTE}
};
int main(int argc, char **argv)
{
StreamAutoCRLF auto_crlf;
CmdReg::init();
XBot7Inst::inst().init("xbot", links);
cli.exec();
return 0;
}