diff --git a/nextage_description/urdf/nxo_gz.xacro b/nextage_description/urdf/nxo_gz.xacro new file mode 100644 index 00000000..a98230c8 --- /dev/null +++ b/nextage_description/urdf/nxo_gz.xacro @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/nextage_description/urdf/nxo_gz_camera.xacro b/nextage_description/urdf/nxo_gz_camera.xacro new file mode 100644 index 00000000..92cf760e --- /dev/null +++ b/nextage_description/urdf/nxo_gz_camera.xacro @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 30.0 + + 1.3962634 + + 800 + 800 + R8G8B8 + + + 0.1 + 30 + + + gaussian + + 0.0 + 0.007 + + + + true + 0.0 + ${camera_name} + image_raw + camera_info + ${camera_name}_Link_frame + 0.07 + 0.0 + 0.0 + 0.0 + 0.0 + 0.0 + + + + + diff --git a/nextage_gazebo/CMakeLists.txt b/nextage_gazebo/CMakeLists.txt index 4720a651..434ba630 100644 --- a/nextage_gazebo/CMakeLists.txt +++ b/nextage_gazebo/CMakeLists.txt @@ -1,50 +1,12 @@ cmake_minimum_required(VERSION 2.8.3) project(nextage_gazebo) -## Find catkin macros and libraries -## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz) -## is used, also find other catkin packages find_package(catkin REQUIRED COMPONENTS gazebo_ros gazebo_ros_control nextage_description rostest ) - -## Uncomment this if the package has a setup.py. This macro ensures -## modules and global scripts declared therein get installed -## See http://ros.org/doc/api/catkin/html/user_guide/setup_dot_py.html -# catkin_python_setup() - -################################################ -## Declare ROS dynamic reconfigure parameters ## -################################################ - -## To declare and build dynamic reconfigure parameters within this -## package, follow these steps: -## * In the file package.xml: -## * add a build_depend and a run_depend tag for "dynamic_reconfigure" -## * In this file (CMakeLists.txt): -## * add "dynamic_reconfigure" to -## find_package(catkin REQUIRED COMPONENTS ...) -## * uncomment the "generate_dynamic_reconfigure_options" section below -## and list every .cfg file to be processed - -## Generate dynamic reconfigure parameters in the 'cfg' folder -# generate_dynamic_reconfigure_options( -# cfg/DynReconf1.cfg -# cfg/DynReconf2.cfg -# ) - -################################### -## catkin specific configuration ## -################################### -## The catkin_package macro generates cmake config files for your package -## Declare things to be passed to dependent projects -## INCLUDE_DIRS: uncomment this if you package contains header files -## LIBRARIES: libraries you create in this project that dependent projects also need -## CATKIN_DEPENDS: catkin_packages dependent projects also need -## DEPENDS: system dependencies of this project that dependent projects also need catkin_package( # INCLUDE_DIRS include # LIBRARIES nextage_gazebo @@ -52,82 +14,22 @@ catkin_package( # DEPENDS system_lib ) -########### -## Build ## -########### - -## Specify additional locations of header files -## Your package locations should be listed before other locations -# include_directories(include) include_directories( ${catkin_INCLUDE_DIRS} ) -## Declare a C++ library -# add_library(nextage_gazebo -# src/${PROJECT_NAME}/nextage_gazebo.cpp -# ) - -## Add cmake target dependencies of the library -## as an example, code may need to be generated before libraries -## either from message generation or dynamic reconfigure -# add_dependencies(nextage_gazebo ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS}) - -## Declare a C++ executable -# add_executable(nextage_gazebo_node src/nextage_gazebo_node.cpp) - -## Add cmake target dependencies of the executable -## same as for the library above -# add_dependencies(nextage_gazebo_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS}) - -## Specify libraries to link a library or executable target against -# target_link_libraries(nextage_gazebo_node -# ${catkin_LIBRARIES} -# ) - -############# -## Install ## -############# - -# all install targets should use catkin DESTINATION variables -# See http://ros.org/doc/api/catkin/html/adv_user_guide/variables.html - -## Mark executable scripts (Python etc.) for installation -## in contrast to setup.py, you can choose the destination install(PROGRAMS scripts/go_initial.py DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} ) -## Mark executables and/or libraries for installation -# install(TARGETS nextage_gazebo nextage_gazebo_node -# ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} -# LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} -# RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} -# ) - -## Mark cpp header files for installation -# install(DIRECTORY include/${PROJECT_NAME}/ -# DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION} -# FILES_MATCHING PATTERN "*.h" -# PATTERN ".svn" EXCLUDE -# ) - ## Mark other files for installation (e.g. launch and bag files, etc.) install(DIRECTORY config launch model test DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION} USE_SOURCE_PERMISSIONS ) -############# -## Testing ## -############# - -## Add gtest based cpp test target and link libraries -# catkin_add_gtest(${PROJECT_NAME}-test test/test_nextage_gazebo.cpp) -# if(TARGET ${PROJECT_NAME}-test) -# target_link_libraries(${PROJECT_NAME}-test ${PROJECT_NAME}) -# endif() - -add_rostest(test/gz.test) # important to have one gz.test files, becuase running gazebo parallely makes trouble on port settings - +if (CATKIN_ENABLE_TESTING) + find_package(catkin REQUIRED COMPONENTS rostest) + add_rostest(test/gz.test) # important to have one gz.test files, becuase running gazebo parallely makes trouble on port settings +endif() diff --git a/nextage_gazebo/launch/gz.rviz b/nextage_gazebo/launch/gz.rviz new file mode 100644 index 00000000..15a07a1f --- /dev/null +++ b/nextage_gazebo/launch/gz.rviz @@ -0,0 +1,340 @@ +Panels: + - Class: rviz/Displays + Help Height: 0 + Name: Displays + Property Tree Widget: + Expanded: ~ + Splitter Ratio: 0.5 + Tree Height: 630 + - Class: rviz/Selection + Name: Selection + - Class: rviz/Tool Properties + Expanded: + - /2D Pose Estimate1 + - /2D Nav Goal1 + - /Publish Point1 + Name: Tool Properties + Splitter Ratio: 0.588679 + - Class: rviz/Views + Expanded: + - /Current View1 + Name: Views + Splitter Ratio: 0.5 + - Class: rviz/Time + Experimental: false + Name: Time + SyncMode: 0 + SyncSource: Image_head_L +Visualization Manager: + Class: "" + Displays: + - Alpha: 0.5 + Cell Size: 1 + Class: rviz/Grid + Color: 160; 160; 164 + Enabled: true + Line Style: + Line Width: 0.03 + Value: Lines + Name: Grid + Normal Cell Count: 0 + Offset: + X: 0 + Y: 0 + Z: 0 + Plane: XY + Plane Cell Count: 10 + Reference Frame: + Value: true + - Alpha: 1 + Class: rviz/RobotModel + Collision Enabled: false + Enabled: true + Links: + All Links Enabled: true + CHEST_JOINT0_Link: + Alpha: 1 + Show Axes: false + Show Trail: false + Value: true + Expand Joint Details: false + Expand Link Details: false + Expand Tree: false + HEAD_JOINT0_Link: + Alpha: 1 + Show Axes: false + Show Trail: false + Value: true + HEAD_JOINT1_Link: + Alpha: 1 + Show Axes: false + Show Trail: false + Value: true + LARM_JOINT0_Link: + Alpha: 1 + Show Axes: false + Show Trail: false + Value: true + LARM_JOINT1_Link: + Alpha: 1 + Show Axes: false + Show Trail: false + Value: true + LARM_JOINT2_Link: + Alpha: 1 + Show Axes: false + Show Trail: false + Value: true + LARM_JOINT3_Link: + Alpha: 1 + Show Axes: false + Show Trail: false + Value: true + LARM_JOINT4_Link: + Alpha: 1 + Show Axes: false + Show Trail: false + Value: true + LARM_JOINT5_Link: + Alpha: 1 + Show Axes: false + Show Trail: false + Value: true + L_HEADMOUNT_CAMERA_Link: + Alpha: 1 + Show Axes: false + Show Trail: false + Value: true + Link Tree Style: Links in Alphabetic Order + RARM_JOINT0_Link: + Alpha: 1 + Show Axes: false + Show Trail: false + Value: true + RARM_JOINT1_Link: + Alpha: 1 + Show Axes: false + Show Trail: false + Value: true + RARM_JOINT2_Link: + Alpha: 1 + Show Axes: false + Show Trail: false + Value: true + RARM_JOINT3_Link: + Alpha: 1 + Show Axes: false + Show Trail: false + Value: true + RARM_JOINT4_Link: + Alpha: 1 + Show Axes: false + Show Trail: false + Value: true + RARM_JOINT5_Link: + Alpha: 1 + Show Axes: false + Show Trail: false + Value: true + R_HEADMOUNT_CAMERA_Link: + Alpha: 1 + Show Axes: false + Show Trail: false + Value: true + WAIST: + Alpha: 1 + Show Axes: false + Show Trail: false + Value: true + Name: RobotModel + Robot Description: robot_description + TF Prefix: "" + Update Interval: 0 + Value: true + Visual Enabled: true + - Class: rviz/Image + Enabled: true + Image Topic: /L_HEADMOUNT_CAMERA/image_raw + Max Value: 1 + Median window: 5 + Min Value: 0 + Name: Image_head_L + Normalize Range: true + Queue Size: 2 + Transport Hint: raw + Unreliable: false + Value: true + - Class: rviz/Image + Enabled: true + Image Topic: /hand_left/image_raw + Max Value: 1 + Median window: 5 + Min Value: 0 + Name: Image_hand_L + Normalize Range: true + Queue Size: 2 + Transport Hint: raw + Unreliable: false + Value: true + - Class: rviz/Image + Enabled: true + Image Topic: /hand_right/image_raw + Max Value: 1 + Median window: 5 + Min Value: 0 + Name: Image_hand_R + Normalize Range: true + Queue Size: 2 + Transport Hint: raw + Unreliable: false + Value: true + - Class: rviz/Image + Enabled: true + Image Topic: /R_HEADMOUNT_CAMERA/image_raw + Max Value: 1 + Median window: 5 + Min Value: 0 + Name: Image_head_R + Normalize Range: true + Queue Size: 2 + Transport Hint: raw + Unreliable: false + Value: true + - Class: rviz/TF + Enabled: true + Frame Timeout: 15 + Frames: + All Enabled: true + CHEST_JOINT0_Link: + Value: true + HEAD_JOINT0_Link: + Value: true + HEAD_JOINT1_Link: + Value: true + LARM_JOINT0_Link: + Value: true + LARM_JOINT1_Link: + Value: true + LARM_JOINT2_Link: + Value: true + LARM_JOINT3_Link: + Value: true + LARM_JOINT4_Link: + Value: true + LARM_JOINT5_Link: + Value: true + L_HEADMOUNT_CAMERA_Link: + Value: true + RARM_JOINT0_Link: + Value: true + RARM_JOINT1_Link: + Value: true + RARM_JOINT2_Link: + Value: true + RARM_JOINT3_Link: + Value: true + RARM_JOINT4_Link: + Value: true + RARM_JOINT5_Link: + Value: true + R_HEADMOUNT_CAMERA_Link: + Value: true + WAIST: + Value: true + Marker Scale: 0.5 + Name: TF + Show Arrows: true + Show Axes: true + Show Names: true + Tree: + WAIST: + CHEST_JOINT0_Link: + HEAD_JOINT0_Link: + HEAD_JOINT1_Link: + L_HEADMOUNT_CAMERA_Link: + {} + R_HEADMOUNT_CAMERA_Link: + {} + LARM_JOINT0_Link: + LARM_JOINT1_Link: + LARM_JOINT2_Link: + LARM_JOINT3_Link: + LARM_JOINT4_Link: + LARM_JOINT5_Link: + {} + RARM_JOINT0_Link: + RARM_JOINT1_Link: + RARM_JOINT2_Link: + RARM_JOINT3_Link: + RARM_JOINT4_Link: + RARM_JOINT5_Link: + {} + Update Interval: 0 + Value: true + Enabled: true + Global Options: + Background Color: 48; 48; 48 + Fixed Frame: WAIST + Frame Rate: 30 + Name: root + Tools: + - Class: rviz/Interact + Hide Inactive Objects: true + - Class: rviz/MoveCamera + - Class: rviz/Select + - Class: rviz/FocusCamera + - Class: rviz/Measure + - Class: rviz/SetInitialPose + Topic: /initialpose + - Class: rviz/SetGoal + Topic: /move_base_simple/goal + - Class: rviz/PublishPoint + Single click: true + Topic: /clicked_point + Value: true + Views: + Current: + Class: rviz/Orbit + Distance: 1.67016 + Enable Stereo Rendering: + Stereo Eye Separation: 0.06 + Stereo Focal Distance: 1 + Swap Stereo Eyes: false + Value: false + Focal Point: + X: -0.140808 + Y: -0.0369538 + Z: 0.238255 + Name: Current View + Near Clip Distance: 0.01 + Pitch: 0.650399 + Target Frame: + Value: Orbit (rviz) + Yaw: 0.505404 + Saved: ~ +Window Geometry: + Displays: + collapsed: false + Height: 833 + Hide Left Dock: false + Hide Right Dock: false + Image_hand_L: + collapsed: false + Image_hand_R: + collapsed: false + Image_head_L: + collapsed: false + Image_head_R: + collapsed: false + QMainWindow State: 000000ff00000000fd00000004000000000000016a000002b7fc0200000008fb0000001200530065006c0065006300740069006f006e00000001e10000009b0000006400fffffffb0000001e0054006f006f006c002000500072006f007000650072007400690065007302000001ed0000041a00000185000000a3fb000000120056006900650077007300200054006f006f02000001df000002110000018500000122fb000000200054006f006f006c002000500072006f0070006500720074006900650073003203000002880000011d000002210000017afb000000100044006900730070006c0061007900730100000028000002b7000000dd00fffffffb0000002000730065006c0065006300740069006f006e00200062007500660066006500720200000138000000aa0000023a00000294fb00000014005700690064006500530074006500720065006f02000000e6000000d2000003ee0000030bfb0000000c004b0069006e0065006300740200000186000001060000030c000002610000000100000123000002b7fc0200000008fb000000180049006d006100670065005f0068006500610064005f004c01000000280000009f0000001600fffffffb000000180049006d006100670065005f0068006500610064005f005201000000cd000000c90000001600fffffffc0000019c0000009f0000001600fffffffa000000000100000002fb000000180049006d006100670065005f00680061006e0064005f004c0100000000ffffffff0000009300fffffffb000000180049006d006100670065005f0068006500610064005f005200000003a10000010f0000000000000000fb000000180049006d006100670065005f00680061006e0064005f004c010000016a0000009b0000000000000000fb000000180049006d006100670065005f00680061006e0064005f005201000002410000009e0000001600fffffffb0000001e0054006f006f006c002000500072006f00700065007200740069006500730100000041000000780000000000000000fb0000000a005600690065007700730000000028000002c4000000b000fffffffb0000001200530065006c0065006300740069006f006e010000025a000000b200000000000000000000000200000490000000a9fc0100000001fb0000000a00560069006500770073030000004e00000080000002e10000019700000003000005170000003efc0100000002fb0000000800540069006d0065010000000000000517000002f600fffffffb0000000800540069006d006501000000000000045000000000000000000000027e000002b700000004000000040000000800000008fc0000000100000002000000010000000a0054006f006f006c00730100000000ffffffff0000000000000000 + Selection: + collapsed: false + Time: + collapsed: false + Tool Properties: + collapsed: false + Views: + collapsed: false + Width: 1303 + X: 437 + Y: 1125 diff --git a/nextage_gazebo/launch/gz_viz.launch b/nextage_gazebo/launch/gz_viz.launch new file mode 100644 index 00000000..c9e7c41e --- /dev/null +++ b/nextage_gazebo/launch/gz_viz.launch @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/nextage_gazebo/launch/nextage_world.launch b/nextage_gazebo/launch/nextage_world.launch index b07c4b22..d29263d9 100644 --- a/nextage_gazebo/launch/nextage_world.launch +++ b/nextage_gazebo/launch/nextage_world.launch @@ -52,7 +52,7 @@ - + diff --git a/nextage_gazebo/launch/rviz.launch b/nextage_gazebo/launch/rviz.launch new file mode 100644 index 00000000..99cab84b --- /dev/null +++ b/nextage_gazebo/launch/rviz.launch @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/nextage_gazebo/model/materials.urdf.xacro b/nextage_gazebo/model/materials.urdf.xacro deleted file mode 100644 index ed36c74a..00000000 --- a/nextage_gazebo/model/materials.urdf.xacro +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/nextage_gazebo/package.xml b/nextage_gazebo/package.xml index 3168a4a8..ff49f1d5 100644 --- a/nextage_gazebo/package.xml +++ b/nextage_gazebo/package.xml @@ -11,11 +11,6 @@ http://wiki.ros.org/nextage_gazebo catkin - gazebo_ros - gazebo_ros_control - nextage_description - nextage_moveit_config - ros_controllers gazebo_ros gazebo_ros_control nextage_description diff --git a/nextage_gazebo/test/gz.test b/nextage_gazebo/test/gz.test index 33026923..551bd04a 100644 --- a/nextage_gazebo/test/gz.test +++ b/nextage_gazebo/test/gz.test @@ -22,4 +22,15 @@ + + + + + + + + + + diff --git a/nextage_ros_bridge/launch/nextage_ros_bridge_real_hrpsys315.2.7-.launch b/nextage_ros_bridge/launch/nextage_ros_bridge_real_-hrpsys315.2.7.launch similarity index 80% rename from nextage_ros_bridge/launch/nextage_ros_bridge_real_hrpsys315.2.7-.launch rename to nextage_ros_bridge/launch/nextage_ros_bridge_real_-hrpsys315.2.7.launch index a07be942..43f8d3d8 100644 --- a/nextage_ros_bridge/launch/nextage_ros_bridge_real_hrpsys315.2.7-.launch +++ b/nextage_ros_bridge/launch/nextage_ros_bridge_real_-hrpsys315.2.7.launch @@ -1,4 +1,6 @@ + diff --git a/nextage_ros_bridge/launch/rviz.launch b/nextage_ros_bridge/launch/rviz.launch index 6f496d7c..57cf54f9 100644 --- a/nextage_ros_bridge/launch/rviz.launch +++ b/nextage_ros_bridge/launch/rviz.launch @@ -2,11 +2,6 @@ - - - - - - +