Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make the optitrack enabled by default in cfg #84

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Li-Jinjie
Copy link

If the enableOptitrack value is not explicitly set in the launch file, the package defaults to true, as specified in the source code. However, if the roscore is kept running in another terminal without restarting, this setting only takes effect once. The solution is to set the default value to True in the configuration (cfg) file.

Below are some relevant log entries:

For the first run, the enableOptitrack can be set to 1 by default.

[ WARN] [1724039169.350641447]: Could not get enable optitrack, using default: 1
[ WARN] [1724039169.352661334]: Could not get server version, using auto
[ WARN] [1724039169.353305319]: Failed to parse odom for body 1. Odom publishing disabled.
[ WARN] [1724039169.353321242]: Failed to parse tf for body ``. Tf publishing disabled.
[ WARN] [1724039169.353328661]: tf is not found in the configtf for body 1. TF publishing disabled.
[ERROR] [1724039169.356911610]: serverDescription.enableOptitrack: 0
[ WARN] [1724039169.356936564]: enableOptitrack is False. Initialization is uncompleted.
[ERROR] [1724039169.357799937]: serverDescription.enableOptitrack: 1
[ WARN] [1724039170.358444244]: Client has not received server info request. Parsing data message aborted.
[ WARN] [1724039170.361970986]: NATNet Version : 4.1.0.0
[ WARN] [1724039170.361994939]: Server Version : 3.1.1.1
[ WARN] [1724039170.364784255]: Initialization is completed.
[ WARN] [1724039170.364800823]: Running...

However, for the second run, the enableOptitrack cannot be set to 1.

[ WARN] [1724039177.062203546]: Could not get server version, using auto
[ WARN] [1724039177.062884631]: Failed to parse odom for body 1. Odom publishing disabled.
[ WARN] [1724039177.062895496]: Failed to parse tf for body ``. Tf publishing disabled.
[ WARN] [1724039177.062905874]: tf is not found in the configtf for body 1. TF publishing disabled.
[ERROR] [1724039177.065013813]: serverDescription.enableOptitrack: 0
[ WARN] [1724039177.065023648]: enableOptitrack is False. Initialization is uncompleted.
[ERROR] [1724039177.065863651]: serverDescription.enableOptitrack: 0
[ WARN] [1724039177.065871082]: enableOptitrack is False. Initialization is uncompleted.
[ WARN] [1724039177.065877737]: Running...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant