berickson / sim_car

New version of my fake_car simulator targeting ROS 2
56 stars 13 forks source link

Issue in building the package car_gazebo_plugin. #6

Open Rak-r opened 1 year ago

Rak-r commented 1 year ago

I have followed the instructions and at the first time it worked but I am trying to inherit the car_gazebo_plugin to my robot for ackermann drive and I have removed the shock from all 4 wheels and commented out these from the plugin hpp and cpp files and trying to build the package but it is giving error: colcon build --symlink-install Starting >>> ackermann_msgs Starting >>> sim_car Finished <<< sim_car [0.18s]
Finished <<< ackermann_msgs [6.05s]
Starting >>> car_gazebo_plugin [Processing: car_gazebo_plugin]
--- stderr: car_gazebo_plugin
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:438 (message): The package name passed to find_package_handle_standard_args (PkgConfig) does not match the name of the calling package (gazebo). This can lead to problems in calling code that expects find_package result variables (e.g., _FOUND) to follow a certain pattern. Call Stack (most recent call first): /usr/share/cmake-3.22/Modules/FindPkgConfig.cmake:99 (find_package_handle_standard_args) /usr/lib/x86_64-linux-gnu/cmake/gazebo/gazebo-config.cmake:72 (include) CMakeLists.txt:14 (find_package) This warning is for project developers. Use -Wno-dev to suppress it.


Finished <<< car_gazebo_plugin [30.6s]

Summary: 3 packages finished [36.9s] 1 package had stderr output: car_gazebo_plugin

Rak-r commented 1 year ago

I also want to ask that the in the urdf you have used libgazebo_ros_control.so which is not available for ros2. It is gazebo-ros2_control plugin. So, how it is working? I tried to add the same and it is giving me the error: Failed to load plugin, no such file or directory. How I can use it?

berickson commented 1 year ago

I get the same warning, and haven't dug in to how to fix it, but so far it seems benign.

Rak-r commented 1 year ago

I get the same warning, and haven't dug in to how to fix it, but so far it seems benign.

What about the libgazebo_ros_control.so part?

berickson commented 1 year ago

It's probably unused and silently failing to load. I can try removing and see what effect that has.

Rak-r commented 1 year ago

oh! ok. I tried to add it and it gives error. I will probably do the same thing. Thanks for the response and it is great that you made ackermann support plugin. If you need any help in updations I can definately contribute.