Coder Social home page Coder Social logo

iropro's People

Contributors

anne-gaisne avatar chapulina avatar jstnhuang avatar pengy25 avatar sirver avatar ysl208 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

iropro's Issues

Robot model not shown on interface

I tried to add the robot model on the editor

On editor: Open displays > + Robot Model

I get the following error in Chrome:

Access to XMLHttpRequest at 'http://localhost:8001/ur_description/meshes/ur5/visual/base.dae' from origin 'http://localhost:8081' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. ColladaLoader2.js:5237 GET http://localhost:8001/ur_description/meshes/ur5/visual/base.dae net::ERR_FAILED

in firefox:
XHRGEThttp://localhost:8001/ur_description/meshes/ur5/visual/base.dae [HTTP/1.0 400 Bad Request 0ms]

Set up UR5 gazebo simulation

Reference: http://wiki.ros.org/ur_gazebo

For melodic:
sudo apt-get install ros-melodic-gazebo-ros-pkgs ros-melodic-gazebo-ros-control

To launch the simulated arm and a controller for it, run:
roslaunch ur_gazebo ur5.launch
and in another terminal:
roslaunch ur5_moveit_config ur5_moveit_planning_execution.launch sim:=true
To control the simulated arm from RViz, also run:
roslaunch ur5_moveit_config moveit_rviz.launch config:=true

For testing, try to move the robot in rviz and have it Plan & Execute the movement

set up kinect xbox 360

sudo apt-get install ros-indigo-freenect-stack
roslaunch freenect_launch freenect.launch
rosrun image_view image_view image:=/camera/rgb/image_color

PCL2 is published on /camera/depth_registered/points
In rviz: change color transformer to RGB8 when displaying PointCloud2

changes to be made:

  • baxter.launch
  • frontend: search for "rgb_optical_frame" and replace "kinect2" with "camera"
  • publish tf for camera_link:
    rosrun tf static_transform_publisher 0.00 0.04 0.03 -1.50 -0.775 0.00 head_camera camera_link 100

log activities

Log activities either:

  • Use console.log as activity log
  • save local variable in JS, send to db
  • send constantly to DB
  • access .log file from JS

where menu can be an action/problem name or overview

Date,Time,menu,description

0 home   create user
1.1 Action-list   Add new action
1.2 Action-list   Open action
1.3 Action-list   delete action
1.4 Action-list   copy action
2.0.1 New-action   Refresh view
2.0.2 New-action   Save action
2.0.3 New-action   Quit action
2.1.1 New-action perception Detect
2.1.2 New-action perception Change type
2.1.3 New-action perception Move up param
2.2.1 New-action demonstration Start demo
2.2.2 New-action demonstration Stop demo
       
2.2.4 New-action demonstration Replay
2.3.1 New-action conditions delete predicate
2.3.2 New-action conditions Add predicate
2.3.3 New-action conditions Confirm conditions
3.1 Problem-list   create new problem
3.2 Problem-list   Open problem
3.3 Problem-list   delete problem
4.0.1 New-problem   Refresh view
4.0.2 New-problem   Save problem
4.0.3 New-problem   Quit problem
4.1.1 New-problem Initial-state Detect
4.1.2 New-problem Initial-state Change type
4.1.3 New-problem Initial-state Remove predicate
4.1.4 New-problem Initial-state Add predicate
4.2.1 New-problem Goal-state Add goal
4.2.2 New-problem Goal-state remove goal
4.2.3 New-problem Goal-state Solve problem
4.3.0 New-problem Generated-plan No steps found
4.3.0.1 New-problem Generated-plan Plan found
4.3.1 New-problem Generated-plan Open Hints
4.3.2 New-problem Generated-plan Execute plan

get correct table size and zero point

http://www.ugr.es/~cvrlab/projects/baxter_objmanipulation/baxter.html

Measure MoveIt zero point
This package is used to get the distance from the ground to the zero point from the reference frame "base" from MoveIt. This value is needed for the collision checking and is allways the same if the robot position doesn't change. The table height must be smaller then 0.9 m and added to the variable table_size_z. The right arm move from the start position down and measure with the infrared sensor the distance to the table and calculate the zero point with the current position, the distance to the table and the table height. The result will be printed on the screen and is required for all tasks.

