GithubHelp home page GithubHelp logo

Comments (5)

zymouse avatar zymouse commented on June 12, 2024 3

#85
Problem solved, test passed

from livox_ros_driver2.

KimHyung avatar KimHyung commented on June 12, 2024

1.IP settings
I used the Livoxviewer to set each lidar to have a different IP.

  • lidar1 : HAP, 192.168.1.100
  • lidar2 : HAP, 192.168.1.101
  • HostPC : 192.168.1.5

2.change config file
{
"lidar_summary_info" : {
"lidar_type": 8
},
"HAP": {
"lidar_net_info" : {
"cmd_data_port": 56000,
"push_msg_port": 0,
"point_data_port": 57000,
"imu_data_port": 58000,
"log_data_port": 59000
},
"host_net_info" : {
"cmd_data_ip" : "192.168.1.5",
"cmd_data_port": 56000,
"push_msg_ip": "",
"push_msg_port": 0,
"point_data_ip": "192.168.1.5",
"point_data_port": 57000,
"imu_data_ip" : "192.168.1.5",
"imu_data_port": 58000,
"log_data_ip" : "",
"log_data_port": 59000
}
},
"HAP": {
"lidar_net_info" : {
"cmd_data_port": 56000,
"push_msg_port": 0,
"point_data_port": 57000,
"imu_data_port": 58000,
"log_data_port": 59000
},
"host_net_info" : {
"cmd_data_ip" : "192.168.1.5",
"cmd_data_port": 56000,
"push_msg_ip": "",
"push_msg_port": 0,
"point_data_ip": "192.168.1.5",
"point_data_port": 57000,
"imu_data_ip" : "192.168.1.5",
"imu_data_port": 58000,
"log_data_ip" : "",
"log_data_port": 59000
}
},
"lidar_configs" : [
{
"ip" : "192.168.1.100",
"pcl_data_type" : 1,
"pattern_mode" : 0,
"extrinsic_parameter" : {
"roll": 0.0,
"pitch": 0.0,
"yaw": 0.0,
"x": 0,
"y": 0,
"z": 0
}
},
{
"ip" : "192.168.1.101",
"pcl_data_type" : 1,
"pattern_mode" : 0,
"extrinsic_parameter" : {
"roll": 0.0,
"pitch": 0.0,
"yaw": 0.0,
"x": 0,
"y": 0,
"z": 0
}
}
]
}

  1. changed the multi_topic parameter "1"

from livox_ros_driver2.

halejo-as avatar halejo-as commented on June 12, 2024

Thanks for answer.

The configuration you pointed was done, the problem is in the launch file, i would want to specify differents frames here.

I create two nodes to execute two drivers passing as parameters the respective file, but the result only show one point cloud in the topic.

from livox_ros_driver2.

JanRBoth avatar JanRBoth commented on June 12, 2024

I have the same problem with two HAP's.

I also start two nodes for the respective HAPs. Multi_topic parameter is set to 1, IP's are different, Config file was adjusted as described here.

However, it seems that the first starting node goes through the config file and publishes both listed there.

In fact, two topics or pointclouds are published for me as well. But both with the same frame_id, which is not wanted although in the start launch file different frame_id parameters are passed.

In the driver code it seems that the frame_id is set as parameter but for all created publishers, so the parameter is always overwritten. Actually the option multi_topic should distinguish between different frame_id's, like it is done with the names of the topics.

If someone has a solution or I am wrong I would be very grateful.

from livox_ros_driver2.

xiaoxueshengyao avatar xiaoxueshengyao commented on June 12, 2024

#85 Problem solved, test passed

Thanks for your work, it works for me.

from livox_ros_driver2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.