/*
 * Copyright 2016 Intermodalics All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package eu.intermodalics.tangoxros;

public class PublisherConfiguration {
    // Camera bitfield values.
    public static final int CAMERA_NONE = 0;
    public static final int CAMERA_FISHEYE = 1 << 1;
    public static final int CAMERA_COLOR = 1 << 2;

    // True if pose needs to be published.
    public boolean publishDevicePose = false;
    // True if point cloud needs to be published.
    public boolean publishPointCloud = false;
    // Flag corresponding to which cameras need to be published.
    public int publishCamera = CAMERA_NONE;

    @Override
    public String toString() {
        return "Publisher configuration:\npublish device pose = " +  publishDevicePose +
                "\npublsih point cloud = " + publishPointCloud + "\npublish camera = " +
                publishCamera;
    }
}
/*
 * Copyright 2016 Intermodalics All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package eu.intermodalics.tangoxros;

public class PublisherConfiguration {
    // Camera bitfield values.
    public static final int CAMERA_NONE = 0;
    public static final int CAMERA_FISHEYE = 1 << 1;
    public static final int CAMERA_COLOR = 1 << 2;

    // True if pose needs to be published.
    public boolean publishDevicePose = false;
    // True if point cloud needs to be published.
    public boolean publishPointCloud = false;
    // Flag corresponding to which cameras need to be published.
    public int publishCamera = CAMERA_NONE;

    @Override
    public String toString() {
        return "Publisher configuration:\npublish device pose = " +  publishDevicePose +
                "\npublish point cloud = " + publishPointCloud + "\npublish camera = " +
                publishCamera;
    }
}
Correct typo in PublisherConfiguration