Skip to content

[Question]: Addition of new experiments using Interbotix X-Series LoCoBot Python API  #85

@ajinkyamar

Description

@ajinkyamar

Question

Question 1.

How do I run my own python scripts using Interbotix X-Series LoCoBot Python API ?

I tried running my script by saving it in examples folder and then executed the ros2 launch xslocobot_moveit.launch.py robot_model:=locobot_wx250s and then ran my script using python3. However it created following error:


locobot@locobot:~/interbotix_ws/src/interbotix_ros_rovers/interbotix_ros_xslocobots/examples/interbotix_xslocobot_landmark_nav/scripts$ python3 locobot_rl_gazebo.py
Traceback (most recent call last):
  File "locobot_rl_gazebo.py", line 151, in <module>
    train_rl()
  File "locobot_rl_gazebo.py", line 126, in train_rl
    env = LoCoBotGazeboRL()
  File "locobot_rl_gazebo.py", line 29, in __init__
    self.locobot = InterbotixLocobotXS(robot_model='locobot_wx250s', arm_model='mobile_wx250s')
  File "/home/locobot/interbotix_ws/install/interbotix_xs_modules/lib/python3.8/site-packages/interbotix_xs_modules/xs_robot/locobot.py", line 114, in __init__
    self.core = InterbotixRobotXSCore(
  File "/home/locobot/interbotix_ws/install/interbotix_xs_modules/lib/python3.8/site-packages/interbotix_xs_modules/xs_robot/core.py", line 96, in __init__
    rclpy.init(args=args)
  File "/opt/ros/galactic/lib/python3.8/site-packages/rclpy/__init__.py", line 76, in init
    return context.init(args, domain_id=domain_id)
  File "/opt/ros/galactic/lib/python3.8/site-packages/rclpy/context.py", line 70, in init
    raise RuntimeError
RuntimeError

Could you please help me in this regard?

Question 2.

I tried to run Gazebo in my local machine without connecting to locobot. it looks like it requires actual physical base of robot on. Is there any way to work around this? I want to run locobot's gazebo in my work computer without turning on locobot. ( remote installation part has already installed locobots packages. )

Robot Model

locobot_250s

Operating System

Ubuntu 20.04

ROS Version

ROS 2 Galactic

Additional Info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requestedroversIssues related to rovers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions