Field-Robotics-Japan / UnitySensors

ROS/ROS2 enabled Sensor models (Assets) on Unity
Apache License 2.0
193 stars 29 forks source link

Error in ROS2 #32

Closed lidiaxp closed 9 months ago

lidiaxp commented 1 year ago

Hey, I am using your code in my research. The last update in the code add some features but created some errors to ROS2 simulations.

Screenshot from 2023-07-17 00-32-35

Autumn60 commented 12 months ago

https://github.com/Field-Robotics-Japan/UnitySensors/pull/36

Thanks for the issue report. Could you try this "hotfix ros2 header" or "develop" branch? I think it has been fixed.

lidiaxp commented 11 months ago

Actually I am using the package adding by the git url, is it possible to set the branch in this way?

lidiaxp commented 11 months ago

I replaced the code with the one in "hotfix ros2 header" and replace the uint for seconds to int. Now it is working. Thank you very much.

Autumn60 commented 11 months ago

Yes, you can download packages from a specific branch by appending "#{BRANCH_NAME}" to the URL.

Example: ・UnitySensors pkg from develop branch

https://github.com/Field-Robotics-Japan/UnitySensors.git?path=/Assets/UnitySensors#develop

・UnitySensorsROS pkg from develop branch

https://github.com/Field-Robotics-Japan/UnitySensors.git?path=/Assets/UnitySensorsROS#develop

If you've already downloaded this pkg from another branch, you don't need to remove old version.