IPG-Automotive-UK / Aslan-CarMaker

Integration of CarMaker with project ASLAN, open-source autonomous software for low-speed applications.
Apache License 2.0
26 stars 9 forks source link

SuspF.Spring: Unknown kind 'Hookean', version 0 #2

Closed ajay1606 closed 2 years ago

ajay1606 commented 2 years ago

Hello,

Thanks for sharing a very useful repository. I am trying to run a carmaker simulator and i have followed the instruction provided, but getting error like

        CarMaker ROS Node is disabled!
ERROR       SuspF.Spring: Unknown kind 'Hookean', version 0

Build Sucessful: image

Error Log: image

Any help is much appreciated.

CarMaker version 10.2.1 Ubuntu:18.04 ROS: Melodic

Carmaker installation confined by running sample examples and also example ROS project working fine.

Regards, Ajay

dmbarry86 commented 2 years ago

@ajay1606 are you able to share the vehicle info file you are using?

ajay1606 commented 2 years ago

@dmbarry Thanks much for your quick response.

Here is the vehicle information file that currently using https://github.com/IPG-Automotive-UK/Aslan-CarMaker/blob/melodic/Data/Vehicle/Demo_IPG_CompanyCar There are no modification made to above file.

After running command,./CMStart.sh

image

There is a popup screen that will open with the warning message Update project directory!

Before updating : image

After Updating: image

image

After launching command (CarMaker GUI/ Extras/CMRosIF/Launch & Start Application) image

Am i missing anything? Any suggestions please? Regards, Ajay

dmbarry86 commented 2 years ago

@ajay1606 I think the problem might be the vehicle info file you are using which was built for CM9. You can try opening the infofile in CM10 and then saving it which should make the required key changes.

infofile

If you compare this to the original file you should see the new suspension key has been added. To confirm the infofile is correct I would then recommend running a test run from the GUI with the default carmaker exe (not the custom Aslan exe). Once this is confirmed you can then switch to your custom Aslan exe and hopefully everything is ok.

dmbarry86 commented 2 years ago

Here is the vehicle information file that currently using https://github.com/IPG-Automotive-UK/Aslan-CarMaker/blob/melodic/Data/Vehicle/Demo_IPG_CompanyCar There are no modification made to above file.

@ajay1606 I should also point out that this branch is for CarMaker 9 as detailed in the readme on that branch. It sounds like you are using CarMaker 10 and thus you should just use the main branch, which has an example infofile intended for CarMaker 10.

ajay1606 commented 2 years ago

@dmbarry86 , Thank you so much for Kind and detailed response. Indeed it helped me lot to understand this project more. But still am unable to fix the issue. I have tried 2 options as you suggested.

  1. Open and Saving configuration file to update according to Carmaker10.2.1 After open saving configuration file, i see few changes to file. But after running command (Launch & Start Application) error message again appears.

And the same configuration file working well with default Carmaker exe with Test run without any issues.

        CarMaker ROS Node is disabled!
ERROR       SuspF.Spring: Unknown kind 'Hookean', version 0
  1. Building Main branch fails with following error. So i have tried to build with melodic branch. image

Could you please suggset me fix this error, so that i can continue on this.

Regards, Ajay

bogotm commented 2 years ago

Hello Ajay,

Which ROS version are you using? Also, I assume that /opt/ros/ros1 is a symbolic link that points to the desired ROS version directory as well.

sensor_msgs/Image.h is one of the header files for the standard Sensor Messages package in ROS1. If I remember correctly, some of these header files changed at a certain point of the ROS1 development, so I need to look inside the correct ROS1 version to see why it's not there.

http://wiki.ros.org/sensor_msgs

ajay1606 commented 2 years ago

@dmbarry86 & @bogotm Thanks so much for your inputs, now able to build the main branch without any issues. Also able to run TestRun project with Demo_IPG_Company_Car vehicle configuration.

@bogotm You are right, I missed the path to the symbolic link that points to ROS dir was an issue.

This is the sample result: image

But it seems, there are no simulation data topics published, rostopic list doesn't shows any topics published from simulator ! Am I missing something here !!

bogotm commented 2 years ago

Hello, It looks like the setup.bash is not found in the background Terminal.

Did you end up creating a symbolic link between ros1 and melodic? I would highly recommend that: cd /opt/ros sudo ln -sfn melodic ros1

ajay1606 commented 2 years ago

@bogotm, I have created a symbolic link as you suggested. But still, simulation data is not published, also there are no error messages!

image

bogotm commented 2 years ago

Hi Ajay,

It looks like Aslan itself hasn't properly started either. Can you let me know if the Aslan GUI has come up too?

Also, just to help diagnose this, could you let me know what's happening in the RQT Node Graph? Obviously I have a lot of topics and a few nodes on mine, but I'm curious to see what happens when you run this project.

This is most of what my Node Graph looks like when running this project:

image

ajay1606 commented 2 years ago

Hello @bogotm, Thanks for the kind inputs, really appreciate it.

And after a few workarounds, I realized that Initially, ASLAN GUI was not opened. But after changing python version 3.6 to 2.7 now it working. Right after Launch & Start Application from CarMake GUI, I can see ASLAN Gui. After that, i checked for rostopic list, And I can see the following topics;

Car maker and ASLAN GUI: image

Topic list: image

In the above topics, data published following topics, but that also only 0. (Not another than 0)

/sd_control
/sd_current_GPS
/sd_current_twist
/sd_imu_raw

Example rostopic echo /sd_imu_raw image

RQT Graph. image

After start of ASLAN: image

I really appreciate your assistance in understanding and fixing the following!

  1. How could we publish simulation data in rostopic ? Like (Lidar, GPS, and IMU)
  2. To publish simulation data in ROS, DO we need to run Aslan along with it? Currently, i am looking to run Carmaker and check simulation data publishing in rostopic !

Looking to listen from you! Thank you so much

Regards, Ajay

bogotm commented 2 years ago

Hello Ajay,

You don't need to run ASLAN alongside this project.

I can see that the CarMaker node is not in the graph, so it has not been started.

I would check if you have loaded the correct CarMaker executable in the "Application Configuration" window: https://github.com/IPG-Automotive-UK/Aslan-CarMaker#start-project

ajay1606 commented 2 years ago

@bogotom Thank you so much for your kind inputs so far, you are right I have loaded the wrong CarMaker executable.

image 1.Command (Executable): bin/CarMaker.linux64 After choosing right executable am able to get node graph in rqt_graph as follows: image

But strangely, the Vehicle doesn't move after clicking 'start'. image

  1. Command (Executable): /opt/ipg/carmaker/linux64-10.2.1/bin/CarMaker.linux64 In case of the above executable vehicle moving.

Could you please help me to fix this !

Regards, Ajay

bogotm commented 2 years ago

Hello Ajay, This project "works" without Aslan, but after all, it's a bridge to the Aslan autonomous driving stack. The vehicle will not move because it's expecting Aslan to send it vehicle controls, otherwise, the car receives no Gas, Brake, or Steering input.

ajay1606 commented 2 years ago

@bogotm, Well, I was trying to acquire data (bag) by running a vehicle in a sample scenario. Then using bag file, construct PCD map and try NDT algorithm test with ASLAN.

Later I would like to try in real time, by connecting ASLAN with CarMaker simulation.

Any suggestion? to test ASLAN algorithm ?

regards, Ajay

dmbarry86 commented 2 years ago

@ajay1606 I am closing off this issue now as it has moved quite far away from the original topic. Feel free to continue the discussion but I will close the issue. Your further questions may be more appropriate in the discussion section rather than here in issues. https://github.com/IPG-Automotive-UK/Aslan-CarMaker/discussions/categories/q-a