#include "ros/ros.h"
#include "std_msgs/String.h"
#include "sensor_msgs/JointState.h"
#include "pr2_controllers_msgs/JointTrajectoryControllerState.h"
#include "brics_actuator/JointVelocities.h"
#include "cob_srvs/Trigger.h"
#include "cob_srvs/SetOperationMode.h"
#include <iostream>
#include <map>
#include <boost/bind.hpp>
#include <boost/filesystem.hpp>
#include <canopen.h>
#include <XmlRpcValue.h>
Go to the source code of this file.
Classes | |
struct | BusParams |
Typedefs | |
typedef boost::function< void(const brics_actuator::JointVelocities &)> | JointVelocitiesType |
typedef boost::function< bool(cob_srvs::SetOperationMode::Request &, cob_srvs::SetOperationMode::Response &)> | SetOperationModeCallbackType |
typedef boost::function< bool(cob_srvs::Trigger::Request &, cob_srvs::Trigger::Response &)> | TriggerType |
Functions | |
bool | CANopenInit (cob_srvs::Trigger::Request &req, cob_srvs::Trigger::Response &res, std::string chainName) |
bool | CANopenRecover (cob_srvs::Trigger::Request &req, cob_srvs::Trigger::Response &res, std::string chainName) |
int | main (int argc, char **argv) |
void | readParamsFromParameterServer (ros::NodeHandle n) |
bool | setOperationModeCallback (cob_srvs::SetOperationMode::Request &req, cob_srvs::SetOperationMode::Response &res, std::string chainName) |
void | setVel (const brics_actuator::JointVelocities &msg, std::string chainName) |
Variables | |
std::map< std::string, BusParams > | buses |
std::string | deviceFile |
typedef boost::function< void(const brics_actuator::JointVelocities&)> JointVelocitiesType |
Definition at line 21 of file canopen_ros.cpp.
typedef boost::function< bool(cob_srvs::SetOperationMode::Request&, cob_srvs::SetOperationMode::Response&)> SetOperationModeCallbackType |
Definition at line 24 of file canopen_ros.cpp.
typedef boost::function< bool(cob_srvs::Trigger::Request&, cob_srvs::Trigger::Response&)> TriggerType |
Definition at line 19 of file canopen_ros.cpp.
bool CANopenInit | ( | cob_srvs::Trigger::Request & | req, |
cob_srvs::Trigger::Response & | res, | ||
std::string | chainName | ||
) |
Definition at line 34 of file canopen_ros.cpp.
bool CANopenRecover | ( | cob_srvs::Trigger::Request & | req, |
cob_srvs::Trigger::Response & | res, | ||
std::string | chainName | ||
) |
Definition at line 45 of file canopen_ros.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 124 of file canopen_ros.cpp.
void readParamsFromParameterServer | ( | ros::NodeHandle | n | ) |
Definition at line 72 of file canopen_ros.cpp.
bool setOperationModeCallback | ( | cob_srvs::SetOperationMode::Request & | req, |
cob_srvs::SetOperationMode::Response & | res, | ||
std::string | chainName | ||
) |
Definition at line 57 of file canopen_ros.cpp.
void setVel | ( | const brics_actuator::JointVelocities & | msg, |
std::string | chainName | ||
) |
Definition at line 63 of file canopen_ros.cpp.
Definition at line 30 of file canopen_ros.cpp.
std::string deviceFile |
Definition at line 32 of file canopen_ros.cpp.