forked from SUTURO/pycram
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
200 changed files
with
69,204 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import builtins | ||
|
||
try: | ||
builtins.profile # type: ignore | ||
except AttributeError: | ||
# No line profiler, provide a pass-through version | ||
def profile(func): | ||
return func | ||
|
||
|
||
builtins.profile = profile # type: ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import pycram.external_interfaces.giskard_new as giskardpy | ||
from pycram.designators.action_designator import * | ||
from pycram.designators.location_designator import * | ||
from pycram.designators.object_designator import * | ||
from pycram.external_interfaces.navigate import PoseNavigator | ||
from pycram.pose import Pose | ||
from pycram.bullet_world import BulletWorld, Object | ||
from pycram.process_module import simulated_robot, with_simulated_robot | ||
from pycram.enums import ObjectType | ||
from pycram.ros.robot_state_updater import RobotStateUpdater, KitchenStateUpdater | ||
|
||
from pycram.ros.viz_marker_publisher import VizMarkerPublisher | ||
from pycram.utilities.robocup_utils import TextToSpeechPublisher, ImageSwitchPublisher, StartSignalWaiter | ||
|
||
world = BulletWorld() | ||
v = VizMarkerPublisher() | ||
kitchen = Object("kitchen", ObjectType.ENVIRONMENT, "suturo_lab_version_15.urdf") | ||
kitchen_desig = ObjectDesignatorDescription(names=["kitchen"]) | ||
|
||
talk = TextToSpeechPublisher() | ||
img_swap = ImageSwitchPublisher() | ||
start_signal_waiter = StartSignalWaiter() | ||
move = PoseNavigator() | ||
|
||
robot = Object("hsrb", "robot", "../../resources/" + "hsrb" + ".urdf", pose=Pose([1, 1, 0])) | ||
robot.set_color([0.5, 0.5, 0.9, 1]) | ||
robot_desig = ObjectDesignatorDescription(names=["hsrb"]) | ||
RobotStateUpdater("/tf", "/hsrb/robot_state/joint_states") | ||
KitchenStateUpdater("/tf", "/iai_kitchen/joint_states") | ||
|
||
giskardpy.init_giskard_interface() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Start the bringup | ||
roslaunch suturo_bringup envi_bringup | ||
|
||
# Start giskard | ||
roslaunch giskardpy giskardpy_hsr_real_vel.launch | ||
|
||
# Start robokudo | ||
robokudo_venv | ||
rosrun robokudo main.py _ae=clean_table _ros_pkg=milestone1 | ||
|
||
# It is also possible to start a specific roslaunch, to launch everything | ||
roslaunch pycram clean_the_table.launch | ||
|
||
# Start the demo file clean_table_demo_ms3.py | ||
|
||
# After demo don't forget to restart at least giskard before relaunching the demo! | ||
|
||
|
||
# In case where not all objects should be perceived, picked up and placed: | ||
change values in wished_sorted_obj_list = ["Metalplate", "Metalbowl", "Metalmug", "Fork", "Spoon"] | ||
you find this value at the beginning of the demo file | ||
|
||
# When opening the dishwasher fails because of wrist_flex_joint or arm_flex_joint: | ||
change goal_state_half_open in OpenDishwasherAction(handle_name, door_name, goal_state_half_open = 0.6, goal_state_full_open = 1.4, ["left"]).resolve().perform() |
Oops, something went wrong.