Download this project

The project must be added in the src folder from the workspace and can be launched after it is build from a sourced terminal.
Open a new terminal:
$ source /opt/ros/indigo/setup.bash
$ source ros_ws/devel/setup.bash
$ cd ros_ws/
$ ./baxter.sh
$ catkin_make
$ roslaunch baxter_measure_zero_point baxter_pick_and_place.launch

Could not connect to mongo server localhost:27017

When running editor.launch I got the following error:

[ INFO] [1606131900.664385299]: Waiting For connections on 0.0.0.0:9998
[ERROR] [1606131930.927740, 2812.475000]: Could not connect to mongo server localhost:27017
[ERROR] [1606131930.930572, 2812.478000]: Make sure mongod is launched on your specified host/port                                                                                      
Traceback (most recent call last):                                                          
  File "/opt/ros/melodic/lib/mongodb_store/message_store_node.py", line 316, in <module>
    store = MessageStore()
  File "/opt/ros/melodic/lib/mongodb_store/message_store_node.py", line 48, in __init__
    raise Exception("No Daemon?")
Exception: No Daemon?
================================================================================REQUIRED process [message_store-1] has died!                                                            
process has died [pid 10478, exit code 1, cmd /opt/ros/melodic/lib/mongodb_store/message_store_node.py __name:=message_store __log:=/home/lab_cheem/.ros/log/cdf98b54-2d7a-11eb-bc53-7085c2f2f536/message_store-1.log].                                                             
log file: /home/lab_cheem/.ros/log/cdf98b54-2d7a-11eb-bc53-7085c2f2f536/message_store-1*.log
Initiating shutdown!                                                                        
================================================================================            
[rapid_pbd_video_server-3] killing on exit
[rapid_pbd/editor_node-2] killing on exit
[message_store-1] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done

record trajectory of demonstartion

For start/stop demo bag file, need to add counter so that it doesnt add again?

  • force/speed/acceleration?
  • save object pose & dimensions
  • record camera (head or Kinect?)
  • save time start
  • get user pose
    Recorded demos: 15x
    Move BASE obj
    Move CUBE (maybe)
    Move ROOF

Bower deprecated

$ npm install -g bower polymer-cli
npm WARN deprecated [email protected]: We don't recommend using Bower for new projects. Please consider Yarn and Webpack or Parcel. You can read how to migrate legacy project here: https://bower.io/blog/2017/how-to-migrate-away-from-bower/

added 1568 packages, and audited 1634 packages in 22s

42 vulnerabilities (29 low, 1 moderate, 12 high)

To address issues that do not require attention, run:
npm audit fix

Some issues need review, and may require choosing
a different dependency.

Run npm audit for details.

Baxter default positions are converted into scientific values

updated with new ones and works without problems

also changed these values in baxter_interface tuck_arms to the same positions, but needed to check these using a python script :

baxter_interface.Limb('right').joint_angles()

                       'left':  [0.41, -0.63, -0.86, 1.10, 0.66, 1.32, -0.08],
                       'right':  [-0.23, -0.54, 0.83, 0.78, -0.68, 1.50, 0.15]

Setting up iRoPro on UR5

iRoPro was implemented on the Baxter research robot.
It is based on Rapid PbD, which worked on PR2, Fetch and Baxter robot.

The following needs to be changed to set it up on UR (most similar to the fetch robot):

Create new equivalent files for UR:

launch/fetch_app.launch
launch/fetch.launch
launch/fetch_moveit.launch
src/fetch_action_node.cpp
include/rapid_pbd/fetch_actions.h
src/fetch_actions.cpp

Modifications to consider UR as an option:

Change FetchRobot or BaxterRobot instances to UniversalRobot
The short versions fetch, baxter are changed to ur
src/program_execution_node.cpp
src/editor.cpp
src/editor_node.cpp
src/surface_segmentation_node.cpp

include/rapid_pbd/action_names.h
src/robot_config.cpp
include/rapid_pbd/robot_config.h

CMakeLists.txt

Front end:
frontend/src/pbd-*.html

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.