tu-darmstadt-ros-pkg / hector_quadrotor

hector_quadrotor contains packages related to modeling, control and simulation of quadrotor UAV systems.
Other
382 stars 277 forks source link

state_topic? #18

Closed slremy closed 10 years ago

slremy commented 10 years ago

Hello all, are there directions on the best approach to setting the pose (position, orientation) for the simulated quadrotor?

I've composed the message I'd like to use: msg.pose.pose.position = Point(x, y, z); quat = tf.transformations.quaternion_from_euler(phi, theta, psi); msg.pose.pose.orientation = Quaternion(*quat); msg.twist.twist.linear = Vector3(p, q, r); self.odom_pub.publish(msg);

But I'm at a bit of a loss about how to set up the launch files (or SDF files?) to permit the state of the quadrotor to the set with data received from an external source. What needs to be set?

http://answers.gazebosim.org/question/7036/using-hector_quadrotor_gazebo-with-externally/

meyerj commented 10 years ago

Answered at Gazebo Answers: http://answers.gazebosim.org/question/7036/using-hector_quadrotor_gazebo-with-externally#7162