46 int main(
int argc,
char** argvPP)
48 ros::init(argc, argvPP,
"multisense_driver");
55 std::string sensor_ip;
56 std::string tf_prefix;
61 nh_private_.
param<std::string>(
"sensor_ip", sensor_ip,
"10.66.171.21");
62 nh_private_.
param<std::string>(
"tf_prefix", tf_prefix,
"multisense");
63 nh_private_.
param<
int>(
"sensor_mtu", sensor_mtu, 7200);
64 nh_private_.
param<
int>(
"head_id", head_id, -1);
91 ROS_ERROR(
"multisense_ros: failed to create communication channel to sensor @ \"%s\" with head ID %d",
92 sensor_ip.c_str(), rh_channel);
96 Status status = d->setMtu(sensor_mtu);
98 ROS_ERROR(
"multisense_ros: failed to set sensor MTU to %d: %s",
115 std::placeholders::_1, std::placeholders::_2),
117 std::placeholders::_1),
119 std::placeholders::_1),
121 std::placeholders::_1));
128 }
catch (
const std::exception& e) {
129 ROS_ERROR(
"multisense_ros: caught exception: %s", e.what());
void maxPointCloudRangeChanged(double range)
static CRL_CONSTEXPR RemoteHeadChannel Remote_Head_VPB
static const char * statusString(Status status)
static Channel * Create(const std::string &sensorAddress)
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
static CRL_CONSTEXPR RemoteHeadChannel Remote_Head_0
static CRL_CONSTEXPR RemoteHeadChannel Remote_Head_2
int16_t RemoteHeadChannel
void borderClipChanged(const BorderClip &borderClipType, double borderClipValue)
bool param(const std::string ¶m_name, T ¶m_val, const T &default_val) const
void updateConfig(const crl::multisense::image::Config &config)
void groundSurfaceSplineDrawParametersChanged(const ground_surface_utilities::SplineDrawParameters &spline_draw_params)
static CRL_CONSTEXPR Status Status_Ok
int main(int argc, char **argvPP)
void extrinsicsChanged(crl::multisense::system::ExternalCalibration extrinsics)
static CRL_CONSTEXPR RemoteHeadChannel Remote_Head_1
static void Destroy(Channel *instanceP)
static CRL_CONSTEXPR RemoteHeadChannel Remote_Head_3