Main Page
Namespaces
Classes
Files
File List
File Members
src
caster_base_socketcan_node.cpp
Go to the documentation of this file.
1
#include "
caster_base/caster_hardware_socketcan.h
"
2
3
int
main
(
int
argc,
char
*argv[]) {
4
ros::init
(argc, argv,
"caster_base_node"
);
5
6
ros::AsyncSpinner
spinner
(3);
7
8
ros::NodeHandle
nh, private_nh(
"~"
);
9
std::string node_name =
ros::this_node::getName
();
10
11
iqr::CasterHardware
caster;
12
caster.
Initialize
(node_name, nh, private_nh);
13
// controller_manager::ControllerManager caster_controller_manager(&caster, nh);
14
15
// ros::Duration period(0.1);
16
17
// while(ros::ok()) {
18
19
// // ros::spinOnce();
20
// period.sleep();
21
// }
22
23
24
spinner.
start
();
25
ros::waitForShutdown
();
26
return
0;
27
}
ros::NodeHandle
iqr::CasterHardware::Initialize
void Initialize(std::string node_name, ros::NodeHandle &nh, ros::NodeHandle &private_nh)
Definition:
caster_hardware_socketcan.cpp:50
ros::init
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
ros::this_node::getName
ROSCPP_DECL const std::string & getName()
main
int main(int argc, char *argv[])
Definition:
caster_base_socketcan_node.cpp:3
spinner
void spinner()
ros::AsyncSpinner::start
void start()
caster_hardware_socketcan.h
iqr::CasterHardware
Definition:
caster_hardware_socketcan.h:35
ros::waitForShutdown
ROSCPP_DECL void waitForShutdown()
ros::AsyncSpinner
caster_base
Author(s): Ye Tian
autogenerated on Wed Dec 18 2019 03:34:39