Closed BhooshanDeshpande closed 2 years ago
Sorry for the late reply!! I think it's the problem of ROS noetic. On my desktop (ROS Melodic), it still works fine. I think this is because the rosbag is from the ROS Melodic. :( Why don't you use offline Kitti mode?
I meet the same problem, but I use the ROS Melodic. Maybe the problem is caused by other things. Could you help?
I meet the same problem,too. I use the ROS Melodic.Could you help?
@XFFer @DavidsShi I think we have to create a new ros node which convert msg datatype from sensor_msgs/PointCloud2 to patchwork/node. Then, this issue will be solved.
@XFFer @DavidsShi I think we have to create a new ros node which convert msg datatype from sensor_msgs/PointCloud2 to patchwork/node. Then, this issue will be solved.
Thank you so much ,the problem has been solved~
Holy moly!!!! sorry for my late reply. I'm about to graduate in this year so I have no time haha....
Anyway, I'm terrible sorry for providing less-generalized examples. I think using pre-made rosbag is not helpful for generalization, and not intuitive as well.
:+1: So I extensively modify README.md and contents. So you can run by following instructions:
We also provide rosbag example. If you run our patchwork via rosbag, please refer to this example.
roslaunch patchwork run_patchwork.launch is_kitti:=true
Then you can see the below message:
Set the data_path
in launch/kitti_publisher.launch
for your machine, which is same with the aforementioned parameter in "Offline KITTI dataset" part.
Then, run ros player (please refer to nodes/ros_kitti_publisher.cpp
) by following command at another terminal window:
roslaunch patchwork kitti_publisher.launch
In short, I just added psuedo-publisher for compatibility.
:+1: And here's other revised example when you use your own ros bag file capture by your mobile robot:
#### Online (via your ROS bag file)
It is easy by re-using `run_patchwork.launch`.
1. Remap the topic of subscriber, i.g. modify remap line as follows:
Note that the type subscribed data is `sensor_msgs::PointCloud2`.
2. Next, launch the roslaunch file as follows:
roslaunch patchwork run_patchwork.launch is_kitti:=false
Note that `is_kitti=false` is important! Because it decides which rviz is opened. The rviz shows only estimated ground and non-ground because your own dataset may have no point-wise labels.
3. Then play your bag file!
rosbag play $YOUR_BAG_FILE_NAME$.bag
Anyway, thank you for your kind assistance @hwan0806 !!!!
May I close this issue? If there are any problem, please feel free to say to me
I am trying to run rosbag_kitti.launch on a rosbag which contains
sensor::PointCloud2
message. Using Ubuntu 20.04, ROS Noetic.On running rosbag, I am getting --
According to internet there is a mismatch in what the subscriber is asking for and what my rosbag is publishing. The same rosbag works well on
pub_for_legoloam.launch
. I compared the two files and found out the difference being line 150 inrosbag_kitti.cpp
:and line 90 on
pub_for_legloam.cpp
:That's what I think on a primary check. Can you help? You can try running any rosbag with PointCloud2 msgs and try running it with
rosbag_kitti.launch
. Could it be due to ROS Noetic??