36 int main(
int argc,
char *argv[])
38 ros::init(argc, argv,
"topic_to_socketcan_node");
42 std::string can_device;
43 nh_param.
param<std::string>(
"can_device", can_device,
"can0");
47 if (!driver->init(can_device, 0))
49 ROS_FATAL(
"Failed to initialize can_device at %s", can_device.c_str());
54 ROS_INFO(
"Successfully connected to %s.", can_device.c_str());
58 to_socketcan_bridge.setup();
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
bool param(const std::string ¶m_name, T ¶m_val, const T &default_val) const
int main(int argc, char *argv[])
ROSCPP_DECL void waitForShutdown()