doosan-robotics / doosan-robot2

ROS 2 for Doosan Robot
BSD 3-Clause "New" or "Revised" License
71 stars 49 forks source link

ros2 package is giving error running it in a docker #100

Open marknabil opened 1 week ago

marknabil commented 1 week ago

running the humble controller inside a docker gives the following error

[spawner-4] [dsr01.spawner_dsr_controller2] [INFO///1728055365.812337257]: waiting for service /dsr01/controller_manager/list_controllers to become available... 
[spawner-5] [dsr01.spawner_joint_state_broadcaster] [WARN///1728055375.812943693]: Could not contact service /dsr01/controller_manager/list_controllers 
[spawner-5] [dsr01.spawner_joint_state_broadcaster] [INFO///1728055375.813240183]: waiting for service /dsr01/controller_manager/list_controllers to become available... 
[spawner-4] [dsr01.spawner_dsr_controller2] [WARN///1728055375.826364686]: Could not contact service /dsr01/controller_manager/list_controllers 

I check if the docker of emulator is created or not, and I find it created successfully.

SakethTecholution commented 1 week ago

@marknabil I am not how ur running the container . I would recommend this method , it worked for me

  1. git clone repo in src and open doossanrobot2 folder 2, open the folder in vs code
  2. ctrl+shift+p --> type rebuild and reopen in container( this will work once u has docker extension)
  3. now the best part is your inside container and you can add your code inside container . Also doosan dockerfile is attaached as volume so you can create your files too inside . I think this method might resolve some issue while building docker container . if its not an issue of container check internet and maek sure u permit permmsion for docker in docker then only emulator will run . let me know if anything helped