#include <multicar_hydraulic_core.h>
Public Member Functions | |
void | callbackCanMessageRaw (const tinycan::CanMsg::ConstPtr &msg) |
Callback for can messages. | |
void | callbackRobotTrajectory (const sensor_msgs::JointState::ConstPtr &msg) |
Callback for moveit robot trajectory. | |
int | checkTask () |
Handle hydraulic movement tasks. | |
void | cmdToCanMessage (std::string cmd, int val) |
Build CAN Message from commando. | |
Hydraulic () | |
The constructor. | |
int | init () |
Init. | |
void | publishCanMessage (tinycan::CanMsg *msg) |
Publish can message. | |
void | publishJointStateMessage (int nid, uint32_t pos, uint16_t velo) |
Publisher JointState Message. | |
void | setCanMsgPublisher (ros::Publisher *p) |
Setter for CAN Message publisher. | |
void | setJointStatePublisher (ros::Publisher *p) |
Setter for JointState publisher. | |
void | setPWM (uint8_t nid, uint16_t pwm) |
Set PWM signal for selected node. | |
~Hydraulic () | |
The destructor. | |
Private Attributes | |
Ausleger | ausleger [5] |
ros::Publisher * | cpub |
uint8_t | hydraulic_states [3][8] |
bool | is_man_ctr |
bool | is_man_ctr_act |
ros::Publisher * | jspub |
Definition at line 79 of file multicar_hydraulic_core.h.
The constructor.
Definition at line 30 of file multicar_hydraulic_core.cpp.
The destructor.
Definition at line 35 of file multicar_hydraulic_core.cpp.
void hydraulic::Hydraulic::callbackCanMessageRaw | ( | const tinycan::CanMsg::ConstPtr & | msg | ) |
Callback for can messages.
Definition at line 299 of file multicar_hydraulic_core.cpp.
void hydraulic::Hydraulic::callbackRobotTrajectory | ( | const sensor_msgs::JointState::ConstPtr & | msg | ) |
Callback for moveit robot trajectory.
Definition at line 165 of file multicar_hydraulic_core.cpp.
int hydraulic::Hydraulic::checkTask | ( | ) |
Handle hydraulic movement tasks.
Definition at line 731 of file multicar_hydraulic_core.cpp.
void hydraulic::Hydraulic::cmdToCanMessage | ( | std::string | cmd, |
int | val = 0 |
||
) |
Build CAN Message from commando.
Definition at line 425 of file multicar_hydraulic_core.cpp.
int hydraulic::Hydraulic::init | ( | ) |
Init.
Definition at line 40 of file multicar_hydraulic_core.cpp.
void hydraulic::Hydraulic::publishCanMessage | ( | tinycan::CanMsg * | msg | ) |
Publish can message.
Definition at line 71 of file multicar_hydraulic_core.cpp.
void hydraulic::Hydraulic::publishJointStateMessage | ( | int | nid, |
uint32_t | pos, | ||
uint16_t | velo | ||
) |
Publisher JointState Message.
Definition at line 82 of file multicar_hydraulic_core.cpp.
void hydraulic::Hydraulic::setCanMsgPublisher | ( | ros::Publisher * | p | ) | [inline] |
Setter for CAN Message publisher.
Definition at line 99 of file multicar_hydraulic_core.h.
void hydraulic::Hydraulic::setJointStatePublisher | ( | ros::Publisher * | p | ) | [inline] |
Setter for JointState publisher.
Definition at line 101 of file multicar_hydraulic_core.h.
void hydraulic::Hydraulic::setPWM | ( | uint8_t | nid, |
uint16_t | pwm | ||
) |
Set PWM signal for selected node.
Definition at line 470 of file multicar_hydraulic_core.cpp.
Ausleger hydraulic::Hydraulic::ausleger[5] [private] |
Definition at line 107 of file multicar_hydraulic_core.h.
ros::Publisher* hydraulic::Hydraulic::cpub [private] |
Definition at line 109 of file multicar_hydraulic_core.h.
uint8_t hydraulic::Hydraulic::hydraulic_states[3][8] [private] |
Definition at line 108 of file multicar_hydraulic_core.h.
bool hydraulic::Hydraulic::is_man_ctr [private] |
Definition at line 111 of file multicar_hydraulic_core.h.
bool hydraulic::Hydraulic::is_man_ctr_act [private] |
Definition at line 112 of file multicar_hydraulic_core.h.
ros::Publisher* hydraulic::Hydraulic::jspub [private] |
Definition at line 110 of file multicar_hydraulic_core.h.