#include <ros/ros.h>
#include <actionlib/client/simple_action_client.h>
#include <iostream>
#include <boost/algorithm/string.hpp>
#include <boost/foreach.hpp>
#include <boost/thread.hpp>
#include "bcap_core/dn_common.h"
#include <std_msgs/Int32.h>
#include <std_msgs/Float32.h>
#include <std_msgs/Float64.h>
#include <std_msgs/String.h>
#include <std_msgs/Bool.h>
#include <std_msgs/Float32MultiArray.h>
#include <std_msgs/Float64MultiArray.h>
#include "denso_robot_core/Joints.h"
#include "denso_robot_core/ExJoints.h"
#include "denso_robot_core/PoseData.h"
#include "denso_robot_core/MoveStringAction.h"
#include "denso_robot_core/MoveValueAction.h"
#include "denso_robot_core/DriveStringAction.h"
#include "denso_robot_core/DriveValueAction.h"
Go to the source code of this file.
Macros | |
#define | DEFAULT_TIMEOUT (0.0) |
#define | MESSAGE_QUEUE (100) |
Enumerations | |
enum | { WRITE_VARIABLE = 1, WRITE_ID, ARM_GROUP, MOVE_STRING, MOVE_VALUE, DRIVE_STRING, DRIVE_VALUE, SPEED, CHANGE_TOOLWORK } |
Functions | |
void | Callback_DriveStringFeedback (const DriveStringActionFeedbackConstPtr &msg) |
void | Callback_DriveValueFeedback (const DriveValueActionFeedbackConstPtr &msg) |
void | Callback_MoveStringFeedback (const MoveStringActionFeedbackConstPtr &msg) |
void | Callback_MoveValueFeedback (const MoveValueActionFeedbackConstPtr &msg) |
void | Connected (const ros::SingleSubscriberPublisher &pub) |
void | DriveString (const std::string &name, float timeout) |
void | DriveValue (const std::string &name, float timeout) |
int | main (int argc, char **argv) |
void | MoveString (const std::string &name, float timeout) |
void | MoveValue (const std::string &name, float timeout) |
void | PrintFeedback (const std::vector< double > &pose) |
void | PrintThread () |
void | ReadLine (std::string &str, std::string erase="") |
void | WaitForConnect () |
void | WriteFloat32 (const std::string &name) |
void | WriteInt32 (const std::string &name) |
void | WriteVariable (const std::string &name) |
Variables | |
volatile bool | bConn |
volatile bool | bPrint |
#define DEFAULT_TIMEOUT (0.0) |
Definition at line 57 of file denso_robot_core_test.cpp.
#define MESSAGE_QUEUE (100) |
Definition at line 56 of file denso_robot_core_test.cpp.
anonymous enum |
Enumerator | |
---|---|
WRITE_VARIABLE | |
WRITE_ID | |
ARM_GROUP | |
MOVE_STRING | |
MOVE_VALUE | |
DRIVE_STRING | |
DRIVE_VALUE | |
SPEED | |
CHANGE_TOOLWORK |
Definition at line 59 of file denso_robot_core_test.cpp.
void Callback_DriveStringFeedback | ( | const DriveStringActionFeedbackConstPtr & | msg | ) |
Definition at line 350 of file denso_robot_core_test.cpp.
void Callback_DriveValueFeedback | ( | const DriveValueActionFeedbackConstPtr & | msg | ) |
Definition at line 394 of file denso_robot_core_test.cpp.
void Callback_MoveStringFeedback | ( | const MoveStringActionFeedbackConstPtr & | msg | ) |
Definition at line 233 of file denso_robot_core_test.cpp.
void Callback_MoveValueFeedback | ( | const MoveValueActionFeedbackConstPtr & | msg | ) |
Definition at line 279 of file denso_robot_core_test.cpp.
void Connected | ( | const ros::SingleSubscriberPublisher & | pub | ) |
Definition at line 73 of file denso_robot_core_test.cpp.
void DriveString | ( | const std::string & | name, |
float | timeout | ||
) |
Definition at line 355 of file denso_robot_core_test.cpp.
void DriveValue | ( | const std::string & | name, |
float | timeout | ||
) |
Definition at line 399 of file denso_robot_core_test.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 451 of file denso_robot_core_test.cpp.
void MoveString | ( | const std::string & | name, |
float | timeout | ||
) |
Definition at line 238 of file denso_robot_core_test.cpp.
void MoveValue | ( | const std::string & | name, |
float | timeout | ||
) |
Definition at line 284 of file denso_robot_core_test.cpp.
void PrintFeedback | ( | const std::vector< double > & | pose | ) |
Definition at line 88 of file denso_robot_core_test.cpp.
void PrintThread | ( | ) |
Definition at line 102 of file denso_robot_core_test.cpp.
void ReadLine | ( | std::string & | str, |
std::string | erase = "" |
||
) |
Definition at line 110 of file denso_robot_core_test.cpp.
void WaitForConnect | ( | ) |
Definition at line 78 of file denso_robot_core_test.cpp.
void WriteFloat32 | ( | const std::string & | name | ) |
Definition at line 218 of file denso_robot_core_test.cpp.
void WriteInt32 | ( | const std::string & | name | ) |
Definition at line 203 of file denso_robot_core_test.cpp.
void WriteVariable | ( | const std::string & | name | ) |
Definition at line 125 of file denso_robot_core_test.cpp.
volatile bool bConn |
Definition at line 71 of file denso_robot_core_test.cpp.
volatile bool bPrint |
Definition at line 86 of file denso_robot_core_test.cpp.