coincar-sim / lanelet_rviz_plugin_ros

BSD 3-Clause "New" or "Revised" License
33 stars 11 forks source link

compiling error #2

Closed xiaozhi12345678 closed 5 years ago

xiaozhi12345678 commented 5 years ago

Hello,I have an issue with it,and I am looking forward for your reply.I catkin_make succeeded,but when I input command "roslaunch lanelet_rviz_plugin_ros sample_lanelet_viz.launch",the error occurs,"PluginlibFactory: The plugin for class 'lanelet_rviz_plugin_ros::LaneletMapPlugin' failed to load. Error: Failed to load library /.../catkin_ws/devel/lib//liblanelet_rviz_plugin_ros.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /.../catkin_ws/devel/lib//liblanelet_rviz_plugin_ros.so: undefined symbol: _ZTVN22lanelet2_interface_ros20Lanelet2InterfaceRosE)".Could you please tell me how to solve it, thank you!

m-naumann commented 5 years ago

Hi, I recommend the use of catkin build over the deprecated catkin_make, would you please try that, and if you encounter the same problem, try the full coincar-sim setup (only a few lines as explained here) to figure out potential problems with your ros setup?

Shelfcol commented 5 years ago

@xiaozhi12345678 Can you tell me how you catkin_make succeed? Could you please tell me the detailed proceduer?Thank you

m-naumann commented 5 years ago

In the travis build you can see line by line how catkin build works. The old catkin_make is deprecated, see catkin documentation.

xiaozhi12345678 commented 5 years ago

@Shelfcol when I catkin_make ,the error is about QT and eigen, it says couldn't find .h file or other file and I add some sentences such as"include_directories("/.../QT/qtcore")" to CMakeLists.txt to fix the errors.The author recommended source is very useful and don't come up the errors, so I also advice you use the coincar-sim setup to replace this.

xiaozhi12345678 commented 5 years ago

@m-naumann Hi, After I download the coincar-sim setup, catkin build succeeded.There are two issues I want to ask you.The first is I use my map(.osm) in launch file but rviz doesn't come up regulatory elements even if I enable the option for it.The second is how to combine route planning and rviz,for example ,I want to input start point and destination and I hope the car can run a route in rviz. I see in launch file you use trj.osm to guide the car,but I want it auto,how can I do it? Thank you!

m-naumann commented 5 years ago

Good that catkin build works.

The only thing you see about the regulatory element is it's reference line, currently. It is displayed in red. Feel free to fork the plugin and use your map in the sample launchfile, such that I can have a look.

For the second question: The linestring traj1.osm is only used for the initialization of the vehicle, afterwards they plan a trajectory along a random route using the lanelet2 map. If you want a specific route, you have to implement it yourself here.

If you have further questions about either of those topics, please open a new issue in the respective repository.