diff --git a/baxter_gazebo/launch/baxter_world.launch b/baxter_gazebo/launch/baxter_world.launch
index ac43ae6..4bbc76f 100644
--- a/baxter_gazebo/launch/baxter_world.launch
+++ b/baxter_gazebo/launch/baxter_world.launch
@@ -19,7 +19,7 @@
to launching baxter_world -->
+ command="$(find xacro)/xacro.py --inorder $(find baxter_description)/urdf/baxter.urdf.xacro gazebo:=true right_electric_gripper:=$(arg right_electric_gripper) left_electric_gripper:=$(arg left_electric_gripper)"/>
diff --git a/baxter_sim_hardware/launch/baxter_sdk_control.launch b/baxter_sim_hardware/launch/baxter_sdk_control.launch
index 951a906..6777b1c 100644
--- a/baxter_sim_hardware/launch/baxter_sdk_control.launch
+++ b/baxter_sim_hardware/launch/baxter_sdk_control.launch
@@ -3,9 +3,23 @@
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
diff --git a/baxter_sim_hardware/src/baxter_emulator.cpp b/baxter_sim_hardware/src/baxter_emulator.cpp
index 4b51f47..c30f48c 100644
--- a/baxter_sim_hardware/src/baxter_emulator.cpp
+++ b/baxter_sim_hardware/src/baxter_emulator.cpp
@@ -502,6 +502,12 @@ void baxter_emulator::reset_head_nod(const ros::TimerEvent &t) {
void baxter_emulator::update_jnt_st(const sensor_msgs::JointState &msg) {
jstate_msg = msg;
float threshold = 0.0009;
+left_gravity.commanded_position.resize(left_gravity.name.size());
+left_gravity.commanded_velocity.resize(left_gravity.name.size());
+left_gravity.commanded_effort.resize(left_gravity.name.size());
+right_gravity.commanded_position.resize(left_gravity.name.size());
+right_gravity.commanded_velocity.resize(left_gravity.name.size());
+right_gravity.commanded_effort.resize(left_gravity.name.size());
left_gravity.actual_position.resize(left_gravity.name.size());
left_gravity.actual_velocity.resize(left_gravity.name.size());
left_gravity.actual_effort.resize(left_gravity.name.size());
@@ -525,12 +531,18 @@ right_gravity.actual_effort.resize(left_gravity.name.size());
else {
for (int j=0;j
+
+
+
+
-
-
+
+
-
-
+
+
[right_s0, right_s1, right_e0, right_e1, right_w0, right_w1, right_w2]