lucasw / o3de_ros_example

Simple example of using O3DE with ROS
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

basic ros1 o3de integration #3

Open lucasw opened 6 months ago

lucasw commented 6 months ago

Try converting a small subset of the ROS2 gem

find . -type f -name "*.*" -exec sed -i'' -e 's/ROS2/ROS1/g' {} +
find . -type f -name "*.*" -exec sed -i'' -e 's/ros2/ros1/g' {} +
for i in ROS2*; do git mv $i ${i/ROS2/ROS1}; done
lucasw commented 6 months ago

There are a bunch of lfs tracked files, so I can't push in a branch into my fork (without a cloudfront login)- how to remove them, add them as regular git files? They aren't that large.

https://stackoverflow.com/a/50569078/603653

No just do a git lfs uninstall and then can push branches up.

lucasw commented 6 months ago

Register the new ros1 gem (which is still ros2 underneath, but just trying out the ability to make a copied gem):

cd o3de-extras/Gems/ROS1
$O3DE/scripts/o3de.sh register --gem-path `pwd`
lucasw commented 6 months ago

Need to start renaming files within ROS1:

CMake Error at /home/lucasw/other/src/sim/o3de-extras/Gems/ROS2/Code/CMakeLists.txt:39 (add_custom_target):
  add_custom_target cannot create target "ROS2DistributionCheck" because
  another target with the same name already exists.  The existing target is a
  custom target created in source directory
  "/home/lucasw/other/src/sim/o3de-extras/Gems/ROS1/Code".  See documentation
  for policy CMP0002 for more details.