Git Product home page Git Product logo

mara_examples's Introduction

MARA Examples

Please make sure you have followed the steps in MARA repository to set up ROS2, HRIM and dependencies.

Build

Clone this repository in your ROS2 workspace.

cd ~/ros2_mara_ws/src && git clone https://github.com/AcutronicRobotics/mara_examples.git

Compile.

source /opt/ros/dashing/setup.bash
cd ~/ros2_mara_ws && colcon build --merge-install --packages-skip individual_trajectories_bridge

Run

Terminal 1

In order to run the examples you need to first spawn MARA in Gazebo.

source ~/ros2_mara_ws/install/setup.bash
ros2 launch mara_gazebo mara.launch.py

You can choose between one of the available URDFs for spawning different configurations of MARA (mara_robot_gripper_140, mara_robot_gripper_140_no_table, mara_robot_gripper_85 and mara_robot_gripper_hande). Remember to spawn a URDF with gripper if you want to run the service examples.

ros2 launch mara_gazebo mara.launch.py --urdf mara_robot_gripper_140

Terminal 2

In a different terminal, run the example you would like to test.

source ~/ros2_mara_ws/install/setup.bash
ros2 run mara_minimal_publisher mara_minimal_publisher_v1

mara_examples's People

Contributors

ahcorde avatar alesolano avatar rkojcev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mara_examples's Issues

The number of timestep do not exeeds 10 every time

Hi,
i'm using ROS2 MARA , all is ok no error, but when i run a simple code gg_random.py:
timesteps = 1024

EPISODES = 100
for e in range(EPISODES):
    state = env.reset()        
    for time in range(timesteps):
        #action = env.action_space.sample()            
        action = agent.act(env,state)            
        next_state, reward, done, _ = env.step(action)

The inner loop "for time in range(timesteps):" iteration is 10 every time i run it

Clone and install instructions missing

Just a nitpick about the README - it doens't include instructions for cloning and building the examples repository in order to run them which a user will need to do since they are not included in the mara-ros2.repos file.

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.