Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question]: Gazebo simulation error #82

Open
ajinkyamar opened this issue Jan 22, 2025 · 24 comments
Open

[Question]: Gazebo simulation error #82

ajinkyamar opened this issue Jan 22, 2025 · 24 comments
Labels
question Further information is requested rovers Issues related to rovers

Comments

@ajinkyamar
Copy link

Question

Hi,
When I launch gazebo simulation command, following error shows up. An Empty Gazebo simulation(with trosenrobtics office setup -walls) and rviz opens up. Why is it so? below is lg of commands.

locobot@locobot:~/interbotix_ws$ ros2 launch interbotix_xslocobot_sim xslocobot_gz_classic.launch.py robot_model:=locobot_wx250s robot_description:=gz_classic
[INFO] [launch]: All log files can be found below /home/locobot/.ros/log/2025-01-22-06-43-47-988020-locobot-22853
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [gzserver-1]: process started with pid [22862]
[INFO] [gzclient -2]: process started with pid [22864]
[INFO] [spawn_entity.py-3]: process started with pid [22867]
[INFO] [robot_state_publisher-4]: process started with pid [22870]
[INFO] [rviz2-5]: process started with pid [22872]
[ERROR] [robot_state_publisher-4]: process has died [pid 22870, exit code -6, cmd '/opt/ros/galactic/lib/robot_state_publisher/robot_state_publisher --ros-args -r __ns:=/locobot --params-file /tmp/launch_params_tzb47c5k'].

Robot Model

locobot 250s

Operating System

Ubuntu 20.04

ROS Version

ROS 2 Galactic

Additional Info

No response

@ajinkyamar ajinkyamar added question Further information is requested rovers Issues related to rovers labels Jan 22, 2025
@ajinkyamar
Copy link
Author

locobot@locobot:~/interbotix_ws/src/interbotix_ros_rovers/interbotix_ros_xslocobots/interbotix_xslocobot_sim/launch$ ros2 launch xslocobot_gz_classic.launch.py robot_model:=locobot_wx250s
[INFO] [launch]: All log files can be found below /home/locobot/.ros/log/2025-01-24-07-52-28-283204-locobot-4246
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [gzserver-1]: process started with pid [4256]
[INFO] [gzclient -2]: process started with pid [4258]
[INFO] [spawn_entity.py-3]: process started with pid [4261]
[INFO] [robot_state_publisher-4]: process started with pid [4264]
[INFO] [rviz2-5]: process started with pid [4266]

it still produces only walls without locobot file. Where is currect .world file? how do i access it? or am I missing something?

@lukeschmitt-tr
Copy link
Member

Please see if the changes in Interbotix/interbotix_ros_toolboxes#82 solve this issue, specifically the changes made to interbotix_xs_toolbox/interbotix_xs_modules/interbotix_xs_modules/xs_launch/xs_launch.py.

@ajinkyamar
Copy link
Author

could you please elaborate more? Do I need to update locobot.py in toolbox? Will it work on galactic ros2 distribution ? Locobot.py doesnt have mention of gazebo

@lukeschmitt-tr
Copy link
Member

You should only need to update the xs_launch.py (at interbotix_ros_toolboxes/interbotix_xs_toolbox/interbotix_xs_modules/interbotix_xs_modules/xs_launch/xs_launch.py) file with the contents of this file, apply the changes by rebuilding your workspace, and try running the launch file again.

@ajinkyamar
Copy link
Author

Hi, I did colcon build successfully and they launched command . still same issue . Below is log

locobot@locobot:$ cd interbotix_ws/src/interbotix_ros_rovers/interbotix_ros_xslocobots/interbotix_xslocobot_sim/launch
locobot@locobot:
/interbotix_ws/src/interbotix_ros_rovers/interbotix_ros_xslocobots/interbotix_xslocobot_sim/launch$ ros2 launch xslocobot_gz_classic.launch.py robot_model:=locobot_wx250s
[INFO] [launch]: All log files can be found below /home/locobot/.ros/log/2025-01-24-10-26-13-286967-locobot-21292
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [gzserver-1]: process started with pid [21326]
[INFO] [gzclient -2]: process started with pid [21328]
[INFO] [spawn_entity.py-3]: process started with pid [21331]
[INFO] [robot_state_publisher-4]: process started with pid [21334]
[INFO] [rviz2-5]: process started with pid [21336]

It opens up empty Rviz and gazebo with office room. (screenshot)

Image

@lukeschmitt-tr
Copy link
Member

Could you run ros2 topic list while Gazebo is up?

@ajinkyamar
Copy link
Author

locobot@locobot:/interbotix_ws/src/interbotix_ros_rovers/interbotix_ros_xslocobots/interbotix_xslocobot_sim/launch$ ros2 topic list
/parameter_events
/rosout
locobot@locobot:
/interbotix_ws/src/interbotix_ros_rovers/interbotix_ros_xslocobots/interbotix_xslocobot_sim/launch$

