ric_interface_node.cpp
Go to the documentation of this file.
1 #include <ros/ros.h>
2 
4 
6 
7 int main(int argc, char **argv)
8 {
9  ros::init(argc, argv, "ric_interface_node");
10  ros::NodeHandle nh;
11 
12  bm.connect("/dev/armadillo2/RICBOARD");
13 
14  ros::Time prev_time = ros::Time::now();
15  while (ros::ok())
16  {
17  bm.loop();
18  if (ros::Time::now() - prev_time >= ros::Duration(0.1))
19  {
20  //fprintf(stderr, "here\n");
22  actu_pkg.cmd =2000;
24  prev_time = ros::Time::now();
25  }
27  }
28 }
29 
30 
31 
32 
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
void connect(std::string port)
ric_interface::RicInterface bm
ROSCPP_DECL bool ok()
int main(int argc, char **argv)
static Time now()
void writeCmd(const protocol::actuator &actu_pkg, size_t size, protocol::Type type)
ROSCPP_DECL void spinOnce()


ric_interface
Author(s):
autogenerated on Wed Jan 3 2018 03:48:20