Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

visualize .npy file to ROS Rviz && C++ Spherical Projection ROS Package added (180828) #7

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

gyubeomim
Copy link

@gyubeomim gyubeomim commented Apr 11, 2018

I've added .npy file visualizer for ROS Rviz.

It isn't perfect but It's useful when you check your evaluate files.

It's using .npy file then you need to have

  1. lidar_2d folder's .npy file
  2. eval.sh's pred_~~~.npy file (you need to modify eval.py codes to make this files)
    2.1 after running eval.sh, It doesn't create pred_~~~.npy file but you can create pred_~~~.npy file by adding np.save() code after pred_cls = ~~ code parts.

for more details, see README.md

@gyubeomim
Copy link
Author

  • result looks like this

peek 2018-04-11 00-52

@gyubeomim
Copy link
Author

gyubeomim commented May 16, 2018

+) 180516
.npy & squeezeseg & ROS publish code added.

It means you don't have to make pred_~~~.npy files and just using .npy file to predict classes.
code is running like this
1. read all .npy file from lidar_2d folder
2. predict label from SqueezeSeg model using tensorflow
3. publish to sqeeuze_seg/points topic

run command is
$ roslaunch kitti_velodyne_to_ros npy_tensorflow_to_ros.launch
but you have to modify parameters in .launch before running command

@gyubeomim gyubeomim changed the title visualize .npy file to ROS Rviz visualize .npy file to ROS Rviz && C++ Preprocessing ROS Package Aug 28, 2018
@gyubeomim
Copy link
Author

+) 180828

/velodyne_points to [512, 64] c++ conversion ROS package added.

  1. move from squeezeseg_cpp_preprocessing folder to your ROS workspace
  2. open script/online.py and modify checkpoint path to your system
  3. open script/segment_node.py and modify sys.path.append path as well
  4. run catkin_make
  5. run roslaunch squeezeseg_cpp_preprocessing ss_cpp_preprocessing.launch
  6. open RViz and check squeeze_seg/points topic whether publishing correctly or not.

this codes STRONGLY inspired from https://github.com/durant35/SqueezeSeg

Result

  • you can use any .bag file which have velodyne points NOW.
  • because of C++ Conversion, Hz is almost TWICE faster than python code. (7 --> 12 Hz)
    180828_squeezeseg_cpp

@gyubeomim gyubeomim changed the title visualize .npy file to ROS Rviz && C++ Preprocessing ROS Package visualize .npy file to ROS Rviz && C++ Preprocessing ROS Package added (180828) Aug 28, 2018
@gyubeomim gyubeomim changed the title visualize .npy file to ROS Rviz && C++ Preprocessing ROS Package added (180828) visualize .npy file to ROS Rviz && C++ Spherical Projection ROS Package added (180828) Aug 28, 2018
@MoonWolf9067
Copy link

@tigerk0430 Hi! Thank you very much for sharing! When I run the command:
roslaunch squeezeseg_cpp_preprocessing ss_cpp_preprocessing.launch
I have encountered the following problem, it stopped running.
3

@gyubeomim
Copy link
Author

Hello @MoonWolf9067 ,

I think you typed correct command.
open another terminal and type rqt .
If it's working correctly, It's waiting for data from velodyne_points topic

@MoonWolf9067
Copy link

Thank you very much for your reply! I open another terminal and type rqt, but it does not work.
Can you run the command successfully? I am looking forward to your reply.

@gyubeomim
Copy link
Author

@MoonWolf9067

You're welcome, I'll be very busy by Thursday afternoon due to the conference presentation.
after that, I'll answer your question with more detail.

Thank you!

@MoonWolf9067
Copy link

I am very happy to receive your reply, thank you very much.

@gyubeomim
Copy link
Author

hello @MoonWolf9067

I tried squeezeseg_cpp_preprocessing ROS Package and run it.
and result looks like this without any error
01
and this is rqt node graph
02

the ROS Package works fine. then your machine has something imcompatible program which need to be fixed.
I think this is because libuuid.so.1 issue but I'm not sure. take a look below link
conda-forge/libuuid-feedstock#15
googling error sentence and fix it first.

Thank you!

@MoonWolf9067
Copy link

Thank you very much!I found out that I have a problem with the ros I installed.

@lxa199709
Copy link

hi,thank you very much for your sharing ,but when i run roslaunch squeezeseg_cpp_preprocessing ss_cpp_preprocessing.launch,i get an error like this ,can you help me to solve this problem? i will appreciate it very much
/home/lxa/图片/2020-02-08 13-16-52屏幕截图.png

@gyubeomim
Copy link
Author

@lxa199709

I haven't maintained this PR for several months, so I'm not sure I can deal with your prob.

by the way, your figure doesn't show correctly. I couldn't see anything. could you upload the figure agian?

@seanxu889
Copy link

Hello, I have a problem:
After I run the "rqt" I got nothing, it is blank. Do you know any possible reason?
I have already run the "roslaunch squeezeseg_cpp_preprocessing ss_cpp_preprocessing.launch" and play the rosbag data.

@seanxu889
Copy link

@MoonWolf9067 Hello, I got the exact same error as yours. I got nothing after running rqt. May I ask how do you solve the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants