35 int main(
int argc,
char *argv[])
37 ros::init(argc, argv,
"socketcan_bridge_node");
41 std::string can_device;
42 nh_param.
param<std::string>(
"can_device", can_device,
"can0");
46 if (!driver->init(can_device, 0))
48 ROS_FATAL(
"Failed to initialize can_device at %s", can_device.c_str());
53 ROS_INFO(
"Successfully connected to %s.", can_device.c_str());
58 to_socketcan_bridge.setup();
61 to_topic_bridge.
setup(nh_param);
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()