cmake_minimum_required(VERSION 2.8.3)
-project(wam_simulation)
+project(wam_bringup)
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
#)
## Declare a cpp library
-#add_library(wam_simulation
+#add_library(wam_bringup
#)
## Declare a cpp executable
-# add_executable(wam_simulation_node src/wam_simulation_node.cpp)
+# add_executable(wam_bringup_node src/wam_bringup_node.cpp)
## Add cmake target dependencies of the executable/library
## as an example, message headers may need to be generated before nodes
-# add_dependencies(wam_simulation_node wam_simulation_generate_messages_cpp)
+# add_dependencies(wam_bringup_node wam_bringup_generate_messages_cpp)
## Specify libraries to link a library or executable target against
#target_link_libraries(${PROJECT_NAME}
#############
## Add gtest based cpp test target and link libraries
-# catkin_add_gtest(${PROJECT_NAME}-test test/test_wam_simulation.cpp)
+# catkin_add_gtest(${PROJECT_NAME}-test test/test_wam_bringup.cpp)
# if(TARGET ${PROJECT_NAME}-test)
# target_link_libraries(${PROJECT_NAME}-test ${PROJECT_NAME})
# endif()
gravity: {x: 0.0, y: 0.0, z: -9.8}
chain: {root: "wam_origin", tip: "wam_tool_plate"}
priority: 99
-
+
\ No newline at end of file
<!-- This is the default Barrett WAM Controller, used by libbarrett -->
<arg name="controller" default="pid_plus_gravity_controller"/>
- <arg name="config" default="$(find wam_simulation)/config/$(arg controller).yaml"/>
+ <arg name="config" default="$(find wam_bringup)/config/$(arg controller).yaml"/>
<remap from="$(arg controller)/command" to="controller/command" />
<?xml version="1.0"?>
<package>
- <name>wam_simulation</name>
+ <name>wam_bringup</name>
<version>1.0.0</version>
- <description>The wam_simulation package</description>
+ <description>The wam_bringup package</description>
<!-- One maintainer tag required, multiple allowed, one person per tag -->
<!-- Example: -->
<!-- Url tags are optional, but mutiple are allowed, one per tag -->
<!-- Optional attribute type can be: website, bugtracker, or repository -->
<!-- Example: -->
- <!-- <url type="website">http://wiki.ros.org/wam_simulation</url> -->
+ <!-- <url type="website">http://wiki.ros.org/wam_bringup</url> -->
<url type="website">http://www.ece.ufrgs.br/ufrgs_wam</url>
#!/bin/bash
+if [ "$#" -ne 7 ]; then
+ echo "Error: There should be 7 parameters."
+ exit -1;
+fi;
rostopic pub /controller/command \
trajectory_msgs/JointTrajectoryPoint \
-"[0.0,0.75,0.0,1.5,0.0,0.9,0.0]" \
+"[$1, $2, $3, $4, $5, $6, $7]" \
"[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]" \
"[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]" \
"[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]" \
-"[0.0, 0.0]" -1
+"[0.0, 0.0]" "-1"
+++ /dev/null
-#!/bin/bash
-
-rosservice call /gazebo/set_model_configuration wam joint \
-"['wam_joint_1','wam_joint_2','wam_joint_3','wam_joint_4', \
-'wam_joint_5','wam_joint_6','wam_joint_7']" \
-"[0.0,0.75,0.0,1.5,0.0,0.9,0.0]"
-
-rostopic pub /wam/controller/command \
-trajectory_msgs/JointTrajectoryPoint \
-"[0.0,0.75,0.0,1.5,0.0,0.9,0.0]" \
-"[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]" \
-"[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]" \
-"[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]" \
-"[0.0, 0.0]" -1