Code Monkey home page Code Monkey logo

Comments (3)

PARKBONG avatar PARKBONG commented on August 16, 2024

I have no idea if is there a more clear way to change action space through the configuration file, I did somehow change it.

Q1. I would appreciate it if you make me know if there is a better way.
Q2. Is there any possibility that this temporary modification cause any problems?

lift_env.py/_initialize_views

        elif self.cfg.control.control_type == "default":
            # self.num_actions = self.robot.num_actions   # original
            self.num_actions = self.robot.num_actions - 1 # bong

lift_env.py/_step_impl

        elif self.cfg.control.control_type == "default":
            # self.robot_actions[:] = self.actions   # original
            self.robot_actions[:, :-1] = self.actions # bong
            self.robot_actions[:, -1] = -1 * self.should_i_close_gripper():

from orbit.

Mayankm96 avatar Mayankm96 commented on August 16, 2024

I see what you are trying to do. I think your current workaround is the best way to do it at the moment. To make the code least disrupted, I would suggest renaming the control type to be called something else ("only_arm" or something). That way you can switch in the future easily.

It is a bit hard to capture all the possible use-cases from the config file without letting it blow up. But I agree, there should be a way to specify which "actuator groups" are part of the robot's action space. I will have to think about it but this will require some more restructuring.

from orbit.

PARKBONG avatar PARKBONG commented on August 16, 2024

ok, thank you for your reply!

from orbit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.