bool GainClient::enablePositionForceControlGains(double transition_duration, bool wait_for_success) { sl_controller_msgs::CartesianGains position_gains; setOne(position_gains); sl_controller_msgs::CartesianGains force_gains; setOne(force_gains); return setArmPositionForceControlGains(position_gains, force_gains, transition_duration, wait_for_success); }
void PictureInfoBank::Impl::setRange(const std::string& preffix, const int first, const int last, const Point& data) { for( int i = first; i<=last; ++i) { setOne(preffix, i, data); } }
ba81NormalQuad::ba81NormalQuad(ba81NormalQuad &quad) : ig(quad.ig) { setOne(quad.One); layers.resize(quad.layers.size(), layer(this)); width = quad.width; gridSize = quad.gridSize; Qpoint = quad.Qpoint; hasBifactorStructure = quad.hasBifactorStructure; for (size_t lx=0; lx < quad.layers.size(); ++lx) { layers[lx].copyStructure(quad.layers[lx]); } }
//********************************************************************************************** //****************************** Операция возведения в степень *************************** PolynomN6& PolynomN6::Pow(PolynomN6 &a, Integer &n) { if(n.isNegative()) throw std::domain_error("Число n - отрицательное результат не определен"); _modulePolynom = a._modulePolynom; _module=a._module; PolynomN6 copy_a(a); Integer copy_n(n); setOne(); uint s = copy_n.getNumberBits(); for(uint i=0;i<s;i++) { Mul(*this, *this); if(copy_n.getBit(s-1-i)) Mul(*this, copy_a); } return *this; }
ba81NormalQuad::ba81NormalQuad(struct ifaGroup *_ig) : ig(*_ig) { setOne(1); layers.resize(1, layer(this)); }
void Communicator::makeSetOne() { SetOnePacket setOne(buffer); }
ba81NormalQuad::ba81NormalQuad() : quadGridSize(0), maxDims(-1), primaryDims(-1), numSpecific(-1), maxAbilities(-1) { setOne(1); }
bool GainClient::enableFingerForceControlGains(double transition_duration, bool wait_for_success) { arm_controller_msgs::FingerForceControlGains finger_gains; setOne(finger_gains); return setFingerForceControlGains(finger_gains, transition_duration, wait_for_success); }
static GraphType init(int argc, char *argv[], opts_t* opts) { int c; GraphType graphType = unknown; cmd = argv[0]; opterr = 0; while ((c = getopt(argc, argv, optList)) != -1) { switch (c) { case 'c': graphType = circle; if (setOne(optarg, opts)) errexit(c); break; case 'C': graphType = cylinder; if (setTwo(optarg, opts)) errexit(c); break; case 'M': graphType = mobius; if (setTwo(optarg, opts)) errexit(c); break; case 'd': opts->directed = 1; break; case 'G': opts->isPartial = 1; case 'g': graphType = grid; optarg = setFold (optarg, opts); if (setTwo(optarg, opts)) errexit(c); break; case 'h': graphType = hypercube; if (setOne(optarg, opts)) errexit(c); break; case 'k': graphType = complete; if (setOne(optarg, opts)) errexit(c); break; case 'b': graphType = completeb; if (setTwo(optarg, opts)) errexit(c); break; case 'B': graphType = ball; if (setTwo(optarg, opts)) errexit(c); break; case 'm': graphType = trimesh; if (setOne(optarg, opts)) errexit(c); break; case 'r': graphType = randomg; if (setTwo(optarg, opts)) errexit(c); break; case 'R': graphType = randomt; if (setOne(optarg, opts)) errexit(c); break; case 'n': opts->pfx = optarg; break; case 'N': opts->name = optarg; break; case 'o': opts->outfile = openFile(optarg, "w"); break; case 'p': graphType = path; if (setOne(optarg, opts)) errexit(c); break; case 'S': graphType = sierpinski; if (setOne(optarg, opts)) errexit(c); break; case 's': graphType = star; if (setOne(optarg, opts)) errexit(c); break; case 't': graphType = tree; if (setTwoOpt(optarg, opts, 2)) errexit(c); break; case 'T': graphType = torus; if (setTwoTwoOpt(optarg, opts, 0)) errexit(c); break; case 'i': if (readOne(optarg,&(opts->cnt))) errexit(c); break; case 'v': opts->Verbose = 1; break; case 'w': graphType = wheel; if (setOne(optarg, opts)) errexit(c); break; case '?': if (optopt == '?') usage(0); else fprintf(stderr, "Unrecognized flag \"-%c\" - ignored\n", optopt); break; } } argc -= optind; argv += optind; if (!opts->outfile) opts->outfile = stdout; if (graphType == unknown) { fprintf(stderr, "Graph type not set\n"); usage(1); } return graphType; }