@ajinkyamar
Copy link
Author

Built was done successfully as well after replacing required file

locobot@locobot:~/interbotix_ws$ colcon build
Starting >>> interbotix_xs_msgs
Starting >>> interbotix_common_modules
Starting >>> irobot_create_msgs
Starting >>> dynamixel_workbench_toolbox
Starting >>> irobot_create_description
Starting >>> irobot_create_control
Starting >>> irobot_create_toolbox
Starting >>> interbotix_common_sim
Finished <<< irobot_create_description [0.65s]
Finished <<< interbotix_common_sim [0.64s]
Starting >>> interbotix_tf_tools
Starting >>> sllidar_ros2
Finished <<< irobot_create_control [0.71s]
Starting >>> irobot_create_common_bringup
Finished <<< dynamixel_workbench_toolbox [0.85s]
Finished <<< irobot_create_toolbox [0.83s]
Starting >>> interbotix_xs_driver
Starting >>> interbotix_perception_msgs
Finished <<< irobot_create_common_bringup [0.38s]
Starting >>> irobot_create_ignition_plugins
Finished <<< interbotix_tf_tools [0.56s]
Starting >>> interbotix_moveit_interface_msgs
Finished <<< sllidar_ros2 [0.64s]
Starting >>> moveit_visual_tools
Finished <<< interbotix_xs_driver [0.51s]
Finished <<< interbotix_xs_msgs [1.64s]
Starting >>> interbotix_xs_sdk
Starting >>> interbotix_xs_ros_control
Finished <<< irobot_create_ignition_plugins [0.62s]
Finished <<< moveit_visual_tools [0.66s]
Finished <<< interbotix_perception_msgs [1.15s]
Finished <<< interbotix_xs_sdk [0.46s]
Starting >>> interbotix_xs_rviz
Starting >>> interbotix_ros_xseries
Finished <<< interbotix_moveit_interface_msgs [0.94s]
Starting >>> interbotix_moveit_interface
Finished <<< interbotix_xs_ros_control [0.63s]
Finished <<< interbotix_ros_xseries [0.25s]
Finished <<< interbotix_common_modules [2.50s]
Starting >>> interbotix_xs_modules
Starting >>> interbotix_perception_pipelines
Starting >>> interbotix_common_toolbox
Finished <<< interbotix_xs_rviz [0.49s]
Finished <<< interbotix_moveit_interface [0.69s]
Finished <<< irobot_create_msgs [2.92s]
Starting >>> irobot_create_gazebo_plugins
Starting >>> irobot_create_ignition_toolbox
Starting >>> irobot_create_nodes
Finished <<< interbotix_common_toolbox [0.61s]
Finished <<< interbotix_perception_pipelines [0.75s]
Starting >>> interbotix_perception_modules
Finished <<< irobot_create_gazebo_plugins [0.92s]
Starting >>> irobot_create_gazebo_bringup
Finished <<< irobot_create_ignition_toolbox [0.95s]
Starting >>> irobot_create_ignition_bringup
Finished <<< irobot_create_nodes [1.09s]
Finished <<< irobot_create_gazebo_bringup [0.26s]
Starting >>> irobot_create_gazebo_sim
Finished <<< irobot_create_ignition_bringup [0.29s]
Starting >>> irobot_create_ignition_sim
Finished <<< irobot_create_gazebo_sim [0.22s]
Finished <<< irobot_create_ignition_sim [0.22s]
Finished <<< interbotix_xs_modules [2.48s]
Starting >>> interbotix_xslocobot_descriptions
Starting >>> interbotix_xs_toolbox
Finished <<< interbotix_xs_toolbox [0.18s]
Finished <<< interbotix_xslocobot_descriptions [0.21s]
Starting >>> interbotix_xslocobot_control
Starting >>> interbotix_xslocobot_sim
Finished <<< interbotix_xslocobot_sim [0.25s]
Finished <<< interbotix_xslocobot_control [0.28s]
Starting >>> interbotix_xslocobot_ros_control
Starting >>> interbotix_xslocobot_joy
Starting >>> interbotix_xslocobot_nav
Finished <<< interbotix_perception_modules [2.21s]
Starting >>> interbotix_perception_toolbox
Finished <<< interbotix_xslocobot_ros_control [0.31s]
Starting >>> interbotix_xslocobot_moveit
Finished <<< interbotix_xslocobot_nav [0.31s]
Finished <<< interbotix_perception_toolbox [0.29s]
Finished <<< interbotix_xslocobot_joy [0.39s]
Finished <<< interbotix_xslocobot_moveit [0.20s]

Summary: 41 packages finished [6.36s]

@ajinkyamar
Copy link
Author

Hi, could you please suggest something to resolve this issue?

@lukeschmitt-tr
Copy link
Member

It looks like you're running this on the LoCoBot. Because of the RMW configuration that's required, you may need to make sure that everything is configured correctly. Please see this troubleshooting topic and this configuration guide.

@ajinkyamar
Copy link
Author

ajinkyamar commented Jan 28, 2025

Hi,

Gazebo simulatation did open along with locobot_250s on locobot. I had to use below command
ros2 launch interbotix_xslocobot_moveit xslocobot_moveit.launch.py robot_model:=locobot_wx250s use_lidar:=true hardware_type:=gz_classic

However, after I applied force on one link, gz sim got stuck and it started to give errors like below :

locobot@locobot:~$ ros2 launch interbotix_xslocobot_moveit xslocobot_moveit.launch.py robot_model:=locobot_wx250s use_lidar:=true hardware_type:=gz_classic
[INFO] [launch]: All log files can be found below /home/locobot/.ros/log/2025-01-28-07-28-48-936864-locobot-6717
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [move_group-1]: process started with pid [6731]
[INFO] [rviz2-2]: process started with pid [6733]
[INFO] [gzserver-3]: process started with pid [6735]
[INFO] [gzclient   -4]: process started with pid [6737]
[INFO] [spawn_entity.py-5]: process started with pid [6740]
[INFO] [robot_state_publisher-6]: process started with pid [6743]
[move_group-1] [WARN] [1738070931.268481076] [move_group.move_group]: MoveGroup launched without ~default_planning_pipeline specifying the namespace for the default planning pipeline configuration
[move_group-1] [WARN] [1738070931.269058319] [move_group.move_group]: Falling back to using the the move_group node namespace (deprecated behavior).
[move_group-1] Error:   Link 'ee_gripper_link' specified as parent for end effector 'interbotix_gripper' is not known to the URDF
[move_group-1]          at line 423 in /tmp/binarydeb/ros-galactic-srdfdom-2.0.3/src/model.cpp
[move_group-1] Warning: Link 'locobot/forearm_link' is not known to URDF. Cannot disable collisons.
[move_group-1]          at line 555 in /tmp/binarydeb/ros-galactic-srdfdom-2.0.3/src/model.cpp
[move_group-1] Warning: Link 'locobot/forearm_link' is not known to URDF. Cannot disable collisons.
[move_group-1]          at line 555 in /tmp/binarydeb/ros-galactic-srdfdom-2.0.3/src/model.cpp
[move_group-1] Warning: Link 'locobot/forearm_link' is not known to URDF. Cannot disable collisons.
[move_group-1]          at line 550 in /tmp/binarydeb/ros-galactic-srdfdom-2.0.3/src/model.cpp
[move_group-1] Warning: Link 'locobot/forearm_link' is not known to URDF. Cannot disable collisons.
[move_group-1]          at line 550 in /tmp/binarydeb/ros-galactic-srdfdom-2.0.3/src/model.cpp
[move_group-1] [INFO] [1738070931.276743422] [moveit_rdf_loader.rdf_loader]: Loaded robot model in 0 seconds
[move_group-1] [INFO] [1738070931.276795657] [moveit_robot_model.robot_model]: Loading robot model 'locobot'...
[move_group-1] [INFO] [1738070931.276814109] [moveit_robot_model.robot_model]: No root/virtual joint specified in SRDF. Assuming fixed joint
[move_group-1] The root link locobot/base_link has an inertia specified in the URDF, but KDL does not support a root link with an inertia.  As a workaround, you can add an extra dummy link to your URDF.
[move_group-1] Link locobot/bump_caster_link had 0 children
[move_group-1] Link locobot/bump_front_center had 0 children
[move_group-1] Link locobot/bump_front_left had 0 children
[move_group-1] Link locobot/bump_front_right had 0 children
[move_group-1] Link locobot/bump_left had 0 children
[move_group-1] Link locobot/bump_right had 0 children
[move_group-1] Link locobot/button_1 had 0 children
[move_group-1] Link locobot/button_2 had 0 children
[move_group-1] Link locobot/button_power had 0 children
[move_group-1] Link locobot/camera_tower_link had 2 children
[move_group-1] Link locobot/lidar_tower_link had 1 children
[move_group-1] Link locobot/laser_frame_link had 0 children
[move_group-1] Link locobot/pan_link had 1 children
[move_group-1] Link locobot/tilt_link had 1 children
[move_group-1] Link camera_locobot_link had 1 children
[move_group-1] Link locobot/camera_depth_link had 0 children
[move_group-1] Link cliff_front_left had 0 children
[move_group-1] Link cliff_front_right had 0 children
[move_group-1] Link cliff_side_left had 0 children
[move_group-1] Link cliff_side_right had 0 children
[move_group-1] Link locobot/front_caster_link had 0 children
[move_group-1] Link locobot/imu_link had 0 children
[move_group-1] Link locobot/ir_omni had 0 children
[move_group-1] Link locobot/ir_intensity_front_center_left had 0 children
[move_group-1] Link locobot/ir_intensity_front_center_right had 0 children
[move_group-1] Link locobot/ir_intensity_front_left had 0 children
[move_group-1] Link locobot/ir_intensity_front_right had 0 children
[move_group-1] Link locobot/ir_intensity_left had 0 children
[move_group-1] Link locobot/ir_intensity_right had 0 children
[move_group-1] Link locobot/ir_intensity_side_left had 0 children
[move_group-1] Link locobot/mouse had 0 children
[move_group-1] Link locobot/plate_link had 2 children
[move_group-1] Link locobot/arm_stand_link had 1 children
[move_group-1] Link locobot/arm_base_link had 1 children
[move_group-1] Link locobot/shoulder_link had 1 children
[move_group-1] Link locobot/upper_arm_link had 1 children
[move_group-1] Link locobot/upper_forearm_link had 1 children
[move_group-1] Link locobot/lower_forearm_link had 1 children
[move_group-1] Link locobot/wrist_link had 1 children
[move_group-1] Link locobot/gripper_link had 1 children
[move_group-1] Link locobot/ee_arm_link had 3 children
[move_group-1] Link locobot/ar_tag_link had 0 children
[move_group-1] Link locobot/gripper_prop_link had 0 children
[move_group-1] Link locobot/gripper_bar_link had 1 children
[move_group-1] Link locobot/fingers_link had 3 children
[move_group-1] Link locobot/ee_gripper_link had 0 children
[move_group-1] Link locobot/left_finger_link had 0 children
[move_group-1] Link locobot/right_finger_link had 0 children
[move_group-1] Link locobot/battery_link had 0 children
[move_group-1] Link locobot/wheel_drop_left had 1 children
[move_group-1] Link locobot/left_wheel had 0 children
[move_group-1] Link locobot/wheel_drop_right had 1 children
[move_group-1] Link locobot/right_wheel had 0 children
[move_group-1] [INFO] [1738070931.736517213] [moveit_ros.planning_scene_monitor.planning_scene_monitor]: Publishing maintained planning scene on 'monitored_planning_scene'
[move_group-1] [INFO] [1738070931.736884337] [moveit.ros_planning_interface.moveit_cpp]: Listening to 'locobot/joint_states' for joint states
[move_group-1] [INFO] [1738070931.737776719] [moveit_ros.current_state_monitor]: Listening to joint states on topic 'locobot/joint_states'
[move_group-1] [INFO] [1738070931.738325041] [moveit_ros.planning_scene_monitor.planning_scene_monitor]: Listening to '/attached_collision_object' for attached collision objects
[move_group-1] [INFO] [1738070931.738348461] [moveit_ros.planning_scene_monitor.planning_scene_monitor]: Starting planning scene monitor
[move_group-1] [INFO] [1738070931.738740666] [moveit_ros.planning_scene_monitor.planning_scene_monitor]: Listening to '/planning_scene'
[move_group-1] [INFO] [1738070931.738761891] [moveit_ros.planning_scene_monitor.planning_scene_monitor]: Starting world geometry update monitor for collision objects, attached objects, octomap updates.
[move_group-1] [INFO] [1738070931.739166058] [moveit_ros.planning_scene_monitor.planning_scene_monitor]: Listening to 'collision_object'
[move_group-1] [INFO] [1738070931.739517607] [moveit_ros.planning_scene_monitor.planning_scene_monitor]: Listening to 'planning_scene_world' for planning scene world geometry
[move_group-1] [WARN] [1738070931.740066697] [moveit.ros.occupancy_map_monitor.middleware_handle]: Resolution not specified for Octomap. Assuming resolution = 0.1 instead
[move_group-1] [ERROR] [1738070931.740098296] [moveit.ros.occupancy_map_monitor.middleware_handle]: No sensor plugin specified for octomap updater ; ignoring.
[move_group-1] [INFO] [1738070931.740115682] [moveit.ros.occupancy_map_monitor.middleware_handle]: Skipping octomap updater plugin ''
[ERROR] [gzserver-3]: process has died [pid 6735, exit code 255, cmd 'gzserver /home/locobot/interbotix_ws/install/interbotix_common_sim/share/interbotix_common_sim/worlds/interbotix.world                                                                      -s libgazebo_ros_init.so   -s libgazebo_ros_factory.so   -s libgazebo_ros_force_system.so       '].
[move_group-1] [INFO] [1738070932.037468600] [moveit.ros_planning_interface.moveit_cpp]: Loading planning pipeline 'move_group'
[move_group-1] [INFO] [1738070932.060398107] [moveit.ros_planning.planning_pipeline]: Using planning interface 'OMPL'
[move_group-1] [INFO] [1738070932.063058791] [moveit_ros.add_time_optimal_parameterization]: Param 'move_group.path_tolerance' was not set. Using default value: 0.100000
[move_group-1] [INFO] [1738070932.063073759] [moveit_ros.add_time_optimal_parameterization]: Param 'move_group.resample_dt' was not set. Using default value: 0.100000
[move_group-1] [INFO] [1738070932.063078013] [moveit_ros.add_time_optimal_parameterization]: Param 'move_group.min_angle_change' was not set. Using default value: 0.001000
[move_group-1] [INFO] [1738070932.063091348] [moveit_ros.fix_workspace_bounds]: Param 'move_group.default_workspace_bounds' was not set. Using default value: 10.000000
[move_group-1] [INFO] [1738070932.063103727] [moveit_ros.fix_start_state_bounds]: Param 'move_group.start_state_max_bounds_error' was set to 0.100000
[move_group-1] [INFO] [1738070932.063108369] [moveit_ros.fix_start_state_bounds]: Param 'move_group.start_state_max_dt' was not set. Using default value: 0.500000
[move_group-1] [INFO] [1738070932.063118488] [moveit_ros.fix_start_state_collision]: Param 'move_group.start_state_max_dt' was not set. Using default value: 0.500000
[move_group-1] [INFO] [1738070932.063122954] [moveit_ros.fix_start_state_collision]: Param 'move_group.jiggle_fraction' was not set. Using default value: 0.020000
[move_group-1] [INFO] [1738070932.063133223] [moveit_ros.fix_start_state_collision]: Param 'move_group.max_sampling_attempts' was not set. Using default value: 100
[move_group-1] [INFO] [1738070932.063143638] [moveit.ros_planning.planning_pipeline]: Using planning request adapter 'Add Time Optimal Parameterization'
[move_group-1] [INFO] [1738070932.063148326] [moveit.ros_planning.planning_pipeline]: Using planning request adapter 'Fix Workspace Bounds'
[move_group-1] [INFO] [1738070932.063172058] [moveit.ros_planning.planning_pipeline]: Using planning request adapter 'Fix Start State Bounds'
[move_group-1] [INFO] [1738070932.063175429] [moveit.ros_planning.planning_pipeline]: Using planning request adapter 'Fix Start State In Collision'
[move_group-1] [INFO] [1738070932.063178016] [moveit.ros_planning.planning_pipeline]: Using planning request adapter 'Fix Start State Path Constraints'
[move_group-1] [INFO] [1738070932.084739211] [moveit.plugins.moveit_simple_controller_manager]: Added FollowJointTrajectory controller for locobot/arm_controller
[move_group-1] [INFO] [1738070932.086296775] [moveit.plugins.moveit_simple_controller_manager]: Added FollowJointTrajectory controller for locobot/gripper_controller
[move_group-1] [INFO] [1738070932.086453968] [moveit.plugins.moveit_simple_controller_manager]: Returned 2 controllers in list
[move_group-1] [INFO] [1738070932.087099631] [moveit_ros.trajectory_execution_manager]: Trajectory execution is managing controllers
[move_group-1] [INFO] [1738070932.087120073] [move_group.move_group]: MoveGroup debug mode is ON
[move_group-1] [INFO] [1738070932.105556134] [move_group.move_group]: 
[move_group-1] 
[move_group-1] ********************************************************
[move_group-1] * MoveGroup using: 
[move_group-1] *     - ApplyPlanningSceneService
[move_group-1] *     - ClearOctomapService
[move_group-1] *     - CartesianPathService
[move_group-1] *     - ExecuteTrajectoryAction
[move_group-1] *     - GetPlanningSceneService
[move_group-1] *     - KinematicsService
[move_group-1] *     - MoveAction
[move_group-1] *     - MotionPlanService
[move_group-1] *     - QueryPlannersService
[move_group-1] *     - StateValidationService
[move_group-1] ********************************************************
[move_group-1] 
[move_group-1] [INFO] [1738070932.107171842] [moveit_move_group_capabilities_base.move_group_context]: MoveGroup context using planning plugin ompl_interface/OMPLPlanner
[move_group-1] [INFO] [1738070932.107614494] [moveit_move_group_capabilities_base.move_group_context]: MoveGroup context initialization complete
[move_group-1] Loading 'move_group/ApplyPlanningSceneService'...
[move_group-1] Loading 'move_group/ClearOctomapService'...
[move_group-1] Loading 'move_group/MoveGroupCartesianPathService'...
[move_group-1] Loading 'move_group/MoveGroupExecuteTrajectoryAction'...
[move_group-1] Loading 'move_group/MoveGroupGetPlanningSceneService'...
[move_group-1] Loading 'move_group/MoveGroupKinematicsService'...
[move_group-1] Loading 'move_group/MoveGroupMoveAction'...
[move_group-1] Loading 'move_group/MoveGroupPlanService'...
[move_group-1] Loading 'move_group/MoveGroupQueryPlannersService'...
[move_group-1] Loading 'move_group/MoveGroupStateValidationService'...
[move_group-1] 
[move_group-1] You can start planning now!
[move_group-1] 
[ERROR] [spawn_entity.py-5]: process has died [pid 6740, exit code 1, cmd '/opt/ros/galactic/lib/gazebo_ros/spawn_entity.py -entity robot_description -topic robot_description -x 0.0 -y 0.0 -z 0.0 -Y 0.0 --ros-args -r __node:=spawn_robot -r __ns:=/locobot'].
[INFO] [spawner-7]: process started with pid [6912]
[spawner-7] [INFO] [1738070938.141581320] [joint_state_broadcaster_spawner]: Waiting for '/locobot/controller_manager' node to exist
[spawner-7] [INFO] [1738070940.155714835] [joint_state_broadcaster_spawner]: Waiting for '/locobot/controller_manager' node to exist
[spawner-7] [INFO] [1738070942.169685489] [joint_state_broadcaster_spawner]: Waiting for '/locobot/controller_manager' node to exist
[spawner-7] [INFO] [1738070944.178694147] [joint_state_broadcaster_spawner]: Waiting for '/locobot/controller_manager' node to exist
[spawner-7] [INFO] [1738070946.188915163] [joint_state_broadcaster_spawner]: Waiting for '/locobot/controller_manager' node to exist
[spawner-7] [ERROR] [1738070948.199540734] [joint_state_broadcaster_spawner]: Controller manager not available
[ERROR] [spawner-7]: process has died [pid 6912, exit code 1, cmd '/opt/ros/galactic/lib/controller_manager/spawner -c locobot/controller_manager joint_state_broadcaster --ros-args -r __node:=joint_state_broadcaster_spawner'].
[INFO] [spawner-8]: process started with pid [6979]
[INFO] [spawner-9]: process started with pid [6981]
[INFO] [spawner-10]: process started with pid [6983]
[INFO] [spawner-11]: process started with pid [6985]
[spawner-8] [INFO] [1738070949.106149085] [gripper_controller_spawner]: Waiting for '/locobot/controller_manager' node to exist
[spawner-11] [INFO] [1738070949.163379788] [diffdrive_controller_spawner]: Waiting for '/locobot/controller_manager' node to exist
[spawner-10] [INFO] [1738070949.199754302] [camera_controller_spawner]: Waiting for '/locobot/controller_manager' node to exist
[spawner-9] [INFO] [1738070949.222687830] [arm_controller_spawner]: Waiting for '/locobot/controller_manager' node to exist
[spawner-8] [INFO] [1738070951.117513226] [gripper_controller_spawner]: Waiting for '/locobot/controller_manager' node to exist
[spawner-11] [INFO] [1738070951.173075197] [diffdrive_controller_spawner]: Waiting for '/locobot/controller_manager' node to exist
[spawner-10] [INFO] [1738070951.209489565] [camera_controller_spawner]: Waiting for '/locobot/controller_manager' node to exist
[spawner-9] [INFO] [1738070951.236920447] [arm_controller_spawner]: Waiting for '/locobot/controller_manager' node to exist
[spawner-8] [INFO] [1738070953.130409388] [gripper_controller_spawner]: Waiting for '/locobot/controller_manager' node to exist
[spawner-11] [INFO] [1738070953.184704008] [diffdrive_controller_spawner]: Waiting for '/locobot/controller_manager' node to exist
[spawner-10] [INFO] [1738070953.219422636] [camera_controller_spawner]: Waiting for '/locobot/controller_manager' node to exist
[spawner-9] [INFO] [1738070953.248518840] [arm_controller_spawner]: Waiting for '/locobot/controller_manager' node to exist
[spawner-8] [INFO] [1738070955.140297792] [gripper_controller_spawner]: Waiting for '/locobot/controller_manager' node to exist
[spawner-11] [INFO] [1738070955.195793107] [diffdrive_controller_spawner]: Waiting for '/locobot/controller_manager' node to exist
[spawner-10] [INFO] [1738070955.230130367] [camera_controller_spawner]: Waiting for '/locobot/controller_manager' node to exist
[spawner-9] [INFO] [1738070955.259853627] [arm_controller_spawner]: Waiting for '/locobot/controller_manager' node to exist
[spawner-8] [INFO] [1738070957.152806068] [gripper_controller_spawner]: Waiting for '/locobot/controller_manager' node to exist
^C[WARNING] [launch]: user interrupted with ctrl-c (SIGINT)
[move_group-1] [INFO] [1738070957.163148055] [rclcpp]: signal_handler(signal_value=2)
[spawner-10] Traceback (most recent call last):
[spawner-10]   File "/opt/ros/galactic/lib/controller_manager/spawner", line 20, in <module>
[spawner-10]     ret = main()
[spawner-10]   File "/opt/ros/galactic/lib/controller_manager/spawner.py", line 162, in main
[spawner-10]     if not wait_for_controller_manager(node, controller_manager_name,
[spawner-10]   File "/opt/ros/galactic/lib/controller_manager/spawner.py", line 95, in wait_for_controller_manager
[spawner-10]     node_and_namespace = wait_for_value_or(
[spawner-10]   File "/opt/ros/galactic/lib/controller_manager/spawner.py", line 57, in wait_for_value_or
[spawner-10]     time.sleep(0.2)
[spawner-10] KeyboardInterrupt
[spawner-8] Traceback (most recent call last):
[spawner-8]   File "/opt/ros/galactic/lib/controller_manager/spawner", line 20, in <module>
[spawner-8]     ret = main()
[spawner-8]   File "/opt/ros/galactic/lib/controller_manager/spawner.py", line 162, in main
[spawner-8]     if not wait_for_controller_manager(node, controller_manager_name,
[spawner-8]   File "/opt/ros/galactic/lib/controller_manager/spawner.py", line 95, in wait_for_controller_manager
[spawner-8]     node_and_namespace = wait_for_value_or(
[spawner-8]   File "/opt/ros/galactic/lib/controller_manager/spawner.py", line 57, in wait_for_value_or
[spawner-8]     time.sleep(0.2)
[spawner-8] KeyboardInterrupt
[spawner-11] Traceback (most recent call last):
[spawner-11]   File "/opt/ros/galactic/lib/controller_manager/spawner", line 20, in <module>
[spawner-11]     ret = main()
[spawner-11]   File "/opt/ros/galactic/lib/controller_manager/spawner.py", line 162, in main
[spawner-11]     if not wait_for_controller_manager(node, controller_manager_name,
[spawner-11]   File "/opt/ros/galactic/lib/controller_manager/spawner.py", line 95, in wait_for_controller_manager
[spawner-11]     node_and_namespace = wait_for_value_or(
[spawner-11]   File "/opt/ros/galactic/lib/controller_manager/spawner.py", line 57, in wait_for_value_or
[spawner-11]     time.sleep(0.2)
[spawner-11] KeyboardInterrupt
[spawner-9] Traceback (most recent call last):
[spawner-9]   File "/opt/ros/galactic/lib/controller_manager/spawner", line 20, in <module>
[spawner-9]     ret = main()
[spawner-9]   File "/opt/ros/galactic/lib/controller_manager/spawner.py", line 162, in main
[spawner-9]     if not wait_for_controller_manager(node, controller_manager_name,
[spawner-9]   File "/opt/ros/galactic/lib/controller_manager/spawner.py", line 95, in wait_for_controller_manager
[spawner-9]     node_and_namespace = wait_for_value_or(
[spawner-9]   File "/opt/ros/galactic/lib/controller_manager/spawner.py", line 57, in wait_for_value_or
[spawner-9]     time.sleep(0.2)
[spawner-9] KeyboardInterrupt
[move_group-1] [INFO] [1738070957.218931802] [moveit.ros_planning_interface.moveit_cpp]: Deleting MoveItCpp
[move_group-1] [INFO] [1738070957.221112583] [moveit_ros.planning_scene_monitor.planning_scene_monitor]: Stopped publishing maintained planning scene.
[move_group-1] [INFO] [1738070957.222837310] [moveit_ros.planning_scene_monitor.planning_scene_monitor]: Stopping world geometry monitor
[move_group-1] [INFO] [1738070957.223724086] [moveit_ros.planning_scene_monitor.planning_scene_monitor]: Stopping planning scene monitor
[ERROR] [spawner-10]: process has died [pid 6983, exit code -2, cmd '/opt/ros/galactic/lib/controller_manager/spawner -c locobot/controller_manager camera_controller --ros-args -r __node:=camera_controller_spawner'].
[ERROR] [spawner-8]: process has died [pid 6979, exit code -2, cmd '/opt/ros/galactic/lib/controller_manager/spawner -c locobot/controller_manager gripper_controller --ros-args -r __node:=gripper_controller_spawner'].
[move_group-1] Warning: class_loader.ClassLoader: SEVERE WARNING!!! Attempting to unload library while objects created by this loader exist in the heap! You should delete your objects before attempting to unload the library or destroying the ClassLoader. The library will NOT be unloaded.
[move_group-1]          at line 127 in /tmp/binarydeb/ros-galactic-class-loader-2.1.2/src/class_loader.cpp
[ERROR] [spawner-9]: process has died [pid 6981, exit code -2, cmd '/opt/ros/galactic/lib/controller_manager/spawner -c locobot/controller_manager arm_controller --ros-args -r __node:=arm_controller_spawner'].
[ERROR] [spawner-11]: process has died [pid 6985, exit code -2, cmd '/opt/ros/galactic/lib/controller_manager/spawner -c locobot/controller_manager diffdrive_controller --ros-args -r __node:=diffdrive_controller_spawner'].
[INFO] [robot_state_publisher-6]: process has finished cleanly [pid 6743]
[ERROR] [gzclient   -4]: process has died [pid 6737, exit code -2, cmd 'gzclient   '].
[INFO] [move_group-1]: process has finished cleanly [pid 6731]
[move_group-1] 
[INFO] [rviz2-2]: process has finished cleanly [pid 6733]

why are these spawner errors happening? Why did it not spawn again?

Thanks

@ajinkyamar
Copy link
Author

Hi,

If I have sdf file for locobot, can it be used to create gz simulation on my desktop? what kind of changes will be required besides mesh file location, media location? does it have any other dependencies from interbotix_ws?

@lukeschmitt-tr
Copy link
Member

[ERROR] [gzserver-3]: process has died [pid 6735, exit code 255, cmd 'gzserver /home/locobot/interbotix_ws/install/interbotix_common_sim/share/interbotix_common_sim/worlds/interbotix.world                                                                      -s libgazebo_ros_init.so   -s libgazebo_ros_factory.so   -s libgazebo_ros_force_system.so       '].

Looks like gzserver is crashing. Please re-run gazebo with verbose logging.

@lukeschmitt-tr
Copy link
Member

If I have sdf file for locobot, can it be used to create gz simulation on my desktop? what kind of changes will be required besides mesh file location, media location? does it have any other dependencies from interbotix_ws?

If you want to do anything with, say, MoveIt or ros2 control, you will need to go through the process of spawning the URDF instead of using the LoCoBot URDF as the URDF contains necessary macros for ros2 control.

@ajinkyamar
Copy link
Author

thank you so much for replying.

It is spawned now but it is slow in simulation. ( I logged in with ssh on my computer). It is taking time to select link, and so on. Is there any way to speed it up?

@lukeschmitt-tr
Copy link
Member

Forwarding the Gazebo display through SSH is extremely slow. I would not recommend doing this. You may choose to use the machine directly or possibly use something like a remote desktop application instead.

@ajinkyamar
Copy link
Author

Thank for replying; Running it locally is faster.

What does this warning imply?

planning_scene_monitor]: The complete state of the robot is not yet known. Missing wheel_drop_left_joint, wheel_drop_right_joint
[move_group-1] [WARN] [1738160508.319281336] [moveit_ros.planning_scene_monitor.planning_scene_monitor]: The complete state of the robot is not yet known. Missing wheel_drop_left_joint, wheel_drop_right_joint
[move_group-1] [WARN] [1738160509.338426483] [moveit_ros.planning_scene_monitor.planning_scene_monitor]: The complete state of the robot is not yet known. Missing wheel_drop_left_joint, wheel_drop_right_joint
[move_group-1] [WARN] [1738160510.351274038] [moveit_ros.planning_scene_monitor.planning_scene_monitor]: The complete state of the robot is not yet known. Missing wheel_drop_left_joint, wheel_drop_right_joint

@ajinkyamar
Copy link
Author

ajinkyamar commented Jan 29, 2025

Hi,
I need to apply force on individual links and joints. For which, I tried setting kinematic value to true in gui. When I do this, locobot becomes unstable in gazebo. It fell down multiple times.

How can I apply force without making locobot unstable in gazebo?

@lukeschmitt-tr
Copy link
Member

Please share an example on how you are apply forces to the robot and how exactly the robot is going unstable.

@lukeschmitt-tr
Copy link
Member

The complete state of the robot is not yet known. Missing wheel_drop_left_joint, wheel_drop_right_joint

These are not part of the kinematic chain that MoveIt interacts with and can be ignored for now.

@ajinkyamar

This comment has been minimized.

@ajinkyamar
Copy link
Author

ajinkyamar commented Jan 29, 2025

how to activate the camera, use it in Gazebo, and visualize it in RViz while controlling the robot with MoveIt? Scene from gazebo is not getting reflected in rviz gui. I added camera in rviz from locobot_frame_sensor but it shows blank in the image.

I added the image and added camera_img option but it is blank. (It is green ticked though)

Image

It created this confusing view. Is position of camera not right?
Image

@ajinkyamar

This comment has been minimized.

@lukeschmitt-tr
Copy link
Member

What topic are you using to subscribe to the images in RViz? It's possible that the default configuration is incorrect. Could you try /locobot/camera_frame_sensor/image_raw?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested rovers Issues related to rovers
Projects
None yet
Development

No branches or pull requests

2 participants